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:
committed by
Dániel Bátyai
parent
a7d129c8b2
commit
bf630c0c54
@@ -30,6 +30,7 @@ must_throw ("function f([a], a) {}");
|
||||
must_throw ("function f(a = b, [b]) {}; f()", ReferenceError);
|
||||
must_throw ("function f([a+b]) {}");
|
||||
must_throw ("function f([a().b]) {}");
|
||||
must_throw ("function f(...[a] = [1]) {}");
|
||||
|
||||
function a1([a,b]) {
|
||||
var a, b;
|
||||
|
||||
Reference in New Issue
Block a user