Skip to content

Commit

Permalink
Fix: Catch ES2016 invalid syntax (fixes #284) (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jul 27, 2016
1 parent ea34a77 commit ff15922
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^3.2.0",
"acorn": "^3.3.0",
"acorn-jsx": "^3.0.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
"index": 24,
"lineNumber": 2,
"column": 3,
"message": "Illegal 'use strict' directive in function with non-simple parameter list"
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function foo(a = 1) {
"use strict"
}

0 comments on commit ff15922

Please sign in to comment.