mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-21 09:41:53 +00:00
LibJS: Disallow 'return' outside of a function
This commit is contained in:
parent
5feb7e8d28
commit
9a82c22a85
Notes:
sideshowbarker
2024-07-19 01:58:35 +09:00
Author: https://github.com/mattco98
Commit: 9a82c22a85
Pull-request: https://github.com/SerenityOS/serenity/pull/3711
Issue: https://github.com/SerenityOS/serenity/issues/3607
2 changed files with 6 additions and 0 deletions
|
@ -158,6 +158,7 @@ private:
|
|||
bool m_strict_mode { false };
|
||||
bool m_allow_super_property_lookup { false };
|
||||
bool m_allow_super_constructor_call { false };
|
||||
bool m_in_function_context { false };
|
||||
|
||||
explicit ParserState(Lexer);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue