diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Completion.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Completion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Completion.cpp b/Userland/Libraries/LibJS/Runtime/Completion.cpp index 3b1db9a70b..f5f5b94df4 100644 --- a/Userland/Libraries/LibJS/Runtime/Completion.cpp +++ b/Userland/Libraries/LibJS/Runtime/Completion.cpp @@ -89,7 +89,7 @@ ThrowCompletionOr<Value> await(VM& vm, Value value) auto on_rejected = NativeFunction::create(realm, move(rejected_closure), 1, ""); // 7. Perform PerformPromiseThen(promise, onFulfilled, onRejected). - auto* promise = verify_cast<Promise>(promise_object); + auto promise = verify_cast<Promise>(promise_object); promise->perform_then(on_fulfilled, on_rejected, {}); // FIXME: Since we don't support context suspension, we attempt to "wait" for the promise to resolve |