From 0692435f01aad54fb586d24ad0c118d70b5c26ee Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 23 Jun 2017 04:14:30 +0800 Subject: fix for-in loop parsing (#2144) --- test/input/invalid/for-in_2.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/input/invalid/for-in_2.js (limited to 'test/input/invalid/for-in_2.js') 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]); +} -- cgit v1.2.3