2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNames1_ES5.ts]
|
|
|
|
var v = {
|
|
|
|
get [0 + 1]() { return 0 },
|
|
|
|
set [0 + 1](v: string) { } //No error
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNames1_ES5.js]
|
2015-02-22 00:00:23 +01:00
|
|
|
var v = (_a = {}, _a[0 + 1] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), _a[0 + 1] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }),
|
2015-02-21 06:53:44 +01:00
|
|
|
_a);
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|