• Alexey Kozyatinskiy's avatar
    inspector: find magic comment using V8 scanner · 1b3b808a
    Alexey Kozyatinskiy authored
    Inspector tries to provide sourceURL and sourceMappingURL for scripts
    with parser errors. Without this CL we convert source of each script
    to inspector string and search for magic comment there. Some web sites
    use pattern when they get some data from network and constantly try to
    parse this data as JSON, in this case we do a lot of useless work.
    
    So we can parse magic comments on V8 side only for compilation errors
    (excluding parse JSON errors), to do it we can reuse scanner by running
    it on each potential comment.
    
    R=alph@chromium.org,verwaest@chromium.org,yangguo@chromium.org
    
    Bug: chromium:873865,v8:7731
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I77c270fd0e95cd7b2c9ee4b7f72ef344bc1fa104
    Reviewed-on: https://chromium-review.googlesource.com/1182446Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Reviewed-by: 's avatarAlexei Filippov <alph@chromium.org>
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55280}
    1b3b808a
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...