summaryrefslogtreecommitdiff
path: root/Tests/LibJS
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-21 15:39:13 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commitae9e031f567937db0119ac4d649ae5ccf24e41f7 (patch)
tree5719e5c898b74cfcd2be517f2b6bb33b96aa4f27 /Tests/LibJS
parent275a7a0c0a2de638639e0a401c5d67fae8b9fedf (diff)
downloadserenity-ae9e031f567937db0119ac4d649ae5ccf24e41f7.zip
LibJS: Replace GlobalObject with VM in Reference AOs [Part 6/19]
Diffstat (limited to 'Tests/LibJS')
-rw-r--r--Tests/LibJS/test-js.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp
index 0780590ae8..f34bb9b584 100644
--- a/Tests/LibJS/test-js.cpp
+++ b/Tests/LibJS/test-js.cpp
@@ -66,13 +66,13 @@ TESTJS_GLOBAL_FUNCTION(mark_as_garbage, markAsGarbage)
auto reference = TRY(vm.resolve_binding(variable_name.string(), outer_environment.value()->lexical_environment));
- auto value = TRY(reference.get_value(global_object));
+ auto value = TRY(reference.get_value(vm));
if (!can_be_held_weakly(value))
return vm.throw_completion<JS::TypeError>(JS::ErrorType::CannotBeHeldWeakly, String::formatted("Variable with name {}", variable_name.string()));
vm.heap().uproot_cell(&value.as_cell());
- TRY(reference.delete_(global_object));
+ TRY(reference.delete_(vm));
return JS::js_undefined();
}