fix corner case with arguments (#5417)

fixes #5416
This commit is contained in:
Alex Lam S.L
2022-04-14 23:52:10 +01:00
committed by GitHub
parent 950609f578
commit 5ebfa78f56
2 changed files with 35 additions and 0 deletions

View File

@@ -469,6 +469,7 @@ AST_Lambda.DEFMETHOD("init_vars", function(parent_scope) {
this.uses_arguments = false;
this.def_variable(new AST_SymbolFunarg({
name: "arguments",
scope: this,
start: this.start,
end: this.end,
}));