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..ece338ed3e24779d322d9ad2ae39a895f9aae81d 100644 |
--- a/test/promises-aplus/lib/global.js |
+++ b/test/promises-aplus/lib/global.js |
@@ -33,15 +33,6 @@ var clearTimeout; |
var timers = {}; |
var currentId = 0; |
-function PostMicrotask(fn) { |
- var o = {}; |
- Object.observe(o, function() { |
- fn(); |
- }); |
- // Change something to enqueue a microtask. |
- o.x = 'hello'; |
-} |
- |
setInterval = function(fn, delay) { |
var i = 0; |
var id = currentId++; |
@@ -52,9 +43,9 @@ setInterval = function(fn, delay) { |
if (i++ >= delay) { |
fn(); |
} |
- PostMicrotask(loop); |
+ %EnqueueMicrotask(loop); |
} |
- PostMicrotask(loop); |
+ %EnqueueMicrotask(loop); |
timers[id] = true; |
return id; |
} |