Commit 40d57b7
repl: fix stack trace column number in strict mode
On strict mode, "'use strict'; void 0; " is added as prefix
in order to prevent "use strict" as the result value
for let/const statements. It causes wrong column number in
stack trace.
PR-URL: #5416
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>1 parent f0c0614 commit 40d57b7Copy full SHA for 40d57b7
File tree
Expand file treeCollapse file tree
2 files changed
+25
-4
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+25
-4
lines changedOpen diff view settings
Collapse file
+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
228 | 228 | |
229 | 229 | |
230 | 230 | |
231 | | - |
| 231 | + |
232 | 232 | |
233 | 233 | |
234 | 234 | |
| ||
287 | 287 | |
288 | 288 | |
289 | 289 | |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
290 | 294 | |
291 | 295 | |
292 | 296 | |
|
Collapse file
+20-3Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
51 | 58 | |
52 | 59 | |
53 | 60 | |
| 61 | + |
54 | 62 | |
55 | 63 | |
56 | 64 | |
| ||
72 | 80 | |
73 | 81 | |
74 | 82 | |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
75 | 87 | |
76 | 88 | |
77 | 89 | |
| ||
83 | 95 | |
84 | 96 | |
85 | 97 | |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
86 | 102 | |
87 | 103 | |
88 | 104 | |
| ||
381 | 397 | |
382 | 398 | |
383 | 399 | |
384 | | - |
| 400 | + |
385 | 401 | |
386 | 402 | |
387 | 403 | |
388 | 404 | |
389 | | - |
| 405 | + |
| 406 | + |
390 | 407 | |
391 | 408 | |
392 | 409 | |
|
0 commit comments