mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:38:13 +00:00
LibJS: Interpreter::this_value() => this_value(GlobalObject&)
Once the Interpreter has no global object attached to it, we have to provide it everywhere.
This commit is contained in:
parent
25f2a29d84
commit
053863f35e
25 changed files with 78 additions and 73 deletions
|
@ -150,10 +150,10 @@ public:
|
|||
return index < arguments.size() ? arguments[index] : js_undefined();
|
||||
}
|
||||
|
||||
Value this_value() const
|
||||
Value this_value(Object& global_object) const
|
||||
{
|
||||
if (m_call_stack.is_empty())
|
||||
return m_global_object;
|
||||
return &global_object;
|
||||
return m_call_stack.last().this_value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue