2016-11-17 04:39:30 +00:00
|
|
|
Checks that inspector reports script compiled in Runtime.evaluate,Runtime.callFunctionOn and Runtime.compileScript
|
|
|
|
Runtime.evaluate with valid expression
|
|
|
|
{
|
|
|
|
method : Debugger.scriptParsed
|
|
|
|
params : {
|
|
|
|
endColumn : 29
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : true
|
|
|
|
hash : 9D04F7335D1661503EAB9AF3EACAF92020803F34
|
|
|
|
isLiveEdit : false
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : false
|
2016-11-17 04:39:30 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : evaluate.js
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Runtime.evaluate with syntax error
|
|
|
|
{
|
|
|
|
method : Debugger.scriptFailedToParse
|
|
|
|
params : {
|
|
|
|
endColumn : 39
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : true
|
|
|
|
hash : 9BCA34A10E5386925E74C1716C857BEB02821E15
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : false
|
2016-11-17 04:39:30 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : evaluate-syntax-error.js
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Runtime.callFunctionOn with valid functionDeclaration
|
|
|
|
{
|
|
|
|
method : Debugger.scriptParsed
|
|
|
|
params : {
|
|
|
|
endColumn : 18
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
|
|
|
hash : 9D04CEA1B54DF92A01A0498543D429DC872EBA18
|
|
|
|
isLiveEdit : false
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : false
|
2016-11-17 04:39:30 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Runtime.callFunctionOn with syntax error
|
|
|
|
{
|
|
|
|
method : Debugger.scriptFailedToParse
|
|
|
|
params : {
|
|
|
|
endColumn : 3
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
|
|
|
hash : 9D04D83251E2B7F64CB5762843D429DC872EBA18
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : false
|
2016-11-17 04:39:30 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Runtime.compileScript with valid expression
|
|
|
|
{
|
|
|
|
method : Debugger.scriptParsed
|
|
|
|
params : {
|
|
|
|
endColumn : 4
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
|
|
|
hash : 9D04F733E4E4F1BA4CB5762843D429DC872EBA18
|
|
|
|
isLiveEdit : false
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : false
|
2016-11-17 04:39:30 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : compile-script.js
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Runtime.compileScript with syntax error
|
|
|
|
{
|
|
|
|
method : Debugger.scriptFailedToParse
|
|
|
|
params : {
|
|
|
|
endColumn : 1
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
|
|
|
hash : FF746120E4E4F1BA4CB5762843D429DC872EBA18
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : false
|
2016-11-17 04:39:30 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : compile-script-syntax-error.js
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Runtime.compileScript persistScript: false (should be no script events)
|