Commit 2769d40
src: don't crash on invalid script positions
This "fixes" the crash reported in #422, in the sense that you no longer
get a crash. However the printing does not actually work, i.e. you
currently get an error like this:
```console
(lldb) v8 i -s 0x2196b1a09a29
error: Invalid source range, start_pos=3108, len=-3098, source_len=10
```
I'm deeming this better than crashing. We should really never be
crashing as the coredump might be incomplete/partially corrupted.
(Also, we already know function printing on v16 doesn't work right now.)1 parent bc857f0 commit 2769d40
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
366 | 372 | | |
| 373 | + | |
367 | 374 | | |
368 | 375 | | |
369 | 376 | | |
| |||
0 commit comments