mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +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:
parent
c5127389ca
commit
bbe2d4a2d9
7 changed files with 24 additions and 9 deletions
|
@ -118,7 +118,7 @@ public:
|
|||
void enter_scope(const ScopeNode&, ArgumentVector, ScopeType, GlobalObject&);
|
||||
void exit_scope(const ScopeNode&);
|
||||
|
||||
Value call(Function&, Value this_value, Optional<MarkedValueList> arguments = {});
|
||||
[[nodiscard]] Value call(Function&, Value this_value, Optional<MarkedValueList> arguments = {});
|
||||
Value construct(Function&, Function& new_target, Optional<MarkedValueList> arguments, GlobalObject&);
|
||||
|
||||
CallFrame& push_call_frame()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue