1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

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
parent aef502e8e0
commit 2b4c2301a9

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