Commit d140fe1
[source-map] Fix sourceIndex in mapping entries for index source maps
We "sourceIndex" to mapping entries to resolve inlined source positions
via "scopes" proposal. This CL fixes the "sourceIndex" for index
source maps: These are source maps that contain a set of other
source maps describing different parts of a bundle.
For index source maps we concatenate all the "sources" arrays from
all the "child source maps". The "sourceIndex" is then an index
into the concatenated "sources" list.
[email protected]
Bug: 390337576
Change-Id: I7a450ae466a7ce89516895a137289c4db2c391ac
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6182123
Commit-Queue: Simon Zünd <[email protected]>
Reviewed-by: Kim-Anh Tran <[email protected]>1 parent 5507016 commit d140fe1
2 files changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
| 344 | + | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
467 | | - | |
| 468 | + | |
| 469 | + | |
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
471 | | - | |
| 473 | + | |
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
| |||
503 | 505 | | |
504 | 506 | | |
505 | 507 | | |
506 | | - | |
| 508 | + | |
507 | 509 | | |
508 | 510 | | |
509 | 511 | | |
| |||
550 | 552 | | |
551 | 553 | | |
552 | 554 | | |
553 | | - | |
554 | | - | |
| 555 | + | |
| 556 | + | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
559 | 561 | | |
560 | | - | |
| 562 | + | |
| 563 | + | |
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
| |||
0 commit comments