aboutsummaryrefslogtreecommitdiff
path: root/test/input/invalid
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
parentf67a6b0e434742df31144bf49d75ff61667520b6 (diff)
downloadtracifyjs-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.js4
-rw-r--r--test/input/invalid/for-in_2.js4
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]);
+}
1644423f1b685778b8862a'>Add 'guix offload' as a daemon build hook....Ludovic Courtès 2013-11-03Add mips64el-linux to the list of supported systems....Mark H Weaver 2013-07-17build: Provide a replacement (srfi srfi-37) when the user's one is broken....Ludovic Courtès 2013-07-05build: Bail out on unsupported platforms; add `--with-courage'....Ludovic Courtès 2013-07-05build: Correctly determine the system type for non-Linux systems....Ludovic Courtès 2013-05-10build: Make sure the user's Guile has all the required features....Ludovic Courtès