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