15 lines
282 B
TypeScript
15 lines
282 B
TypeScript
//// [ES5SymbolProperty6.ts]
|
|
class C {
|
|
[Symbol.iterator]() { }
|
|
}
|
|
|
|
(new C)[Symbol.iterator]
|
|
|
|
//// [ES5SymbolProperty6.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype[Symbol.iterator] = function () { };
|
|
return C;
|
|
}());
|
|
(new C)[Symbol.iterator];
|