1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 03:35:09 +00:00

LibJS: Make Value::to_object() take a GlobalObject&

This commit is contained in:
Andreas Kling 2020-06-20 16:40:30 +02:00
parent cd14ebb11f
commit 8d56e6103e
28 changed files with 129 additions and 129 deletions

View file

@ -55,7 +55,7 @@ void Reference::put(Interpreter& interpreter, Value value)
return;
}
auto* object = base().to_object(interpreter);
auto* object = base().to_object(interpreter, interpreter.global_object());
if (!object)
return;
@ -97,7 +97,7 @@ Value Reference::get(Interpreter& interpreter)
return value;
}
auto* object = base().to_object(interpreter);
auto* object = base().to_object(interpreter, interpreter.global_object());
if (!object)
return {};