2017-08-01 11:36:44 -05:00
|
|
|
Tests Runtime.compileScript
|
2016-12-23 16:30:57 +01:00
|
|
|
Compiling script: foo1.js
|
|
|
|
persist: false
|
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
2018-12-04 08:20:37 +01:00
|
|
|
columnNumber : 3
|
2016-12-23 16:30:57 +01:00
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected end of input
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-----
|
|
|
|
Compiling script: foo2.js
|
|
|
|
persist: true
|
|
|
|
Debugger.scriptParsed: foo2.js
|
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-----
|
|
|
|
Compiling script: foo3.js
|
|
|
|
persist: false
|
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-----
|
|
|
|
Compiling script: foo4.js
|
|
|
|
persist: false
|
|
|
|
compilation result:
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 13
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
2022-09-21 13:28:42 +02:00
|
|
|
description : SyntaxError: Unexpected identifier 'f'
|
2016-12-23 16:30:57 +01:00
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-01 11:36:44 -05:00
|
|
|
-----
|