diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-12-29 16:39:20 -0500 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-12-29 17:19:07 -0500 |
commit | 90656cfd3b6750397a1f5e9539323391cf0e50c6 (patch) | |
tree | 98034c45b789f46bdec3f04e3cdec8b9fb4274c3 /lib/internal/setImmediate.js | |
parent | 1448f24a5e7d5c4b9ff56ef573d35291511c2a71 (diff) | |
download | async-90656cfd3b6750397a1f5e9539323391cf0e50c6.tar.gz |
Set up async bundles
Diffstat (limited to 'lib/internal/setImmediate.js')
-rw-r--r-- | lib/internal/setImmediate.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/internal/setImmediate.js b/lib/internal/setImmediate.js index d44c66e..c02ad71 100644 --- a/lib/internal/setImmediate.js +++ b/lib/internal/setImmediate.js @@ -1,3 +1,5 @@ +'use strict'; + var _setImmediate = typeof setImmediate === 'function' && setImmediate; var _delay; @@ -5,7 +7,7 @@ if (_setImmediate) { _delay = function(fn) { // not a direct alias for IE10 compatibility _setImmediate(fn); - } + }; } else if (typeof process === 'object' && typeof process.nextTick === 'function') { _delay = process.nextTick; } else { |