From 710be2634b4f2eb990b565c58305848bfbb62832 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 2 Oct 2014 09:53:35 +1000 Subject: [PATCH] add multiple for-of test --- test/fixtures/for-of/multiple/actual.js | 7 +++++++ test/fixtures/for-of/multiple/expected.js | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 test/fixtures/for-of/multiple/actual.js create mode 100644 test/fixtures/for-of/multiple/expected.js diff --git a/test/fixtures/for-of/multiple/actual.js b/test/fixtures/for-of/multiple/actual.js new file mode 100644 index 0000000000..d9c969b809 --- /dev/null +++ b/test/fixtures/for-of/multiple/actual.js @@ -0,0 +1,7 @@ +for (var i of arr) { + +} + +for (var i of numbers) { + +} diff --git a/test/fixtures/for-of/multiple/expected.js b/test/fixtures/for-of/multiple/expected.js new file mode 100644 index 0000000000..f1d3d35477 --- /dev/null +++ b/test/fixtures/for-of/multiple/expected.js @@ -0,0 +1,7 @@ +for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done; ) { + var i = _step.value; +} + +for (var _iterator2 = numbers[Symbol.iterator](), _step2; !(_step2 = _iterator2.next()).done; ) { + var i = _step2.value; +}