1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 18:35:06 +00:00

LibJS: Disallow 'return' outside of a function

This commit is contained in:
Matthew Olsson 2020-10-07 11:33:48 -07:00 committed by Andreas Kling
parent 5feb7e8d28
commit 9a82c22a85
2 changed files with 6 additions and 0 deletions

View file

@ -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);
};