LibJS: Add interpreter exception checks

This commit is contained in:
Matthew Olsson 2020-06-07 10:53:14 -07:00 committed by Andreas Kling
commit 4e33fbdb67
Notes: sideshowbarker 2024-07-19 05:45:16 +09:00
11 changed files with 137 additions and 36 deletions

View file

@ -145,6 +145,8 @@ Value ReflectObject::define_property(Interpreter& interpreter)
return {};
auto& descriptor = interpreter.argument(2).as_object();
auto success = target->define_property(property_key, descriptor, false);
if (interpreter.exception())
return {};
return Value(success);
}