summaryrefslogtreecommitdiff
path: root/Tests/LibJS
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-11-02 18:38:51 +0200
committerLinus Groh <mail@linusgroh.de>2021-11-02 19:48:35 +0100
commitd73b2588749aa6e03dbc829602a10d752a127ad2 (patch)
tree0b6ab152c3a3072053c39dea277931be5b2225ff /Tests/LibJS
parent330ac1e5ad47857564e31f3fef2227e2c951c778 (diff)
downloadserenity-d73b2588749aa6e03dbc829602a10d752a127ad2.zip
LibJS: Convert reference deletion to ThrowCompletionOr
Diffstat (limited to 'Tests/LibJS')
-rw-r--r--Tests/LibJS/test-js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp
index 5da868d4b1..c2246f7574 100644
--- a/Tests/LibJS/test-js.cpp
+++ b/Tests/LibJS/test-js.cpp
@@ -73,7 +73,7 @@ TESTJS_GLOBAL_FUNCTION(mark_as_garbage, markAsGarbage)
return vm.throw_completion<JS::TypeError>(global_object, JS::ErrorType::NotAnObject, String::formatted("Variable with name {}", variable_name.string()));
vm.heap().uproot_cell(&value.as_object());
- reference.delete_(global_object);
+ TRY(reference.delete_(global_object));
return JS::js_undefined();
}