File: ES5For-ofTypeCheck10.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (29 lines) | stat: -rw-r--r-- 959 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
=== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts ===
// In ES3/5, you cannot for...of over an arbitrary iterable.
class StringIterator {
>StringIterator : Symbol(StringIterator, Decl(ES5For-ofTypeCheck10.ts, 0, 0))

    next() {
>next : Symbol(StringIterator.next, Decl(ES5For-ofTypeCheck10.ts, 1, 22))

        return {
            done: true,
>done : Symbol(done, Decl(ES5For-ofTypeCheck10.ts, 3, 16))

            value: ""
>value : Symbol(value, Decl(ES5For-ofTypeCheck10.ts, 4, 23))

        };
    }
    [Symbol.iterator]() {
>[Symbol.iterator] : Symbol(StringIterator[Symbol.iterator], Decl(ES5For-ofTypeCheck10.ts, 7, 5))

        return this;
>this : Symbol(StringIterator, Decl(ES5For-ofTypeCheck10.ts, 0, 0))
    }
}

for (var v of new StringIterator) { }
>v : Symbol(v, Decl(ES5For-ofTypeCheck10.ts, 13, 8))
>StringIterator : Symbol(StringIterator, Decl(ES5For-ofTypeCheck10.ts, 0, 0))