2015-02-07 05:49:58 +01:00
|
|
|
//// [symbolDeclarationEmit13.ts]
|
|
|
|
class C {
|
|
|
|
get [Symbol.isRegExp]() { return ""; }
|
|
|
|
set [Symbol.toStringTag](x) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit13.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, Symbol.isRegExp, {
|
2015-02-21 23:43:45 +01:00
|
|
|
get: function () { return ""; },
|
2015-02-07 05:49:58 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, Symbol.toStringTag, {
|
2015-02-07 06:38:53 +01:00
|
|
|
set: function (x) { },
|
2015-02-07 05:49:58 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit13.d.ts]
|
|
|
|
declare class C {
|
|
|
|
[Symbol.isRegExp]: string;
|
|
|
|
[Symbol.toStringTag]: any;
|
|
|
|
}
|