mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Add interpreter exception checks
This commit is contained in:
committed by
Andreas Kling
parent
f306ddb78b
commit
4e33fbdb67
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user