diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/Value.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/Value.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibJS/Runtime/Value.cpp b/Libraries/LibJS/Runtime/Value.cpp index 0d3ecfa8ec..e202b0a84d 100644 --- a/Libraries/LibJS/Runtime/Value.cpp +++ b/Libraries/LibJS/Runtime/Value.cpp @@ -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); } } |