Call filter arguments after the global arguments are parsed. (#3511)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2020-01-14 15:10:19 +01:00
committed by Dániel Bátyai
parent 0fd1ed6f27
commit d6070a9fed
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -68,3 +68,11 @@ function l(a = 0, ...[b, c = 1, d = 4])
assert(d === 4);
}
l(1,2,3);
Function("{a, x:b}","[c]", "{ 'dd':d, e = Math.cos(0)}",
"assert(a === 1);" +
"assert(b === undefined);" +
"assert(c === 3);" +
"assert(d === 4);" +
"assert(e === 1);"
)({a:1, b:3}, [3], {a:1, b:2, dd:4});