summaryrefslogtreecommitdiff
path: root/Userland/Utilities/js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r--Userland/Utilities/js.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index f59fc2e4b3..2639206c84 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -1311,10 +1311,11 @@ void ReplObject::initialize_global_object()
define_native_accessor(
"_",
- [](JS::VM&, JS::GlobalObject&) {
+ [](JS::VM&) {
return g_last_value.value();
},
- [](JS::VM& vm, JS::GlobalObject& global_object) -> JS::ThrowCompletionOr<JS::Value> {
+ [](JS::VM& vm) -> JS::ThrowCompletionOr<JS::Value> {
+ auto& global_object = vm.get_global_object();
VERIFY(is<ReplObject>(global_object));
outln("Disable writing last value to '_'");