mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +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
|
@ -189,7 +189,7 @@ ThrowCompletionOr<Value> PromiseAnyRejectElementFunction::resolve_element()
|
|||
// 10. If remainingElementsCount.[[Value]] is 0, then
|
||||
if (--m_remaining_elements.value == 0) {
|
||||
// a. Let error be a newly created AggregateError object.
|
||||
auto* error = AggregateError::create(realm);
|
||||
auto error = AggregateError::create(realm);
|
||||
|
||||
// b. Perform ! DefinePropertyOrThrow(error, "errors", PropertyDescriptor { [[Configurable]]: true, [[Enumerable]]: false, [[Writable]]: true, [[Value]]: CreateArrayFromList(errors) }).
|
||||
auto* errors_array = Array::create_from(realm, m_values.values());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue