diff --git a/test/tests.es6.js b/test/tests.es6.js index f487ca78357b..f34bd1bc5757 100644 --- a/test/tests.es6.js +++ b/test/tests.es6.js @@ -1636,3 +1636,15 @@ describe("labeled break and continue statements", function() { } }); }); + +describe("for loop with var decl and no update expression", function() { + // https://github.com/facebook/regenerator/issues/103 + function *range() { + for (var i = 0; false; ) { + } + } + + it("should compile and run", function() { + check(range(), []); + }); +});