mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibJS: Make functions reset break and continue context
This commit is contained in:
parent
be3b4a68d2
commit
e31b715808
Notes:
sideshowbarker
2024-07-18 05:37:11 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/e31b715808f Pull-request: https://github.com/SerenityOS/serenity/pull/9085 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/linusg ✅ Reviewed-by: https://github.com/trflynn89
@ -1721,6 +1721,8 @@ NonnullRefPtr<FunctionNodeType> Parser::parse_function_node(u8 parse_options)
|
||||
|
||||
TemporaryChange super_property_access_rollback(m_state.allow_super_property_lookup, !!(parse_options & FunctionNodeParseOptions::AllowSuperPropertyLookup));
|
||||
TemporaryChange super_constructor_call_rollback(m_state.allow_super_constructor_call, !!(parse_options & FunctionNodeParseOptions::AllowSuperConstructorCall));
|
||||
TemporaryChange break_context_rollback(m_state.in_break_context, false);
|
||||
TemporaryChange continue_context_rollback(m_state.in_continue_context, false);
|
||||
|
||||
ScopePusher scope(*this, ScopePusher::Var, Parser::Scope::Function);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user