2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames17_ES6.ts]
|
2015-01-14 01:10:24 +01:00
|
|
|
var b: boolean;
|
|
|
|
class C {
|
|
|
|
get [b]() { return 0;}
|
|
|
|
static set [true](v) { }
|
|
|
|
get [[]]() { return 0; }
|
|
|
|
set [{}](v) { }
|
|
|
|
static get [undefined]() { return 0; }
|
|
|
|
set [null](v) { }
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames17_ES6.js]
|
2015-01-14 01:10:24 +01:00
|
|
|
var b;
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, b, {
|
2015-03-09 02:23:23 +01:00
|
|
|
get: function () {
|
|
|
|
return 0;
|
|
|
|
},
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, true, {
|
2015-03-09 02:23:23 +01:00
|
|
|
set: function (v) {
|
|
|
|
},
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, [], {
|
2015-03-09 02:23:23 +01:00
|
|
|
get: function () {
|
|
|
|
return 0;
|
|
|
|
},
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, {}, {
|
2015-03-09 02:23:23 +01:00
|
|
|
set: function (v) {
|
|
|
|
},
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, undefined, {
|
2015-03-09 02:23:23 +01:00
|
|
|
get: function () {
|
|
|
|
return 0;
|
|
|
|
},
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, null, {
|
2015-03-09 02:23:23 +01:00
|
|
|
set: function (v) {
|
|
|
|
},
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|