TypeScript/tests/baselines/reference/objectLiteralWithGetAccessorInsideFunction.js

20 lines
399 B
TypeScript

//// [objectLiteralWithGetAccessorInsideFunction.ts]
function bar() {
var x = {
get _extraOccluded() {
var occluded = 0;
return occluded;
},
}
}
//// [objectLiteralWithGetAccessorInsideFunction.js]
function bar() {
var x = {
get _extraOccluded() {
var occluded = 0;
return occluded;
}
};
}