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: --allow-natives-syntax --expose-debug-as debug | 5 // Flags: --allow-natives-syntax --expose-debug-as debug |
6 | 6 |
7 Debug = debug.Debug; | 7 Debug = debug.Debug; |
8 | 8 |
9 var eventsExpected = 16; | 9 var eventsExpected = 16; |
10 var exception = null; | 10 var exception = null; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 assertAsync(exception === null, "exception === null"); | 109 assertAsync(exception === null, "exception === null"); |
110 Debug.setListener(null); | 110 Debug.setListener(null); |
111 } else if (iteration > 10) { | 111 } else if (iteration > 10) { |
112 %AbortJS("Not all events were received!"); | 112 %AbortJS("Not all events were received!"); |
113 } else { | 113 } else { |
114 testDone(iteration + 1); | 114 testDone(iteration + 1); |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 var iteration = iteration || 0; | 118 var iteration = iteration || 0; |
119 var dummy = {}; | 119 %EnqueueMicrotask(checkResult); |
120 Object.observe(dummy, checkResult); | |
121 dummy.dummy = dummy; | |
122 } | 120 } |
123 | 121 |
124 testDone(); | 122 testDone(); |
OLD | NEW |