mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibJS: Make functions reset break and continue context
This commit is contained in:
parent
be3b4a68d2
commit
e31b715808
1 changed files with 2 additions and 0 deletions
|
@ -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_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 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);
|
ScopePusher scope(*this, ScopePusher::Var, Parser::Scope::Function);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue