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