OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --expose-debug-as debug | 5 // Flags: --expose-debug-as debug --ignition-generators |
6 // Test the mirror object for functions. | 6 // Test the mirror object for functions. |
7 | 7 |
8 function *generator(f) { | 8 function *generator(f) { |
9 "use strict"; | 9 "use strict"; |
10 yield; | 10 yield; |
11 f(); | 11 f(); |
12 yield; | 12 yield; |
13 } | 13 } |
14 | 14 |
15 function MirrorRefCache(json_refs) { | 15 function MirrorRefCache(json_refs) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 TestGeneratorMirror(iter2, 'suspended', 7, 19, obj); | 103 TestGeneratorMirror(iter2, 'suspended', 7, 19, obj); |
104 | 104 |
105 iter2.next(); | 105 iter2.next(); |
106 TestGeneratorMirror(iter2, 'suspended', 9, 2, obj); | 106 TestGeneratorMirror(iter2, 'suspended', 9, 2, obj); |
107 | 107 |
108 iter2.next(); | 108 iter2.next(); |
109 TestGeneratorMirror(iter2, 'suspended', 11, 2, obj); | 109 TestGeneratorMirror(iter2, 'suspended', 11, 2, obj); |
110 | 110 |
111 iter2.next(); | 111 iter2.next(); |
112 TestGeneratorMirror(iter2, 'closed', 0, 0, obj); | 112 TestGeneratorMirror(iter2, 'closed', 0, 0, obj); |
OLD | NEW |