summaryrefslogtreecommitdiff
path: root/src/node.js
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2012-08-07 22:12:01 -0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-12 00:07:22 +0200
commit382f22f22959e686b10a5f42333c468e6654cb97 (patch)
tree643db0defa3796d0dd94b64cb419864b800eeb9f /src/node.js
parentd15bfc04cde2bbfb2ce534639255dfcdab3cfcb3 (diff)
downloadnode-new-382f22f22959e686b10a5f42333c468e6654cb97.tar.gz
timers: implement setImmediate
Diffstat (limited to 'src/node.js')
-rw-r--r--src/node.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node.js b/src/node.js
index 848c39d119..07db3f0963 100644
--- a/src/node.js
+++ b/src/node.js
@@ -184,6 +184,16 @@
var t = NativeModule.require('timers');
return t.clearInterval.apply(this, arguments);
};
+
+ global.setImmediate = function() {
+ var t = NativeModule.require('timers');
+ return t.setImmediate.apply(this, arguments);
+ };
+
+ global.clearImmediate = function() {
+ var t = NativeModule.require('timers');
+ return t.clearImmediate.apply(this, arguments);
+ };
};
startup.globalConsole = function() {