diff options
author | Linus Groh <mail@linusgroh.de> | 2022-08-21 14:00:56 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 13:58:30 +0100 |
commit | a022e548b808df91c471cb55f0245e15957e89c4 (patch) | |
tree | d6a7d452eae1d06e537a2fd77348ecaab278614f /Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp | |
parent | f6c4a0f5d00a6a03a5165f1618516acb320f13a4 (diff) | |
download | serenity-a022e548b808df91c471cb55f0245e15957e89c4.zip |
LibJS: Replace GlobalObject with VM in Value AOs [Part 4/19]
This is where the fun begins. :^)
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp index 89ce4cf978..2684294b0b 100644 --- a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp +++ b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp @@ -48,7 +48,7 @@ ThrowCompletionOr<Value> AsyncFunctionDriverWrapper::react_to_async_task_complet auto result = generator_result.release_value(); VERIFY(result.is_object()); - auto promise_value = TRY(result.get(global_object, vm.names.value)); + auto promise_value = TRY(result.get(vm, vm.names.value)); if (!promise_value.is_object() || !is<Promise>(promise_value.as_object())) { auto promise = Promise::create(realm); promise->fulfill(promise_value); @@ -56,7 +56,7 @@ ThrowCompletionOr<Value> AsyncFunctionDriverWrapper::react_to_async_task_complet } auto* promise = static_cast<Promise*>(&promise_value.as_object()); - if (TRY(result.get(global_object, vm.names.done)).to_boolean()) + if (TRY(result.get(vm, vm.names.done)).to_boolean()) return promise; return promise->perform_then(m_on_fulfillment, m_on_rejection, PromiseCapability { promise, m_on_fulfillment, m_on_rejection }); |