mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibJS: Pass GlobalObject& to Reference get/put
This commit is contained in:
parent
8d56e6103e
commit
32c121a8f7
3 changed files with 19 additions and 19 deletions
|
@ -34,7 +34,7 @@ namespace JS {
|
|||
|
||||
class Reference {
|
||||
public:
|
||||
Reference() {}
|
||||
Reference() { }
|
||||
Reference(Value base, const PropertyName& name, bool strict = false)
|
||||
: m_base(base)
|
||||
, m_name(name)
|
||||
|
@ -85,11 +85,11 @@ public:
|
|||
return m_global_variable;
|
||||
}
|
||||
|
||||
void put(Interpreter&, Value);
|
||||
Value get(Interpreter&);
|
||||
void put(Interpreter&, GlobalObject&, Value);
|
||||
Value get(Interpreter&, GlobalObject&);
|
||||
|
||||
private:
|
||||
void throw_reference_error(Interpreter&);
|
||||
void throw_reference_error(Interpreter&, GlobalObject&);
|
||||
|
||||
Value m_base { js_undefined() };
|
||||
PropertyName m_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue