mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibJS+LibWeb: Clear exceptions after call'ing JavaScript functions
Decorated Interpreter::call() with [[nodiscard]] to provoke thinking about the returned value at each call site. This is definitely not perfect and we should really start thinking about slimming down the public-facing LibJS interpreter API. Fixes #3136.
This commit is contained in:
@@ -737,7 +737,7 @@ bool Object::put(const PropertyName& property_name, Value value, Value receiver)
|
||||
}
|
||||
object = object->prototype();
|
||||
if (interpreter().exception())
|
||||
return {};
|
||||
return false;
|
||||
}
|
||||
return put_own_property(*this, string_or_symbol, value, default_attributes, PutOwnPropertyMode::Put);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user