2015-02-03 02:19:27 +01:00
|
|
|
//// [symbolProperty18.ts]
|
|
|
|
var i = {
|
|
|
|
[Symbol.iterator]: 0,
|
|
|
|
[Symbol.toStringTag]() { return "" },
|
|
|
|
set [Symbol.toPrimitive](p: boolean) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
var it = i[Symbol.iterator];
|
|
|
|
var str = i[Symbol.toStringTag]();
|
|
|
|
i[Symbol.toPrimitive] = false;
|
|
|
|
|
|
|
|
//// [symbolProperty18.js]
|
|
|
|
var i = {
|
|
|
|
[Symbol.iterator]: 0,
|
2015-03-09 02:23:23 +01:00
|
|
|
[Symbol.toStringTag]() {
|
|
|
|
return "";
|
|
|
|
},
|
|
|
|
set [Symbol.toPrimitive](p) {
|
|
|
|
}
|
2015-02-03 02:19:27 +01:00
|
|
|
};
|
|
|
|
var it = i[Symbol.iterator];
|
|
|
|
var str = i[Symbol.toStringTag]();
|
|
|
|
i[Symbol.toPrimitive] = false;
|