2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNames17_ES5.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-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNames17_ES5.js]
|
2015-01-14 01:10:24 +01:00
|
|
|
var b;
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, b, {
|
2015-02-07 05:03:24 +01:00
|
|
|
get: function () { return 0; },
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, true, {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, [], {
|
2015-02-07 05:03:24 +01:00
|
|
|
get: function () { return 0; },
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, {}, {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, undefined, {
|
2015-02-07 05:03:24 +01:00
|
|
|
get: function () { return 0; },
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, null, {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-01-14 01:10:24 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|