Fix error for duplicated names in ArrowFunction paremeter list (#3597)
Duplicated parameter names are not allowed for arrow functions regardless of strict mode. JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]
This commit is contained in:
1 parent
34edf53753
commit
3c8a6ca71d
2 files changed
+4
-1
No files matched your search
@@ -154,6 +154,8 @@ must_throw ("!x => 4");
|
||||
must_throw ("x => {} = 1");
|
||||
must_throw ("x => {} a = 1");
|
||||
must_throw ("x => {} ? 1 : 0");
|
||||
must_throw ("(x,x,x) => 0");
|
||||
must_throw ("(x,x,x) => { }");
|
||||
must_throw_strict ("(package) => 0");
|
||||
must_throw_strict ("(package) => { return 5 }");
|
||||
must_throw_strict ("(x,x,x) => 0");
|
||||
|
||||
Reference in new issue
Block a user