LibJS: Make GlobalEnvironmentRecord forward to the right function
This was accidentally deleting a property from the object record object itself, rather than from the object record. It's quite confusing that Environment Records are objects, but moving away from that will require some large changes.
This commit is contained in:
parent
f7e2994f35
commit
1082e99e08
Notes:
sideshowbarker
2024-07-18 11:39:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1082e99e082
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void GlobalEnvironmentRecord::put_into_environment_record(FlyString const& name,
|
|||
bool GlobalEnvironmentRecord::delete_from_environment_record(FlyString const& name)
|
||||
{
|
||||
// FIXME: This should be a "composite" of the object record and the declarative record.
|
||||
return object_record().delete_property(name);
|
||||
return object_record().delete_from_environment_record(name);
|
||||
}
|
||||
|
||||
Value GlobalEnvironmentRecord::get_this_binding(GlobalObject&) const
|
||||
|
|
Loading…
Add table
Reference in a new issue