mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibJS: Convert Error::create() to NonnullGCPtr
This commit is contained in:
parent
73efdb1cc4
commit
d21ac9d820
5 changed files with 41 additions and 41 deletions
|
@ -97,7 +97,7 @@ Promise::ResolvingFunctions Promise::create_resolving_functions()
|
|||
dbgln_if(PROMISE_DEBUG, "[Promise @ {} / PromiseResolvingFunction]: Promise can't be resolved with itself, rejecting with error", &promise);
|
||||
|
||||
// a. Let selfResolutionError be a newly created TypeError object.
|
||||
auto* self_resolution_error = TypeError::create(realm, "Cannot resolve promise with itself");
|
||||
auto self_resolution_error = TypeError::create(realm, "Cannot resolve promise with itself");
|
||||
|
||||
// b. Perform RejectPromise(promise, selfResolutionError).
|
||||
promise.reject(self_resolution_error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue