1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:42:13 +00:00

LibJS: Remove use of Interpreter& in JSONObject code

This commit is contained in:
Andreas Kling 2020-09-27 18:52:42 +02:00
parent f79d4c7347
commit aaa8b48a4c
6 changed files with 73 additions and 70 deletions

View file

@ -1011,13 +1011,13 @@ TriState abstract_relation(Interpreter& interpreter, bool left_first, Value lhs,
return TriState::False;
}
size_t length_of_array_like(Interpreter& interpreter, Value value)
size_t length_of_array_like(GlobalObject& global_object, Value value)
{
ASSERT(value.is_object());
auto result = value.as_object().get("length");
if (interpreter.exception())
if (global_object.vm().exception())
return 0;
return result.to_size_t(interpreter.global_object());
return result.to_size_t(global_object);
}
}