Files
react-native-devtools-frontend/test/e2e/resources/sources/sourcemap-stepping-target.js
T
Jaroslav Sevcik 33293f95a5 Reland "Improve stepping with source maps"
This reverts commit a09263601b.

This change did not cause the original breakage, so we are relanding
the original CL as is.

Original change's description:
> Improve stepping with source maps
>
> This aligns stepping through source maps with stepping through
> Wasm+Dwarf: when stepping from a location, we lookup the corresponding
> source location and then make sure we skip all the raw/compiled
> locations that correspond to that source location.
>
> To implement the skipping, we reuse the skipList mechanism that is
> already used for stepping through Wasm+Dwarf.
>
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3093161

Bug: crbug.com/1232347
Change-Id: Ibe83e035aea73f070949902051dd8f100dde6f32
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3172834
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2021-09-22 07:37:24 +00:00

25 lines
554 B
JavaScript

function add(a, b) { return a + b; }
function multiline() {
const a_1 = 1;
const a_2 = 2;
const x = add(a_1, a_2);
const a_3 = 3;
const a_4 = 4;
const y = add(a_3, a_4);
const a_5 = x;
const a_6 = y;
const z = add(a_5, a_6);
console.log(z);
}
function singleline() {
const a_1 = 1; const a_2 = 2; const x = add(a_1, a_2);
const a_3 = 3; const a_4 = 4; const y = add(a_3, a_4);
const a_5 = x; const a_6 = y; const z = add(a_5, a_6);
console.log(z);
}
//# sourceMappingURL=sourcemap-stepping.map