TypeScript/tests/baselines/reference/symbolProperty19.js
2015-02-06 21:31:58 -08:00

18 lines
417 B
JavaScript

//// [symbolProperty19.ts]
var i = {
[Symbol.iterator]: { p: null },
[Symbol.toStringTag]() { return { p: undefined }; }
}
var it = i[Symbol.iterator];
var str = i[Symbol.toStringTag]();
//// [symbolProperty19.js]
var i = {
[Symbol.iterator]: { p: null },
[Symbol.toStringTag]() {
return { p: undefined };
}
};
var it = i[Symbol.iterator];
var str = i[Symbol.toStringTag]();