Commit 4dced02
module: add API for interacting with source maps
PR-URL: #31132
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent aedbfdb commit 4dced02Copy full SHA for 4dced02
File tree
Expand file treeCollapse file tree
8 files changed
+252
-32
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal/source_map
- test/parallel
- tools/doc
Expand file treeCollapse file tree
8 files changed
+252
-32
lines changedOpen diff view settings
Collapse file
+86Lines changed: 86 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1033 | 1033 | |
1034 | 1034 | |
1035 | 1035 | |
| 1036 | + |
| 1037 | + |
| 1038 | + |
| 1039 | + |
| 1040 | + |
| 1041 | + |
| 1042 | + |
| 1043 | + |
| 1044 | + |
| 1045 | + |
| 1046 | + |
| 1047 | + |
| 1048 | + |
| 1049 | + |
| 1050 | + |
| 1051 | + |
| 1052 | + |
| 1053 | + |
| 1054 | + |
| 1055 | + |
| 1056 | + |
| 1057 | + |
| 1058 | + |
| 1059 | + |
| 1060 | + |
| 1061 | + |
| 1062 | + |
| 1063 | + |
| 1064 | + |
| 1065 | + |
| 1066 | + |
| 1067 | + |
| 1068 | + |
| 1069 | + |
| 1070 | + |
| 1071 | + |
| 1072 | + |
| 1073 | + |
| 1074 | + |
| 1075 | + |
| 1076 | + |
| 1077 | + |
| 1078 | + |
| 1079 | + |
| 1080 | + |
| 1081 | + |
| 1082 | + |
| 1083 | + |
| 1084 | + |
| 1085 | + |
| 1086 | + |
| 1087 | + |
| 1088 | + |
| 1089 | + |
| 1090 | + |
| 1091 | + |
| 1092 | + |
| 1093 | + |
| 1094 | + |
| 1095 | + |
| 1096 | + |
| 1097 | + |
| 1098 | + |
| 1099 | + |
| 1100 | + |
| 1101 | + |
| 1102 | + |
| 1103 | + |
| 1104 | + |
| 1105 | + |
| 1106 | + |
| 1107 | + |
| 1108 | + |
| 1109 | + |
| 1110 | + |
| 1111 | + |
| 1112 | + |
| 1113 | + |
| 1114 | + |
| 1115 | + |
1036 | 1116 | |
1037 | 1117 | |
1038 | 1118 | |
| ||
1046 | 1126 | |
1047 | 1127 | |
1048 | 1128 | |
| 1129 | + |
| 1130 | + |
| 1131 | + |
| 1132 | + |
| 1133 | + |
| 1134 | + |
Collapse file
lib/internal/source_map/prepare_stack_trace.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/prepare_stack_trace.js+10-8Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
33 | 32 | |
34 | 33 | |
35 | 34 | |
| ||
39 | 38 | |
40 | 39 | |
41 | 40 | |
42 | | - |
43 | | - |
44 | | - |
| 41 | + |
| 42 | + |
45 | 43 | |
46 | 44 | |
47 | | - |
48 | | - |
49 | | - |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
50 | 52 | |
51 | | - |
| 53 | + |
52 | 54 | |
53 | 55 | |
54 | 56 | |
|
Collapse file
lib/internal/source_map/source_map.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/source_map.js+50-22Lines changed: 50 additions & 22 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
66 | 66 | |
67 | 67 | |
68 | 68 | |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
69 | 77 | |
70 | 78 | |
71 | 79 | |
| ||
112 | 120 | |
113 | 121 | |
114 | 122 | |
| 123 | + |
115 | 124 | |
116 | 125 | |
117 | 126 | |
| ||
129 | 138 | |
130 | 139 | |
131 | 140 | |
132 | | - |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
133 | 150 | |
134 | 151 | |
135 | 152 | |
136 | 153 | |
137 | 154 | |
138 | | - |
139 | | - |
140 | | - |
| 155 | + |
| 156 | + |
| 157 | + |
141 | 158 | |
142 | | - |
| 159 | + |
143 | 160 | |
144 | 161 | |
145 | 162 | |
| ||
175 | 192 | |
176 | 193 | |
177 | 194 | |
178 | | - |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
179 | 206 | |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | | - |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | | - |
193 | | - |
194 | | - |
195 | | - |
196 | 207 | |
197 | 208 | |
198 | 209 | |
| ||
296 | 307 | |
297 | 308 | |
298 | 309 | |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
299 | 327 | |
300 | 328 | |
301 | 329 | |
Collapse file
lib/internal/source_map/source_map_cache.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/source_map_cache.js+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
| 40 | + |
40 | 41 | |
41 | 42 | |
42 | 43 | |
| ||
222 | 223 | |
223 | 224 | |
224 | 225 | |
| 226 | + |
| 227 | + |
225 | 228 | |
226 | 229 | |
| 230 | + |
| 231 | + |
| 232 | + |
227 | 233 | |
228 | 234 | |
229 | 235 | |
| ||
235 | 241 | |
236 | 242 | |
237 | 243 | |
238 | | - |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
239 | 249 | |
240 | 250 | |
241 | 251 | |
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
Collapse file
test/parallel/test-source-map-api.js
Copy file name to clipboard+84Lines changed: 84 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 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 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
Collapse file
test/parallel/test-source-map.js test/parallel/test-source-map-enable.jstest/parallel/test-source-map.js renamed to test/parallel/test-source-map-enable.js
Copy file name to clipboardFile renamed without changes.
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
104 | 108 | |
105 | 109 | |
106 | 110 | |
|
0 commit comments