1 | 1 | Tests that Debugger.getGeneratorObjectDetails command returns correct result.
|
---|
2 | 2 |
|
---|
3 | 3 |
|
---|
4 | 4 | Running: testIterNotStarted
|
---|
5 | | iterNotStarted: type = object, subtype = generator
|
---|
6 | | [[GeneratorStatus]] = suspended
|
---|
7 | | [[GeneratorFunction]] = function* gen()
|
---|
8 | | {
|
---|
9 | | yield 1;
|
---|
10 | | yield 2;
|
---|
11 | | yield 3;
|
---|
12 | | }
|
---|
13 | | [[GeneratorReceiver]] = Window
|
---|
14 | | lineNumber = 16
|
---|
15 | | columnNumber = 19
|
---|
16 | | script is valid: yes
|
---|
17 | | [[Scopes]] = Scopes[2]
|
---|
| 5 | Exception while running: function didEvaluate(remote) {
|
---|
| 6 | TestRunner.addResult(
|
---|
| 7 | pageExpression + ': type = ' + remote.type +
|
---|
| 8 | ', subtype = ' + remote.subtype);
|
---|
| 9 | remote.getOwnPropertiesPromise().then(dumpInternalProperties);
|
---|
| 10 | }
|
---|
| 11 | TypeError: Cannot read property 'type' of undefined
|
---|
| 12 | at didEvaluate (http://127.0.0.1:8000/devtools/sources/debugger-ui/function-generator-details.js:53:49)
|
---|
| 13 | at result (file:///b/s/w/ir/out/Release/resources/inspector/integration_test_runner.js:5982:42)
|
---|
| 14 | at Object.TestRunner.evaluateInPage (file:///b/s/w/ir/out/Release/resources/inspector/integration_test_runner.js:5994:1795)
|
---|
18 | 15 |
|
---|
19 | | Running: testIterSuspended
|
---|
20 | | iterSuspended: type = object, subtype = generator
|
---|
21 | | [[GeneratorStatus]] = suspended
|
---|
22 | | [[GeneratorFunction]] = function* gen()
|
---|
23 | | {
|
---|
24 | | yield 1;
|
---|
25 | | yield 2;
|
---|
26 | | yield 3;
|
---|
27 | | }
|
---|
28 | | [[GeneratorReceiver]] = Window
|
---|
29 | | lineNumber = 18
|
---|
30 | | columnNumber = 10
|
---|
31 | | script is valid: yes
|
---|
32 | | [[Scopes]] = Scopes[2]
|
---|
33 | |
|
---|
34 | | Running: testIterClosed
|
---|
35 | | iterClosed: type = object, subtype = generator
|
---|
36 | | [[GeneratorStatus]] = closed
|
---|
37 | | [[GeneratorFunction]] = function* gen()
|
---|
38 | | {
|
---|
39 | | yield 1;
|
---|
40 | | yield 2;
|
---|
41 | | yield 3;
|
---|
42 | | }
|
---|
43 | | [[GeneratorReceiver]] = Window
|
---|
44 | | lineNumber = 16
|
---|
45 | | columnNumber = 19
|
---|
46 | | script is valid: yes
|
---|
47 | |
|
---|
48 | | Running: testIterObjGenerator
|
---|
49 | | iterObjGenerator: type = object, subtype = generator
|
---|
50 | | [[GeneratorStatus]] = suspended
|
---|
51 | | [[GeneratorFunction]] = function* ()
|
---|
52 | | {
|
---|
53 | | yield 11;
|
---|
54 | | yield 12;
|
---|
55 | | yield 13;
|
---|
56 | | }
|
---|
57 | | [[GeneratorReceiver]] = Object
|
---|
58 | | lineNumber = 27
|
---|
59 | | columnNumber = 14
|
---|
60 | | script is valid: yes
|
---|
61 | | [[Scopes]] = Scopes[2]
|
---|
62 | |
|
---|
63 | | Running: testAnonymousGenIter
|
---|
64 | | anonymousGenIter: type = object, subtype = generator
|
---|
65 | | [[GeneratorStatus]] = suspended
|
---|
66 | | [[GeneratorFunction]] = function* () {
|
---|
67 | | yield 21;
|
---|
68 | | yield 22;
|
---|
69 | | yield 23;
|
---|
70 | | }
|
---|
71 | | [[GeneratorReceiver]] = Window
|
---|
72 | | lineNumber = 41
|
---|
73 | | columnNumber = 10
|
---|
74 | | script is valid: yes
|
---|
75 | | [[Scopes]] = Scopes[2]
|
---|
76 | |
|
---|