diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-08 04:00:53 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-08 15:31:46 +0100 |
commit | 064ed8279e0b3ec597a816e420c3f21c7bcaf20f (patch) | |
tree | fd82c77b255e79eabe0f3595bedd2c03c9df7641 /Userland/Libraries/LibJS/Runtime/GlobalObject.h | |
parent | af58779def630d58c677c8a845623ac575c51da0 (diff) | |
download | serenity-064ed8279e0b3ec597a816e420c3f21c7bcaf20f.zip |
LibJS: Support deleting local variables with operator delete
To make this cleaner i also moved the logic into Reference::delete_.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/GlobalObject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.h b/Userland/Libraries/LibJS/Runtime/GlobalObject.h index ddcb0dbc13..96bd795c08 100644 --- a/Userland/Libraries/LibJS/Runtime/GlobalObject.h +++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.h @@ -23,6 +23,7 @@ public: virtual Optional<Variable> get_from_scope(const FlyString&) const override; virtual void put_to_scope(const FlyString&, Variable) override; + virtual bool delete_from_scope(FlyString const&) override; virtual bool has_this_binding() const override; virtual Value get_this_binding(GlobalObject&) const override; |