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:
committed by
Dániel Bátyai
parent
0fd1ed6f27
commit
d6070a9fed
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user