mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibJS: Make Environment::has_binding() optionally return binding index
If the caller wants to use the binding index for anything, if there is such a thing, it can now be obtained via an optional out-parameter.
This commit is contained in:
parent
6ef5464015
commit
cb696eff08
Notes:
sideshowbarker
2024-07-18 02:59:24 +09:00
Author: https://github.com/awesomekling
Commit: cb696eff08
7 changed files with 13 additions and 8 deletions
|
@ -21,7 +21,7 @@ public:
|
|||
explicit DeclarativeEnvironment(Environment* parent_scope);
|
||||
virtual ~DeclarativeEnvironment() override;
|
||||
|
||||
virtual bool has_binding(FlyString const& name) const override;
|
||||
virtual bool has_binding(FlyString const& name, Optional<size_t>* = nullptr) const override;
|
||||
virtual void create_mutable_binding(GlobalObject&, FlyString const& name, bool can_be_deleted) override;
|
||||
virtual void create_immutable_binding(GlobalObject&, FlyString const& name, bool strict) override;
|
||||
virtual void initialize_binding(GlobalObject&, FlyString const& name, Value) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue