mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 15:45:07 +00:00
LibJS: Make Value::to_object() take a GlobalObject&
This commit is contained in:
parent
cd14ebb11f
commit
8d56e6103e
28 changed files with 129 additions and 129 deletions
|
@ -78,7 +78,7 @@ Value StringConstructor::construct(Interpreter& interpreter)
|
|||
|
||||
JS_DEFINE_NATIVE_FUNCTION(StringConstructor::raw)
|
||||
{
|
||||
auto* template_object = interpreter.argument(0).to_object(interpreter);
|
||||
auto* template_object = interpreter.argument(0).to_object(interpreter, global_object);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
|
||||
|
@ -92,7 +92,7 @@ JS_DEFINE_NATIVE_FUNCTION(StringConstructor::raw)
|
|||
if (!raw.is_array())
|
||||
return js_string(interpreter, "");
|
||||
|
||||
auto* array = static_cast<Array*>(raw.to_object(interpreter));
|
||||
auto* array = static_cast<Array*>(raw.to_object(interpreter, global_object));
|
||||
auto& raw_array_elements = array->indexed_properties();
|
||||
StringBuilder builder;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue