2019-03-01 19:26:26 +00:00
|
|
|
Tests that Runtime throws exceptions after enabling domain on scripts with errors.
|
|
|
|
Enabling Runtime Domain.
|
|
|
|
{
|
|
|
|
method : Runtime.exceptionThrown
|
|
|
|
params : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 12
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
2019-06-06 19:35:53 +00:00
|
|
|
description : SyntaxError: Unexpected token ';'
|
2019-03-01 19:26:26 +00:00
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
2019-06-06 19:35:53 +00:00
|
|
|
text : Uncaught SyntaxError: Unexpected token ';'
|
2019-03-01 19:26:26 +00:00
|
|
|
url : syntaxError.js
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.exceptionThrown
|
|
|
|
params : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 12
|
|
|
|
exception : {
|
|
|
|
className : ReferenceError
|
|
|
|
description : ReferenceError: y is not defined at referenceError.js:2:13
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught ReferenceError: y is not defined
|
|
|
|
url : referenceError.js
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
}
|
|
|
|
}
|