mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
LibJS: Support deleting local variables with operator delete
To make this cleaner i also moved the logic into Reference::delete_.
This commit is contained in:
parent
af58779def
commit
064ed8279e
14 changed files with 82 additions and 10 deletions
|
@ -21,6 +21,7 @@ class ScopeObject : public Object {
|
|||
public:
|
||||
virtual Optional<Variable> get_from_scope(const FlyString&) const = 0;
|
||||
virtual void put_to_scope(const FlyString&, Variable) = 0;
|
||||
virtual bool delete_from_scope(FlyString const&) = 0;
|
||||
virtual bool has_this_binding() const = 0;
|
||||
virtual Value get_this_binding(GlobalObject&) const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue