12 lines
175 B
TypeScript
12 lines
175 B
TypeScript
//// [YieldExpression10_es6.ts]
|
|
var v = { * foo() {
|
|
yield(foo);
|
|
}
|
|
}
|
|
|
|
|
|
//// [YieldExpression10_es6.js]
|
|
var v = { foo: function () {
|
|
yield (foo);
|
|
}
|
|
};
|