add traceur test suite

This commit is contained in:
Sebastian McKenzie
2015-01-04 19:40:09 +11:00
parent 18813f26bb
commit 6a35bdb42b
495 changed files with 9831 additions and 360 deletions

View File

@@ -0,0 +1,15 @@
function* forLexicallyNestedGenerator() {
yield* (function*() { yield [1,2,3]; yield* [4,5,6]; })();
}
function accumulate(iterator) {
var result = '';
for (var value of iterator) {
result = result + String(value);
}
return result;
}
// ----------------------------------------------------------------------------
assert.equal('1,2,3456', accumulate(forLexicallyNestedGenerator()));