Skip to content

Commit

Permalink
Merge pull request #104 from spicyj/gh-103
Browse files Browse the repository at this point in the history
Add test for #103.
  • Loading branch information
benjamn committed Apr 8, 2014
2 parents 97fefec + 3ef98a1 commit 63b57d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"commander": "~2.1.0",
"esprima": "git://github.com/ariya/esprima.git#harmony",
"recast": "~0.5.13",
"recast": "~0.5.16",
"private": "~0.1.2",
"defs": "~0.6.2"
},
Expand Down
12 changes: 12 additions & 0 deletions test/tests.es6.js
Original file line number Diff line number Diff line change
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 63b57d2

Please sign in to comment.