Skip to content

Commit

Permalink
Add test for #103
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed Apr 8, 2014
1 parent d789d50 commit 60584d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/tests.es6.js
Expand Up @@ -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(), []);
});
});

0 comments on commit 60584d2

Please sign in to comment.