diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-29 17:54:25 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | 5da210125e1ae62278ddf708ad85b037f1891a81 (patch) | |
tree | a184dafd5fe0707a7a3890df0cd6a7f97294f902 /Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | |
parent | 0e69a6e487a3d00b329e01bd21b5acfce9070765 (diff) | |
download | serenity-5da210125e1ae62278ddf708ad85b037f1891a81.zip |
LibJS: Convert internal_define_own_property() 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 bec3c3c746..262d40f171 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -122,7 +122,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::define_property) return {}; // 4. Return ? target.[[DefineOwnProperty]](key, desc). - return Value(target.as_object().internal_define_own_property(key, descriptor)); + return Value(TRY_OR_DISCARD(target.as_object().internal_define_own_property(key, descriptor))); } // 28.1.4 Reflect.deleteProperty ( target, propertyKey ), https://tc39.es/ecma262/#sec-reflect.deleteproperty |