diff options
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/invalid/for-in_1.js | 4 | ||||
-rw-r--r-- | test/input/invalid/for-in_2.js | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/input/invalid/for-in_1.js b/test/input/invalid/for-in_1.js new file mode 100644 index 00000000..4d872d19 --- /dev/null +++ b/test/input/invalid/for-in_1.js @@ -0,0 +1,4 @@ +var a, b = [1, 2]; +for (1, 2, a in b) { + console.log(a, b[a]); +} diff --git a/test/input/invalid/for-in_2.js b/test/input/invalid/for-in_2.js new file mode 100644 index 00000000..57d861e9 --- /dev/null +++ b/test/input/invalid/for-in_2.js @@ -0,0 +1,4 @@ +var c = [1, 2]; +for (var a, b in c) { + console.log(a, c[a]); +} |