mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibJS: Replace GlobalObject with VM in Environment AOs [Part 5/19]
This commit is contained in:
parent
a022e548b8
commit
275a7a0c0a
22 changed files with 222 additions and 205 deletions
|
@ -121,13 +121,7 @@ public:
|
|||
return m_base_type == BaseType::Environment;
|
||||
}
|
||||
|
||||
// 6.2.4.8 InitializeReferencedBinding ( V, W ), https://tc39.es/ecma262/#sec-object.prototype.hasownproperty
|
||||
ThrowCompletionOr<void> initialize_referenced_binding(GlobalObject& global_object, Value value) const
|
||||
{
|
||||
VERIFY(!is_unresolvable());
|
||||
VERIFY(m_base_type == BaseType::Environment);
|
||||
return m_base_environment->initialize_binding(global_object, m_name.as_string(), value);
|
||||
}
|
||||
ThrowCompletionOr<void> initialize_referenced_binding(GlobalObject& global_object, Value value) const;
|
||||
|
||||
ThrowCompletionOr<void> put_value(GlobalObject&, Value);
|
||||
ThrowCompletionOr<Value> get_value(GlobalObject&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue