const err = new AggregateError([new Error('a'), new Error('b')], 'Two errors')
err.errors.length // β 2AggregateError wraps multiple errors into a single error object.
new AggregateError([...errors], message) creates an AggregateError wrapping multiple errors.
Challenge: Verify that the result is an instance of AggregateError.