Fix arguments object detection in non-complex param list (#4867)

This patch is the followup of #4849.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
Robert Fancsik
2021-12-15 11:35:27 +01:00
committed by GitHub
parent dfc001d373
commit ce5c8492b8
2 changed files with 34 additions and 30 deletions
+5
View File
@@ -217,3 +217,8 @@ function f22 (arguments, [a = arguments]) {
assert(arguments === 3.1);
}
f22(3.1, []);
function f23(arguments, eval = () => eval()) {
assert(arguments === undefined);
}
f23(undefined);