19 lines
313 B
TypeScript
19 lines
313 B
TypeScript
//// [ES5SymbolProperty3.ts]
|
|
var Symbol: any;
|
|
|
|
class C {
|
|
[Symbol.iterator]() { }
|
|
}
|
|
|
|
(new C)[Symbol.iterator]
|
|
|
|
//// [ES5SymbolProperty3.js]
|
|
var Symbol;
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype[Symbol.iterator] = function () { };
|
|
return C;
|
|
}());
|
|
(new C)[Symbol.iterator];
|