mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibJS: Convert can_declare_global_function() to ThrowCompletionOr
This commit is contained in:
parent
215a56b0e4
commit
8296d3fbd2
Notes:
sideshowbarker
2024-07-17 21:59:14 +09:00
Author: https://github.com/linusg
Commit: 8296d3fbd2
4 changed files with 14 additions and 12 deletions
|
@ -35,7 +35,7 @@ public:
|
|||
bool has_lexical_declaration(FlyString const& name) const;
|
||||
ThrowCompletionOr<bool> has_restricted_global_property(FlyString const& name) const;
|
||||
ThrowCompletionOr<bool> can_declare_global_var(FlyString const& name) const;
|
||||
bool can_declare_global_function(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);
|
||||
void create_global_function_binding(FlyString const& name, Value, bool can_be_deleted);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue