diff options
Diffstat (limited to 'Tests/LibJS/test-js.cpp')
-rw-r--r-- | Tests/LibJS/test-js.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp index e8fb258ba8..54e98eef0e 100644 --- a/Tests/LibJS/test-js.cpp +++ b/Tests/LibJS/test-js.cpp @@ -63,7 +63,7 @@ TESTJS_GLOBAL_FUNCTION(mark_as_garbage, markAsGarbage) if (!outer_environment.has_value()) return vm.throw_completion<JS::ReferenceError>(global_object, JS::ErrorType::UnknownIdentifier, variable_name.string()); - auto reference = vm.resolve_binding(variable_name.string(), outer_environment.value()->lexical_environment); + auto reference = TRY(vm.resolve_binding(variable_name.string(), outer_environment.value()->lexical_environment)); auto value = TRY(reference.get_value(global_object)); |