mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibJS: VERIFY(!this_value.is_empty()) in VM::call_internal()
Just a sanity check, this must never happen. Manual invocations of call() e.g. in LibWeb bindings must pass js_undefined() if no specific this value is desired, which OrdinaryCallBindThis will then use as-is or turn into the global this value in non-strict mode.
This commit is contained in:
parent
056ffa4abb
commit
0b799dd3b7
1 changed files with 1 additions and 0 deletions
|
@ -336,6 +336,7 @@ Value VM::get_new_target() const
|
|||
Value VM::call_internal(Function& function, Value this_value, Optional<MarkedValueList> arguments)
|
||||
{
|
||||
VERIFY(!exception());
|
||||
VERIFY(!this_value.is_empty());
|
||||
|
||||
CallFrame call_frame;
|
||||
call_frame.callee = &function;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue