LibJS: Stop rolling back parser state that is immediately replaced

This showed up on a profile (barely), so should help a tiny bit with
perf in parsing arrow functions.
This commit is contained in:
Idan Horowitz 2021-04-25 23:35:23 +03:00 committed by Linus Groh
commit 2b4c2301a9
Notes: sideshowbarker 2024-07-18 19:05:19 +09:00

View file

@ -346,7 +346,6 @@ RefPtr<FunctionExpression> Parser::try_parse_arrow_function_expression(bool expe
auto rule_start = push_start();
ArmedScopeGuard state_rollback_guard = [&] {
m_parser_state.m_var_scopes.take_last();
load_state();
};