mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
LibJS: Make Environment::put_into_environment() return a success bool
This code is non-conforming and will eventually get cleaned out once we implement proper variable bindings. However, this will aid us in improving other parts of the code right now.
This commit is contained in:
parent
57db058652
commit
80170887db
7 changed files with 10 additions and 9 deletions
|
@ -28,7 +28,7 @@ public:
|
|||
virtual void initialize(GlobalObject&) override;
|
||||
|
||||
virtual Optional<Variable> get_from_environment(FlyString const&) const = 0;
|
||||
virtual void put_into_environment(FlyString const&, Variable) = 0;
|
||||
virtual bool put_into_environment(FlyString const&, Variable) = 0;
|
||||
virtual bool delete_from_environment(FlyString const&) = 0;
|
||||
|
||||
virtual bool has_this_binding() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue