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

Side by Side Diff: test/mjsunit/es6/debug-promises/events.js

Issue 1246933002: Remove unnecessary coupling between Promise tests and Object.observe (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use %EnqueueMicrotask Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/reject-caught-all.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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();
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/reject-caught-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698