2017-02-07 07:46:21 +00:00
|
|
|
Checks internal properties in Runtime.getProperties output
|
|
|
|
|
|
|
|
Running test: generatorFunction
|
|
|
|
expression: (function* foo() { yield 1 })
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[FunctionLocation]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : Object
|
2017-02-07 07:46:21 +00:00
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 14
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[1] : {
|
2017-02-07 07:46:21 +00:00
|
|
|
name : [[IsGenerator]]
|
|
|
|
value : {
|
|
|
|
type : boolean
|
|
|
|
value : true
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 07:46:21 +00:00
|
|
|
name : [[Scopes]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Scopes[1]
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : internal#scopeList
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: regularFunction
|
|
|
|
expression: (function foo() {})
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[FunctionLocation]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : Object
|
2017-02-07 07:46:21 +00:00
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 13
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[1] : {
|
2017-02-07 07:46:21 +00:00
|
|
|
name : [[Scopes]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Scopes[1]
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : internal#scopeList
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: boxedObjects
|
|
|
|
expression: new Number(239)
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 239
|
2017-02-07 07:46:21 +00:00
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: new Boolean(false)
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
value : {
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: new String('abc')
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : abc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: Object(Symbol(42))
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
value : {
|
|
|
|
description : Symbol(42)
|
|
|
|
objectId : <objectId>
|
|
|
|
type : symbol
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2018-03-09 18:23:37 +00:00
|
|
|
expression: Object(BigInt(2))
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
value : {
|
|
|
|
description : 2n
|
|
|
|
type : bigint
|
|
|
|
unserializableValue : 2n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2017-02-07 07:46:21 +00:00
|
|
|
|
|
|
|
Running test: promise
|
|
|
|
expression: Promise.resolve(42)
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PromiseStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : resolved
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
name : [[PromiseValue]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 42
|
2017-02-07 07:46:21 +00:00
|
|
|
type : number
|
|
|
|
value : 42
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: new Promise(() => undefined)
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[PromiseStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : pending
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
name : [[PromiseValue]]
|
|
|
|
value : {
|
|
|
|
type : undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: generatorObject
|
2017-02-07 23:09:02 +00:00
|
|
|
expression: gen1
|
2017-02-07 07:46:21 +00:00
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
2018-10-31 16:16:39 +00:00
|
|
|
name : [[GeneratorLocation]]
|
|
|
|
value : {
|
|
|
|
description : Object
|
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 13
|
|
|
|
lineNumber : 8
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
2017-02-07 07:46:21 +00:00
|
|
|
name : [[GeneratorStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : suspended
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 07:46:21 +00:00
|
|
|
name : [[GeneratorFunction]]
|
|
|
|
value : {
|
|
|
|
className : GeneratorFunction
|
2017-02-07 23:09:02 +00:00
|
|
|
description : function* foo() { yield 1; }
|
2017-02-07 07:46:21 +00:00
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[3] : {
|
2017-02-07 07:46:21 +00:00
|
|
|
name : [[GeneratorReceiver]]
|
|
|
|
value : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[4] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[Scopes]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Scopes[2]
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : internal#scopeList
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: gen1.next();gen1
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
2018-10-31 16:16:39 +00:00
|
|
|
name : [[GeneratorLocation]]
|
|
|
|
value : {
|
|
|
|
description : Object
|
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 2
|
|
|
|
lineNumber : 9
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : suspended
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorFunction]]
|
|
|
|
value : {
|
|
|
|
className : GeneratorFunction
|
|
|
|
description : function* foo() { yield 1; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[3] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorReceiver]]
|
|
|
|
value : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[4] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[Scopes]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Scopes[2]
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : internal#scopeList
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: gen1.next();gen1
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
2018-10-31 16:16:39 +00:00
|
|
|
name : [[GeneratorLocation]]
|
|
|
|
value : {
|
|
|
|
description : Object
|
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 13
|
|
|
|
lineNumber : 8
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : closed
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorFunction]]
|
|
|
|
value : {
|
|
|
|
className : GeneratorFunction
|
|
|
|
description : function* foo() { yield 1; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[3] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorReceiver]]
|
|
|
|
value : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: generatorObjectDebuggerDisabled
|
|
|
|
expression: gen2
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorLocation]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : Object
|
2017-02-07 23:09:02 +00:00
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 13
|
|
|
|
lineNumber : 8
|
2017-02-07 07:46:21 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[1] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : suspended
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorFunction]]
|
|
|
|
value : {
|
|
|
|
className : GeneratorFunction
|
|
|
|
description : function* foo() { yield 1; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[3] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorReceiver]]
|
|
|
|
value : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[4] : {
|
2017-09-12 20:31:00 +00:00
|
|
|
name : [[Scopes]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Scopes[2]
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : internal#scopeList
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2017-02-07 23:09:02 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: gen2.next();gen2
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
2018-10-31 16:16:39 +00:00
|
|
|
name : [[GeneratorLocation]]
|
|
|
|
value : {
|
|
|
|
description : Object
|
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 2
|
|
|
|
lineNumber : 9
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : suspended
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorFunction]]
|
|
|
|
value : {
|
|
|
|
className : GeneratorFunction
|
|
|
|
description : function* foo() { yield 1; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[3] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorReceiver]]
|
|
|
|
value : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[4] : {
|
2017-09-12 20:31:00 +00:00
|
|
|
name : [[Scopes]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Scopes[2]
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : internal#scopeList
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
2017-02-07 23:09:02 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: gen2.next();gen2
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
2018-10-31 16:16:39 +00:00
|
|
|
name : [[GeneratorLocation]]
|
|
|
|
value : {
|
|
|
|
description : Object
|
|
|
|
subtype : internal#location
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
columnNumber : 13
|
|
|
|
lineNumber : 8
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorStatus]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : closed
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[2] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorFunction]]
|
|
|
|
value : {
|
|
|
|
className : GeneratorFunction
|
|
|
|
description : function* foo() { yield 1; }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
2018-10-31 16:16:39 +00:00
|
|
|
[3] : {
|
2017-02-07 23:09:02 +00:00
|
|
|
name : [[GeneratorReceiver]]
|
|
|
|
value : {
|
|
|
|
className : global
|
|
|
|
description : global
|
|
|
|
objectId : <objectId>
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-07 07:46:21 +00:00
|
|
|
Running test: iteratorObject
|
|
|
|
expression: (new Map([[1,2]])).entries()
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[IteratorHasMore]]
|
|
|
|
value : {
|
|
|
|
type : boolean
|
|
|
|
value : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
name : [[IteratorIndex]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 0
|
2017-02-07 07:46:21 +00:00
|
|
|
type : number
|
|
|
|
value : 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[2] : {
|
|
|
|
name : [[IteratorKind]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : entries
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[3] : {
|
|
|
|
name : [[Entries]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Array(1)
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : array
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
expression: (new Set([[1,2]])).entries()
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
internalProperties : [
|
|
|
|
[0] : {
|
|
|
|
name : [[IteratorHasMore]]
|
|
|
|
value : {
|
|
|
|
type : boolean
|
|
|
|
value : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
name : [[IteratorIndex]]
|
|
|
|
value : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 0
|
2017-02-07 07:46:21 +00:00
|
|
|
type : number
|
|
|
|
value : 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[2] : {
|
|
|
|
name : [[IteratorKind]]
|
|
|
|
value : {
|
|
|
|
type : string
|
|
|
|
value : entries
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[3] : {
|
|
|
|
name : [[Entries]]
|
|
|
|
value : {
|
|
|
|
className : Array
|
|
|
|
description : Array(1)
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : array
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|