2017-01-31 00:19:41 +00:00
|
|
|
Checks basic ES6 modules support.
|
|
|
|
{
|
|
|
|
method : Debugger.scriptParsed
|
|
|
|
params : {
|
|
|
|
endColumn : 17
|
|
|
|
endLine : 5
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
2018-03-06 13:56:57 +00:00
|
|
|
hash : 395a588e3dc4c9155d342cb169bcd60d5b96c1a1
|
2017-01-31 00:19:41 +00:00
|
|
|
isLiveEdit : false
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : true
|
2017-03-07 22:01:37 +00:00
|
|
|
length : 83
|
2017-01-31 00:19:41 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : module1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Debugger.scriptParsed
|
|
|
|
params : {
|
|
|
|
endColumn : 17
|
|
|
|
endLine : 5
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
2018-03-06 13:56:57 +00:00
|
|
|
hash : 15448dfe629fbe4306eae7194754692706c6d6ba
|
2017-01-31 00:19:41 +00:00
|
|
|
isLiveEdit : false
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : true
|
2017-03-07 22:01:37 +00:00
|
|
|
length : 84
|
2017-01-31 00:19:41 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : module2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Debugger.scriptParsed
|
|
|
|
params : {
|
|
|
|
endColumn : 0
|
2019-06-11 20:13:31 +00:00
|
|
|
endLine : 11
|
2017-01-31 00:19:41 +00:00
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
2019-06-11 20:13:31 +00:00
|
|
|
hash : 2e8186096446efdc472a6e0559ea22216a664cb5
|
2017-01-31 00:19:41 +00:00
|
|
|
isLiveEdit : false
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : true
|
2019-06-11 20:13:31 +00:00
|
|
|
length : 286
|
2017-01-31 00:19:41 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : module3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(module1)
|
|
|
|
foo (module1:2:10)
|
2019-06-11 20:13:31 +00:00
|
|
|
(anonymous) (module3:5:12)
|
2017-01-31 00:19:41 +00:00
|
|
|
|
|
|
|
console.log(42)
|
2019-06-11 20:13:31 +00:00
|
|
|
(anonymous) (module3:5:8)
|
2017-01-31 00:19:41 +00:00
|
|
|
|
|
|
|
console.log(module2)
|
|
|
|
foo (module2:2:10)
|
2019-06-11 20:13:31 +00:00
|
|
|
(anonymous) (module3:6:12)
|
2017-01-31 00:19:41 +00:00
|
|
|
|
|
|
|
console.log(239)
|
2019-06-11 20:13:31 +00:00
|
|
|
(anonymous) (module3:6:8)
|
2017-01-31 00:19:41 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
method : Debugger.paused
|
|
|
|
params : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
callFrameId : <callFrameId>
|
|
|
|
functionLocation : {
|
|
|
|
columnNumber : 0
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
functionName :
|
|
|
|
location : {
|
|
|
|
columnNumber : 0
|
2019-06-11 20:13:31 +00:00
|
|
|
lineNumber : 9
|
2017-01-31 00:19:41 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
scopeChain : [
|
|
|
|
[0] : {
|
|
|
|
endLocation : {
|
|
|
|
columnNumber : 0
|
2019-06-11 20:13:31 +00:00
|
|
|
lineNumber : 11
|
2017-01-31 00:19:41 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
object : {
|
|
|
|
className : Object
|
|
|
|
description : Object
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
startLocation : {
|
|
|
|
columnNumber : 0
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
type : module
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
object : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
type : global
|
|
|
|
}
|
|
|
|
]
|
|
|
|
this : {
|
|
|
|
type : undefined
|
|
|
|
}
|
2017-09-01 17:27:11 +00:00
|
|
|
url : module3
|
2017-01-31 00:19:41 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
hitBreakpoints : [
|
|
|
|
]
|
|
|
|
reason : other
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : [
|
|
|
|
[0] : {
|
|
|
|
configurable : true
|
|
|
|
enumerable : true
|
|
|
|
isOwn : true
|
|
|
|
name : foo1
|
|
|
|
value : {
|
|
|
|
className : Function
|
|
|
|
description : function foo() { console.log('module1'); return 42; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
writable : true
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
configurable : true
|
|
|
|
enumerable : true
|
|
|
|
isOwn : true
|
|
|
|
name : foo2
|
|
|
|
value : {
|
|
|
|
className : Function
|
|
|
|
description : function foo() { console.log('module2'); return 239; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
writable : true
|
|
|
|
}
|
|
|
|
[2] : {
|
2019-06-11 20:13:31 +00:00
|
|
|
configurable : true
|
|
|
|
enumerable : true
|
|
|
|
isOwn : true
|
|
|
|
name : foo3
|
|
|
|
value : {
|
|
|
|
className : Module
|
|
|
|
description : Module
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
writable : true
|
|
|
|
}
|
|
|
|
[3] : {
|
2017-01-31 00:19:41 +00:00
|
|
|
configurable : true
|
|
|
|
enumerable : true
|
|
|
|
isOwn : true
|
|
|
|
name : a1
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 1
|
2017-01-31 00:19:41 +00:00
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
writable : true
|
|
|
|
}
|
2019-06-11 20:13:31 +00:00
|
|
|
[4] : {
|
2017-01-31 00:19:41 +00:00
|
|
|
configurable : true
|
|
|
|
enumerable : true
|
|
|
|
isOwn : true
|
|
|
|
name : a2
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 2
|
2017-01-31 00:19:41 +00:00
|
|
|
type : number
|
|
|
|
value : 2
|
|
|
|
}
|
|
|
|
writable : true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Debugger.scriptFailedToParse
|
|
|
|
params : {
|
|
|
|
endColumn : 1
|
|
|
|
endLine : 0
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
hasSourceURL : false
|
2018-03-06 13:56:57 +00:00
|
|
|
hash : 021647ffab1f4e4e82675bc4cd924d3481abe278
|
2017-02-03 07:17:09 +00:00
|
|
|
isModule : true
|
2017-03-07 22:01:37 +00:00
|
|
|
length : 1
|
2017-01-31 00:19:41 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
sourceMapURL :
|
|
|
|
startColumn : 0
|
|
|
|
startLine : 0
|
|
|
|
url : module4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.exceptionThrown
|
|
|
|
params : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 0
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
2019-06-06 19:35:53 +00:00
|
|
|
description : SyntaxError: Unexpected token '}'
|
2017-01-31 00:19:41 +00:00
|
|
|
objectId : <objectId>
|
|
|
|
preview : {
|
2019-06-06 19:35:53 +00:00
|
|
|
description : SyntaxError: Unexpected token '}'
|
2017-01-31 00:19:41 +00:00
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
[0] : {
|
|
|
|
name : stack
|
|
|
|
type : string
|
2019-06-06 19:35:53 +00:00
|
|
|
value : SyntaxError: Unexpected token '}'
|
2017-01-31 00:19:41 +00:00
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
name : message
|
|
|
|
type : string
|
2019-06-06 19:35:53 +00:00
|
|
|
value : Unexpected token '}'
|
2017-01-31 00:19:41 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
2019-06-06 19:35:53 +00:00
|
|
|
text : Uncaught SyntaxError: Unexpected token '}'
|
2017-01-31 00:19:41 +00:00
|
|
|
url : module4
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
}
|
|
|
|
}
|
2019-06-11 20:13:31 +00:00
|
|
|
queryObjects returns Array(N)
|