2017-05-19 00:35:45 +00:00
|
|
|
Tests Runtime.compileScript
|
2016-10-02 21:22:49 +00:00
|
|
|
Compiling script: foo1.js
|
|
|
|
persist: false
|
2016-10-03 23:32:52 +00:00
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
2018-08-27 11:54:59 +00:00
|
|
|
columnNumber : 3
|
2016-10-03 23:32:52 +00:00
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected end of input
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-----
|
|
|
|
Compiling script: foo2.js
|
|
|
|
persist: true
|
|
|
|
Debugger.scriptParsed: foo2.js
|
2016-10-03 23:32:52 +00:00
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
-----
|
|
|
|
Compiling script: foo3.js
|
|
|
|
persist: false
|
2016-10-03 23:32:52 +00:00
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
-----
|
|
|
|
Compiling script: foo4.js
|
|
|
|
persist: false
|
2016-10-03 23:32:52 +00:00
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 13
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected identifier
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-05-19 00:35:45 +00:00
|
|
|
-----
|