17 lines
241 B
JavaScript
17 lines
241 B
JavaScript
|
//// [YieldExpression11_es6.ts]
|
||
|
class C {
|
||
|
*foo() {
|
||
|
yield(foo);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [YieldExpression11_es6.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
C.prototype.foo = function () {
|
||
|
;
|
||
|
};
|
||
|
return C;
|
||
|
})();
|