20 lines
312 B
JavaScript
20 lines
312 B
JavaScript
|
//// [staticGetter2.ts]
|
||
|
// once caused stack overflow
|
||
|
class C {
|
||
|
static x() {
|
||
|
var r = this;
|
||
|
return this;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [staticGetter2.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
C.x = function () {
|
||
|
var r = this;
|
||
|
return this;
|
||
|
};
|
||
|
return C;
|
||
|
})();
|