mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibJS: Convert create_global_var_binding() to ThrowCompletionOr
This commit is contained in:
parent
8296d3fbd2
commit
4767be1459
4 changed files with 14 additions and 28 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
ThrowCompletionOr<bool> has_restricted_global_property(FlyString const& name) const;
|
||||
ThrowCompletionOr<bool> can_declare_global_var(FlyString const& name) const;
|
||||
ThrowCompletionOr<bool> can_declare_global_function(FlyString const& name) const;
|
||||
void create_global_var_binding(FlyString const& name, bool can_be_deleted);
|
||||
ThrowCompletionOr<void> create_global_var_binding(FlyString const& name, bool can_be_deleted);
|
||||
void create_global_function_binding(FlyString const& name, Value, bool can_be_deleted);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue