| Index: test/inspector/runtime/internal-properties-expected.txt
|
| diff --git a/test/inspector/runtime/internal-properties-expected.txt b/test/inspector/runtime/internal-properties-expected.txt
|
| index f5e7a8d0d8704b8c7c8654217283fec7d16e3ec7..deee4cfdbde88708b112efdcfcbf6b89529a86df 100644
|
| --- a/test/inspector/runtime/internal-properties-expected.txt
|
| +++ b/test/inspector/runtime/internal-properties-expected.txt
|
| @@ -184,7 +184,7 @@ expression: new Promise(() => undefined)
|
| }
|
|
|
| Running test: generatorObject
|
| -expression: (function* foo() { yield 1 })()
|
| +expression: gen1
|
| {
|
| id : <messageId>
|
| result : {
|
| @@ -200,7 +200,7 @@ expression: (function* foo() { yield 1 })()
|
| name : [[GeneratorFunction]]
|
| value : {
|
| className : GeneratorFunction
|
| - description : function* foo() { yield 1 }
|
| + description : function* foo() { yield 1; }
|
| objectId : <objectId>
|
| type : function
|
| }
|
| @@ -221,8 +221,120 @@ expression: (function* foo() { yield 1 })()
|
| subtype : internal#location
|
| type : object
|
| value : {
|
| - columnNumber : 14
|
| - lineNumber : 0
|
| + columnNumber : 13
|
| + lineNumber : 8
|
| + scriptId : <scriptId>
|
| + }
|
| + }
|
| + }
|
| + [4] : {
|
| + name : [[Scopes]]
|
| + value : {
|
| + className : Array
|
| + description : Scopes[2]
|
| + objectId : <objectId>
|
| + subtype : internal#scopeList
|
| + type : object
|
| + }
|
| + }
|
| + ]
|
| + }
|
| +}
|
| +expression: gen1.next();gen1
|
| +{
|
| + id : <messageId>
|
| + result : {
|
| + internalProperties : [
|
| + [0] : {
|
| + name : [[GeneratorStatus]]
|
| + value : {
|
| + type : string
|
| + value : suspended
|
| + }
|
| + }
|
| + [1] : {
|
| + name : [[GeneratorFunction]]
|
| + value : {
|
| + className : GeneratorFunction
|
| + description : function* foo() { yield 1; }
|
| + objectId : <objectId>
|
| + type : function
|
| + }
|
| + }
|
| + [2] : {
|
| + name : [[GeneratorReceiver]]
|
| + value : {
|
| + className : global
|
| + description : global
|
| + objectId : <objectId>
|
| + type : object
|
| + }
|
| + }
|
| + [3] : {
|
| + name : [[GeneratorLocation]]
|
| + value : {
|
| + description : Object
|
| + subtype : internal#location
|
| + type : object
|
| + value : {
|
| + columnNumber : 2
|
| + lineNumber : 9
|
| + scriptId : <scriptId>
|
| + }
|
| + }
|
| + }
|
| + [4] : {
|
| + name : [[Scopes]]
|
| + value : {
|
| + className : Array
|
| + description : Scopes[2]
|
| + objectId : <objectId>
|
| + subtype : internal#scopeList
|
| + type : object
|
| + }
|
| + }
|
| + ]
|
| + }
|
| +}
|
| +expression: gen1.next();gen1
|
| +{
|
| + id : <messageId>
|
| + result : {
|
| + internalProperties : [
|
| + [0] : {
|
| + name : [[GeneratorStatus]]
|
| + value : {
|
| + type : string
|
| + value : closed
|
| + }
|
| + }
|
| + [1] : {
|
| + name : [[GeneratorFunction]]
|
| + value : {
|
| + className : GeneratorFunction
|
| + description : function* foo() { yield 1; }
|
| + objectId : <objectId>
|
| + type : function
|
| + }
|
| + }
|
| + [2] : {
|
| + name : [[GeneratorReceiver]]
|
| + value : {
|
| + className : global
|
| + description : global
|
| + objectId : <objectId>
|
| + type : object
|
| + }
|
| + }
|
| + [3] : {
|
| + name : [[GeneratorLocation]]
|
| + value : {
|
| + description : Object
|
| + subtype : internal#location
|
| + type : object
|
| + value : {
|
| + columnNumber : 13
|
| + lineNumber : 8
|
| scriptId : <scriptId>
|
| }
|
| }
|
| @@ -241,6 +353,146 @@ expression: (function* foo() { yield 1 })()
|
| }
|
| }
|
|
|
| +Running test: generatorObjectDebuggerDisabled
|
| +expression: gen2
|
| +{
|
| + id : <messageId>
|
| + result : {
|
| + internalProperties : [
|
| + [0] : {
|
| + name : [[GeneratorStatus]]
|
| + value : {
|
| + type : string
|
| + value : suspended
|
| + }
|
| + }
|
| + [1] : {
|
| + name : [[GeneratorFunction]]
|
| + value : {
|
| + className : GeneratorFunction
|
| + description : function* foo() { yield 1; }
|
| + objectId : <objectId>
|
| + type : function
|
| + }
|
| + }
|
| + [2] : {
|
| + name : [[GeneratorReceiver]]
|
| + value : {
|
| + className : global
|
| + description : global
|
| + objectId : <objectId>
|
| + type : object
|
| + }
|
| + }
|
| + [3] : {
|
| + name : [[GeneratorLocation]]
|
| + value : {
|
| + description : Object
|
| + subtype : internal#location
|
| + type : object
|
| + value : {
|
| + columnNumber : 13
|
| + lineNumber : 8
|
| + scriptId : <scriptId>
|
| + }
|
| + }
|
| + }
|
| + ]
|
| + }
|
| +}
|
| +expression: gen2.next();gen2
|
| +{
|
| + id : <messageId>
|
| + result : {
|
| + internalProperties : [
|
| + [0] : {
|
| + name : [[GeneratorStatus]]
|
| + value : {
|
| + type : string
|
| + value : suspended
|
| + }
|
| + }
|
| + [1] : {
|
| + name : [[GeneratorFunction]]
|
| + value : {
|
| + className : GeneratorFunction
|
| + description : function* foo() { yield 1; }
|
| + objectId : <objectId>
|
| + type : function
|
| + }
|
| + }
|
| + [2] : {
|
| + name : [[GeneratorReceiver]]
|
| + value : {
|
| + className : global
|
| + description : global
|
| + objectId : <objectId>
|
| + type : object
|
| + }
|
| + }
|
| + [3] : {
|
| + name : [[GeneratorLocation]]
|
| + value : {
|
| + description : Object
|
| + subtype : internal#location
|
| + type : object
|
| + value : {
|
| + columnNumber : 2
|
| + lineNumber : 9
|
| + scriptId : <scriptId>
|
| + }
|
| + }
|
| + }
|
| + ]
|
| + }
|
| +}
|
| +expression: gen2.next();gen2
|
| +{
|
| + id : <messageId>
|
| + result : {
|
| + internalProperties : [
|
| + [0] : {
|
| + name : [[GeneratorStatus]]
|
| + value : {
|
| + type : string
|
| + value : closed
|
| + }
|
| + }
|
| + [1] : {
|
| + name : [[GeneratorFunction]]
|
| + value : {
|
| + className : GeneratorFunction
|
| + description : function* foo() { yield 1; }
|
| + objectId : <objectId>
|
| + type : function
|
| + }
|
| + }
|
| + [2] : {
|
| + name : [[GeneratorReceiver]]
|
| + value : {
|
| + className : global
|
| + description : global
|
| + objectId : <objectId>
|
| + type : object
|
| + }
|
| + }
|
| + [3] : {
|
| + name : [[GeneratorLocation]]
|
| + value : {
|
| + description : Object
|
| + subtype : internal#location
|
| + type : object
|
| + value : {
|
| + columnNumber : 13
|
| + lineNumber : 8
|
| + scriptId : <scriptId>
|
| + }
|
| + }
|
| + }
|
| + ]
|
| + }
|
| +}
|
| +
|
| Running test: iteratorObject
|
| expression: (new Map([[1,2]])).entries()
|
| {
|
|
|