2015-02-07 04:32:19 +01:00
|
|
|
//// [ES5SymbolProperty6.ts]
|
|
|
|
class C {
|
|
|
|
[Symbol.iterator]() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
(new C)[Symbol.iterator]
|
|
|
|
|
|
|
|
//// [ES5SymbolProperty6.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 06:38:53 +01:00
|
|
|
C.prototype[Symbol.iterator] = function () { };
|
2015-02-07 04:32:19 +01:00
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
(new C)[Symbol.iterator];
|