21 lines
356 B
JavaScript
21 lines
356 B
JavaScript
|
//// [getterMissingReturnError.ts]
|
||
|
class test {
|
||
|
public get p2(){
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
//// [getterMissingReturnError.js]
|
||
|
var test = (function () {
|
||
|
function test() {
|
||
|
}
|
||
|
Object.defineProperty(test.prototype, "p2", {
|
||
|
get: function () {
|
||
|
},
|
||
|
enumerable: true,
|
||
|
configurable: true
|
||
|
});
|
||
|
return test;
|
||
|
})();
|