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

Unified Diff: test/promises-aplus/lib/global.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: 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 side-by-side diff with in-line comments
Download patch
Index: test/promises-aplus/lib/global.js
diff --git a/test/promises-aplus/lib/global.js b/test/promises-aplus/lib/global.js
index 1466d2063b5be2351b49a021578cd1091992fbee..e088fe38f31a9dcac0fadbbaaeb71ae634e5130b 100644
--- a/test/promises-aplus/lib/global.js
+++ b/test/promises-aplus/lib/global.js
@@ -34,12 +34,7 @@ var timers = {};
var currentId = 0;
function PostMicrotask(fn) {
- var o = {};
- Object.observe(o, function() {
- fn();
- });
- // Change something to enqueue a microtask.
- o.x = 'hello';
+ Promise.resolve().then(fn);
}
setInterval = function(fn, delay) {

Powered by Google App Engine
This is Rietveld 408576698