diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp index e3afe6ec5c..acae27a191 100644 --- a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp +++ b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp @@ -15,7 +15,7 @@ namespace JS { ThrowCompletionOr<Value> AsyncFunctionDriverWrapper::create(Realm& realm, GeneratorObject* generator_object) { - auto wrapper = realm.heap().allocate<AsyncFunctionDriverWrapper>(realm, realm, generator_object); + auto wrapper = MUST_OR_THROW_OOM(realm.heap().allocate<AsyncFunctionDriverWrapper>(realm, realm, generator_object)); return wrapper->react_to_async_task_completion(realm.vm(), js_undefined(), true); } |