mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibJS: Remove GlobalObject parameter from native functions
This commit is contained in:
parent
7b990c27a1
commit
b465f46e00
77 changed files with 240 additions and 215 deletions
|
@ -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 '_'");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue