diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-29 00:02:05 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | 9b4362f10a5a87470f43c1086717daa9ce04bb08 (patch) | |
tree | ed3c084dc916a6960092a29f4f54feb6c9d6845d /Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | |
parent | 8c81c84c1815d11e3ddbb1ca54a35b1e80cd617d (diff) | |
download | serenity-9b4362f10a5a87470f43c1086717daa9ce04bb08.zip |
LibJS: Convert internal_is_extensible() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ReflectObject.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp index bd9810e320..e4b32240a2 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -248,7 +248,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::is_extensible) } // 2. Return ? target.[[IsExtensible]](). - return Value(target.as_object().internal_is_extensible()); + return Value(TRY_OR_DISCARD(target.as_object().internal_is_extensible())); } // 28.1.10 Reflect.ownKeys ( target ), https://tc39.es/ecma262/#sec-reflect.ownkeys |