Skip to content

Commit

Permalink
test: Verify ES5 vs. ES6 behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Aug 25, 2017
1 parent f898741 commit 1396cb1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/eslint/es5/no-class.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

class X {}
7 changes: 7 additions & 0 deletions examples/eslint/es5/no-class.js.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"errorCount": 1,
"errors": {
"ruleId": null,
"message": "Parsing error: The keyword 'class' is reserved"
}
}
5 changes: 5 additions & 0 deletions examples/eslint/es5/no-promise.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

function f() {}

f(new Promise(f));
3 changes: 3 additions & 0 deletions examples/eslint/es5/no-promise.js.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"errorCount": 1
}
5 changes: 5 additions & 0 deletions examples/eslint/node4/global-promise.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

function f() {}

f(new Promise(f));

0 comments on commit 1396cb1

Please sign in to comment.