diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-06-23 04:14:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 04:14:30 +0800 |
commit | 0692435f01aad54fb586d24ad0c118d70b5c26ee (patch) | |
tree | e4008cd61682105c8d942564bee77a45c5cb311f /test/input/invalid | |
parent | f67a6b0e434742df31144bf49d75ff61667520b6 (diff) | |
download | tracifyjs-0692435f01aad54fb586d24ad0c118d70b5c26ee.tar.gz tracifyjs-0692435f01aad54fb586d24ad0c118d70b5c26ee.zip |
fix for-in loop parsing (#2144)
Diffstat (limited to 'test/input/invalid')
-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]); +} |