Skip to content

Commit

Permalink
Add extra tests for invalid parameters in arrow function.
Browse files Browse the repository at this point in the history
Closes jquery#1010.
Closes jquerygh-1220
  • Loading branch information
ariya committed Jul 7, 2015
1 parent 6bd50a2 commit f1587c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"index":6,"lineNumber":1,"column":7,"message":"Error: Line 1: Strict mode function may not have duplicate parameter names","description":"Strict mode function may not have duplicate parameter names"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(x, x) => y;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"index":22,"lineNumber":1,"column":23,"message":"Error: Line 1: Parameter name eval or arguments is not allowed in strict mode","description":"Parameter name eval or arguments is not allowed in strict mode"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eval => {"use strict"};

0 comments on commit f1587c3

Please sign in to comment.