2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames3_ES6.ts]
|
2015-01-06 23:19:43 +01:00
|
|
|
var id;
|
|
|
|
class C {
|
|
|
|
[0 + 1]() { }
|
|
|
|
static [() => { }]() { }
|
|
|
|
get [delete id]() { }
|
|
|
|
set [[0, 1]](v) { }
|
|
|
|
static get [<String>""]() { }
|
|
|
|
static set [id.toString()](v) { }
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames3_ES6.js]
|
2015-01-06 23:19:43 +01:00
|
|
|
var id;
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype[0 + 1] = function () { };
|
|
|
|
C[() => { }] = function () { };
|
2015-01-06 23:19:43 +01:00
|
|
|
Object.defineProperty(C.prototype, delete id, {
|
2015-02-07 03:45:09 +01:00
|
|
|
get: function () { },
|
2015-01-06 23:19:43 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, [0, 1], {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-01-06 23:19:43 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, "", {
|
2015-02-07 03:45:09 +01:00
|
|
|
get: function () { },
|
2015-01-06 23:19:43 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, id.toString(), {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-01-06 23:19:43 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|