2015-01-04 19:40:09 +11:00

9 lines
96 B
JavaScript

function* f() {
yield this;
}
var o = {};
for (var x of f.call(o)) {
assert.equal(o, x);
}