Skip to content

Commit fee596b

Browse files
committed
added test for skipped node case
1 parent ed26563 commit fee596b

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

tests/baselines/reference/sourceMap-SkippedNode.js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/baselines/reference/sourceMap-SkippedNode.js.map

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
===================================================================
2+
JsFile: sourceMap-SkippedNode.js
3+
mapUrl: sourceMap-SkippedNode.js.map
4+
sourceRoot:
5+
sources: sourceMap-SkippedNode.ts
6+
===================================================================
7+
-------------------------------------------------------------------
8+
emittedFile:tests/cases/compiler/sourceMap-SkippedNode.js
9+
sourceFile:sourceMap-SkippedNode.ts
10+
-------------------------------------------------------------------
11+
>>>try {
12+
1 >
13+
2 >^^^^
14+
3 > ^
15+
1 >
16+
2 >
17+
3 > t
18+
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
19+
2 >Emitted(1, 5) Source(1, 1) + SourceIndex(0)
20+
3 >Emitted(1, 6) Source(1, 2) + SourceIndex(0)
21+
---
22+
>>>}
23+
1 >
24+
2 >^
25+
3 > ^^^^^^^^^->
26+
1 >ry {
27+
>// ...
28+
>
29+
2 >}
30+
1 >Emitted(2, 1) Source(3, 1) + SourceIndex(0)
31+
2 >Emitted(2, 2) Source(3, 2) + SourceIndex(0)
32+
---
33+
>>>finally {
34+
1->^^^^^^^^
35+
2 > ^
36+
1->
37+
2 > f
38+
1->Emitted(3, 9) Source(3, 3) + SourceIndex(0)
39+
2 >Emitted(3, 10) Source(3, 4) + SourceIndex(0)
40+
---
41+
>>>}
42+
1 >
43+
2 >^
44+
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
45+
1 >inally {
46+
>// N.B. No 'catch' block
47+
>
48+
2 >}
49+
1 >Emitted(4, 1) Source(5, 1) + SourceIndex(0)
50+
2 >Emitted(4, 2) Source(5, 2) + SourceIndex(0)
51+
---
52+
>>>//# sourceMappingURL=sourceMap-SkippedNode.js.map
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@sourceMap: true
2+
try {
3+
// ...
4+
} finally {
5+
// N.B. No 'catch' block
6+
}

0 commit comments

Comments
 (0)