v8/test/inspector/debugger/es6-module-script-parsed-expected.txt
Philip Pfaffe e71d328fb3 Report additional wasm script info on the CDP
Add a scriptLanguage enum to the new scripts events. This overhauls
crrev.com/c/2011083 that was related. Report the code section offset
as well as the script language on the Debugger.scriptParsed and
Debugger.scriptFailedToParse events.

Bug: chromium:1057569
Change-Id: I40b43f28f0b3e094720db4fc1f07db1a0c293ee0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2083025
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66749}
2020-03-17 13:25:24 +00:00

62 lines
1.5 KiB
Plaintext

Debugger.scriptParsed and Debugger.scriptFailedToParse with ES6 module
Running test: testLoadedModulesOnDebuggerEnable
{
method : Debugger.scriptParsed
params : {
endColumn : 1
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : false
hash : 03b276dd81b75bf832afbeccbbd273c62dad100c
isLiveEdit : false
isModule : true
length : 39
scriptId : <scriptId>
scriptLanguage : JavaScript
sourceMapURL :
startColumn : 0
startLine : 0
url : module1.js
}
}
Running test: testScriptEventsWhenDebuggerIsEnabled
{
method : Debugger.scriptParsed
params : {
endColumn : 1
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : false
hash : 03b276dd81b75bf832afbeccbbd273c62dad100c
isLiveEdit : false
isModule : true
length : 39
scriptId : <scriptId>
scriptLanguage : JavaScript
sourceMapURL :
startColumn : 0
startLine : 0
url : module2.js
}
}
{
method : Debugger.scriptFailedToParse
params : {
endColumn : 1
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : false
hash : 021647ffab1f4e4e82675bc4cd924d3481abe278
isModule : true
length : 1
scriptId : <scriptId>
scriptLanguage : JavaScript
sourceMapURL :
startColumn : 0
startLine : 0
url : module-with-syntax-error-2.js
}
}