babel/test/fixtures/traceur/Yield/FunctionDeclaration.js
2015-01-04 19:40:09 +11:00

13 lines
140 B
JavaScript

(function() {
function* f() {
function g() {
return 42;
}
yield g;
}
assert.equal(42, f().next().value());
})();