Description[wasm] Make reported "lines" on stack frames 1-based
In captured stack traces, all lines and columns must be 1-based.
Even though this makes things a bit ugly, we have to comply also for
wasm locations, where line and column encode function index and byte
offset (both are originally 0-based).
If we don't comply, the frontend might complain, as e.g. DevTools does.
BUG=chromium:659715
R=yangguo@chromium.org, kozyatinskiy@chromium.org
CC=titzer@chromium.org
Committed: https://crrev.com/0c6fa1724f3ae2642f2f1628c10c362e01078803
Cr-Commit-Position: refs/heads/master@{#40971}
Patch Set 1 #Patch Set 2 : Fix test cases #Patch Set 3 : rebase #
Messages
Total messages: 24 (17 generated)
|