128 lines
4.2 KiB
Plaintext
128 lines
4.2 KiB
Plaintext
===================================================================
|
|
JsFile: ES5For-of33.js
|
|
mapUrl: ES5For-of33.js.map
|
|
sourceRoot:
|
|
sources: ES5For-of33.ts
|
|
===================================================================
|
|
-------------------------------------------------------------------
|
|
emittedFile:tests/cases/conformance/statements/for-ofStatements/ES5For-of33.js
|
|
sourceFile:ES5For-of33.ts
|
|
-------------------------------------------------------------------
|
|
>>>var __values = (this && this.__values) || function (o) {
|
|
>>> var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
>>> if (m) return m.call(o);
|
|
>>> return {
|
|
>>> next: function () {
|
|
>>> if (o && i >= o.length) o = void 0;
|
|
>>> return { value: o && o[i++], done: !o };
|
|
>>> }
|
|
>>> };
|
|
>>>};
|
|
>>>try {
|
|
>>> for (var _a = __values(['a', 'b', 'c']), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
1 >^^^^
|
|
2 > ^^^
|
|
3 > ^
|
|
4 > ^
|
|
5 > ^^^^
|
|
6 > ^^^^^
|
|
7 > ^^^^^^^^^
|
|
8 > ^
|
|
9 > ^^^
|
|
10> ^^
|
|
11> ^^^
|
|
12> ^^
|
|
13> ^^^
|
|
14> ^
|
|
15> ^
|
|
16> ^^^^^^^^^^^^^^^^
|
|
1 >
|
|
2 > for
|
|
3 >
|
|
4 > (var v of
|
|
5 >
|
|
6 >
|
|
7 >
|
|
8 > [
|
|
9 > 'a'
|
|
10> ,
|
|
11> 'b'
|
|
12> ,
|
|
13> 'c'
|
|
14> ]
|
|
15>
|
|
16>
|
|
1 >Emitted(12, 5) Source(1, 1) + SourceIndex(0)
|
|
2 >Emitted(12, 8) Source(1, 4) + SourceIndex(0)
|
|
3 >Emitted(12, 9) Source(1, 5) + SourceIndex(0)
|
|
4 >Emitted(12, 10) Source(1, 15) + SourceIndex(0)
|
|
5 >Emitted(12, 14) Source(1, 15) + SourceIndex(0)
|
|
6 >Emitted(12, 19) Source(1, 15) + SourceIndex(0)
|
|
7 >Emitted(12, 28) Source(1, 15) + SourceIndex(0)
|
|
8 >Emitted(12, 29) Source(1, 16) + SourceIndex(0)
|
|
9 >Emitted(12, 32) Source(1, 19) + SourceIndex(0)
|
|
10>Emitted(12, 34) Source(1, 21) + SourceIndex(0)
|
|
11>Emitted(12, 37) Source(1, 24) + SourceIndex(0)
|
|
12>Emitted(12, 39) Source(1, 26) + SourceIndex(0)
|
|
13>Emitted(12, 42) Source(1, 29) + SourceIndex(0)
|
|
14>Emitted(12, 43) Source(1, 30) + SourceIndex(0)
|
|
15>Emitted(12, 44) Source(1, 30) + SourceIndex(0)
|
|
16>Emitted(12, 60) Source(1, 30) + SourceIndex(0)
|
|
---
|
|
>>> var v = _b.value;
|
|
1 >^^^^^^^^
|
|
2 > ^^^^
|
|
3 > ^
|
|
4 > ^^^^^^^^^^^
|
|
1 >
|
|
2 > var
|
|
3 > v
|
|
4 >
|
|
1 >Emitted(13, 9) Source(1, 6) + SourceIndex(0)
|
|
2 >Emitted(13, 13) Source(1, 10) + SourceIndex(0)
|
|
3 >Emitted(13, 14) Source(1, 11) + SourceIndex(0)
|
|
4 >Emitted(13, 25) Source(1, 11) + SourceIndex(0)
|
|
---
|
|
>>> console.log(v);
|
|
1 >^^^^^^^^
|
|
2 > ^^^^^^^
|
|
3 > ^
|
|
4 > ^^^
|
|
5 > ^
|
|
6 > ^
|
|
7 > ^
|
|
8 > ^
|
|
1 > of ['a', 'b', 'c']) {
|
|
>
|
|
2 > console
|
|
3 > .
|
|
4 > log
|
|
5 > (
|
|
6 > v
|
|
7 > )
|
|
8 > ;
|
|
1 >Emitted(14, 9) Source(2, 5) + SourceIndex(0)
|
|
2 >Emitted(14, 16) Source(2, 12) + SourceIndex(0)
|
|
3 >Emitted(14, 17) Source(2, 13) + SourceIndex(0)
|
|
4 >Emitted(14, 20) Source(2, 16) + SourceIndex(0)
|
|
5 >Emitted(14, 21) Source(2, 17) + SourceIndex(0)
|
|
6 >Emitted(14, 22) Source(2, 18) + SourceIndex(0)
|
|
7 >Emitted(14, 23) Source(2, 19) + SourceIndex(0)
|
|
8 >Emitted(14, 24) Source(2, 20) + SourceIndex(0)
|
|
---
|
|
>>> }
|
|
1 >^^^^^
|
|
1 >
|
|
>}
|
|
1 >Emitted(15, 6) Source(3, 2) + SourceIndex(0)
|
|
---
|
|
>>>}
|
|
>>>catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
>>>finally {
|
|
>>> try {
|
|
>>> if (_b && !_b.done && (_c = _a["return"])) _c.call(_a);
|
|
>>> }
|
|
>>> finally { if (e_1) throw e_1.error; }
|
|
>>>}
|
|
>>>var e_1, _c;
|
|
>>>//# sourceMappingURL=ES5For-of33.js.map |