Implement binding pattern support for rest argument and for statement. (#3327)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2019-11-19 14:02:17 +01:00
committed by Dániel Bátyai
parent a7d129c8b2
commit bf630c0c54
9 changed files with 153 additions and 11 deletions
+9
View File
@@ -59,3 +59,12 @@ function k([a = function() { return a; }])
assert(a() === a);
}
k([]);
function l(a = 0, ...[b, c = 1, d = 4])
{
assert(a === 1);
assert(b === 2);
assert(c === 3);
assert(d === 4);
}
l(1,2,3);