diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Contrib')
-rw-r--r-- | Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp index 8975b27b4f..183dae07c4 100644 --- a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp +++ b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, Linus Groh <linusg@serenityos.org> + * Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org> * Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause @@ -69,7 +69,8 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::detach_array_buffer) return vm.throw_completion<TypeError>(global_object); auto& array_buffer_object = static_cast<ArrayBuffer&>(array_buffer.as_object()); - return JS::detach_array_buffer(global_object, array_buffer_object, vm.argument(1)); + TRY(JS::detach_array_buffer(global_object, array_buffer_object, vm.argument(1))); + return js_null(); } JS_DEFINE_NATIVE_FUNCTION($262Object::eval_script) |