mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibJS: Convert AggregateError::create() to NonnullGCPtr
This commit is contained in:
parent
2b92c15b34
commit
0c50751c13
4 changed files with 6 additions and 6 deletions
|
@ -198,7 +198,7 @@ static ThrowCompletionOr<Value> perform_promise_any(VM& vm, Iterator& iterator_r
|
|||
vm, iterator_record, constructor, result_capability, promise_resolve,
|
||||
[&](PromiseValueList& errors) -> ThrowCompletionOr<Value> {
|
||||
// 1. Let error be a newly created AggregateError object.
|
||||
auto* error = AggregateError::create(realm);
|
||||
auto error = AggregateError::create(realm);
|
||||
|
||||
// 2. Perform ! DefinePropertyOrThrow(error, "errors", PropertyDescriptor { [[Configurable]]: true, [[Enumerable]]: false, [[Writable]]: true, [[Value]]: CreateArrayFromList(errors) }).
|
||||
auto* errors_array = Array::create_from(realm, errors.values());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue