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