2015-01-30 02:15:57 +01:00
|
|
|
//// [symbolProperty6.ts]
|
|
|
|
class C {
|
|
|
|
[Symbol.iterator] = 0;
|
|
|
|
[Symbol.unscopables]: number;
|
|
|
|
[Symbol.isRegExp]() { }
|
|
|
|
get [Symbol.toStringTag]() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [symbolProperty6.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
this[Symbol.iterator] = 0;
|
|
|
|
}
|
2015-02-07 06:38:53 +01:00
|
|
|
C.prototype[Symbol.isRegExp] = function () { };
|
2015-01-30 02:15:57 +01:00
|
|
|
Object.defineProperty(C.prototype, Symbol.toStringTag, {
|
|
|
|
get: function () {
|
|
|
|
return 0;
|
|
|
|
},
|
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|