mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Make more Interpreter functions take a GlobalObject&
This commit is contained in:
parent
053863f35e
commit
5042e560ef
9 changed files with 47 additions and 47 deletions
|
@ -44,7 +44,7 @@ void Reference::put(Interpreter& interpreter, Value value)
|
|||
|
||||
if (is_local_variable() || is_global_variable()) {
|
||||
if (is_local_variable())
|
||||
interpreter.set_variable(m_name.to_string(), value);
|
||||
interpreter.set_variable(m_name.to_string(), value, interpreter.global_object());
|
||||
else
|
||||
interpreter.global_object().put(m_name, value);
|
||||
return;
|
||||
|
@ -85,7 +85,7 @@ Value Reference::get(Interpreter& interpreter)
|
|||
if (is_local_variable() || is_global_variable()) {
|
||||
Value value;
|
||||
if (is_local_variable())
|
||||
value = interpreter.get_variable(m_name.to_string());
|
||||
value = interpreter.get_variable(m_name.to_string(), interpreter.global_object());
|
||||
else
|
||||
value = interpreter.global_object().get(m_name);
|
||||
if (interpreter.exception())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue