LibJS: Add missing CommonPropertyNamess and StringMayBeNumber::Nos

This commit is contained in:
Jonne Ransijn
2024-12-01 01:06:25 +01:00
committed by Andreas Kling
parent cfb00ba494
commit 58631e9eef
9 changed files with 27 additions and 19 deletions

View File

@@ -344,10 +344,10 @@ void ReplObject::initialize(JS::Realm& realm)
outln("Disable writing last value to '_'");
// We must delete first otherwise this setter gets called recursively.
TRY(global_object.internal_delete(JS::PropertyKey { "_" }));
TRY(global_object.internal_delete(vm.names._));
auto value = vm.argument(0);
TRY(global_object.internal_set(JS::PropertyKey { "_" }, value, &global_object));
TRY(global_object.internal_set(vm.names._, value, &global_object));
return value;
},
attr);