83d7c4d34b
Currently, only a scriptURL is reported, which can be over-written by sourceURL comments of the script. This means a script can basically claim to come from anywhere. This means that DevTools doesn't know the resource name the embedder provided if there is a sourceURL comment. This CL adds a `embedderName` field to the scriptParsed and scriptFailedToParse events that reports the name the embedder associated with the script. Bug: chromium:974543 Change-Id: I9863f878f57638174847890d9a3818952b1efc27 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2317310 Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#69078}
28 lines
632 B
Plaintext
28 lines
632 B
Plaintext
getPossibleBreakpoints should not crash during lazy compilation (crbug.com/715334)
|
|
{
|
|
method : Debugger.scriptFailedToParse
|
|
params : {
|
|
embedderName :
|
|
endColumn : 23
|
|
endLine : 2
|
|
executionContextId : <executionContextId>
|
|
hasSourceURL : true
|
|
hash : 1bce5d0c4da4d13a3ea6e6f35ea0f34705c26ba4
|
|
isModule : false
|
|
length : 56
|
|
scriptId : <scriptId>
|
|
scriptLanguage : JavaScript
|
|
sourceMapURL :
|
|
startColumn : 0
|
|
startLine : 0
|
|
url : test.js
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
locations : [
|
|
]
|
|
}
|
|
}
|