Skip to content

Commit

Permalink
test: add negative test for node supported
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushong committed Oct 26, 2019
1 parent 6d3fd0f commit 55315c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/eslint/node8/for-await-of.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

function fn() {}

async function loop() {
for await (const x of [5]) {
fn(x);
}
}
loop();
1 change: 1 addition & 0 deletions examples/eslint/node8/for-await-of.js.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "errorCount": 1 }

0 comments on commit 55315c9

Please sign in to comment.