TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js
Cyrus Najmabadi d928baf9d4 Merge branch 'master' into multiLineEmit2
Conflicts:
	src/compiler/emitter.ts
	tests/baselines/reference/computedPropertyNames32_ES5.js
	tests/baselines/reference/computedPropertyNames33_ES6.js
	tests/baselines/reference/computedPropertyNames34_ES6.js
	tests/baselines/reference/computedPropertyNames35_ES5.js
	tests/baselines/reference/privateIndexer2.js
2015-02-21 14:37:54 -08:00

30 lines
702 B
JavaScript

//// [computedPropertyNamesDeclarationEmit1_ES5.ts]
class C {
["" + ""]() { }
get ["" + ""]() { return 0; }
set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit1_ES5.js]
var C = (function () {
function C() {
}
C.prototype["" + ""] = function () { };
Object.defineProperty(C.prototype, "" + "", {
get: function () { return 0; },
enumerable: true,
configurable: true
});
Object.defineProperty(C.prototype, "" + "", {
set: function (x) { },
enumerable: true,
configurable: true
});
return C;
})();
//// [computedPropertyNamesDeclarationEmit1_ES5.d.ts]
declare class C {
}