mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibJS: Disallow yield expression correctly in formal parameters
And add ZERO WIDTH NO BREAK SPACE to valid whitespace.
This commit is contained in:
parent
7bcffd1b6a
commit
c108c8ff24
Notes:
sideshowbarker
2024-07-18 05:19:52 +09:00
Author: https://github.com/davidot
Commit: c108c8ff24
Pull-request: https://github.com/SerenityOS/serenity/pull/9544
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/trflynn89
4 changed files with 11 additions and 3 deletions
|
@ -250,6 +250,7 @@ private:
|
|||
bool allow_super_property_lookup { false };
|
||||
bool allow_super_constructor_call { false };
|
||||
bool in_function_context { false };
|
||||
bool in_formal_parameter_context { false };
|
||||
bool in_generator_function_context { false };
|
||||
bool in_arrow_function_context { false };
|
||||
bool in_break_context { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue