aboutsummaryrefslogtreecommitdiff
path: root/test/input/invalid/for-in_2.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-06-23 04:14:30 +0800
committerGitHub <noreply@github.com>2017-06-23 04:14:30 +0800
commit0692435f01aad54fb586d24ad0c118d70b5c26ee (patch)
treee4008cd61682105c8d942564bee77a45c5cb311f /test/input/invalid/for-in_2.js
parentf67a6b0e434742df31144bf49d75ff61667520b6 (diff)
downloadtracifyjs-0692435f01aad54fb586d24ad0c118d70b5c26ee.tar.gz
tracifyjs-0692435f01aad54fb586d24ad0c118d70b5c26ee.zip
fix for-in loop parsing (#2144)
Diffstat (limited to 'test/input/invalid/for-in_2.js')
-rw-r--r--test/input/invalid/for-in_2.js4
1 files changed, 4 insertions, 0 deletions
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]);
+}