mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Evaluate this
in terms of ResolveThisBinding
This commit is contained in:
parent
92ce4ac23f
commit
6e1932e8b2
3 changed files with 10 additions and 1 deletions
|
@ -1347,7 +1347,7 @@ Value SpreadExpression::execute(Interpreter& interpreter, GlobalObject& global_o
|
|||
Value ThisExpression::execute(Interpreter& interpreter, GlobalObject& global_object) const
|
||||
{
|
||||
InterpreterNodeScope node_scope { interpreter, *this };
|
||||
return get_this_environment(interpreter.vm()).get_this_binding(global_object);
|
||||
return interpreter.vm().resolve_this_binding(global_object);
|
||||
}
|
||||
|
||||
void ThisExpression::dump(int indent) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue