Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: test/inspector/runtime/internal-properties-expected.txt

Issue 2678143002: [inspector] introduced debug::GeneratorObject (Closed)
Patch Set: addressed comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/inspector/runtime/internal-properties.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
{
« no previous file with comments | « test/inspector/runtime/internal-properties.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698