Skip to content

Commit

Permalink
fix: restore this when requiring timers (#644)
Browse files Browse the repository at this point in the history
closes #614
  • Loading branch information
just-boris committed Apr 20, 2020
1 parent 91f0c75 commit 59a2de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flush-microtasks.js
Expand Up @@ -15,7 +15,7 @@ try {
const nodeRequire = module && module[requireString]
// assuming we're in node, let's try to get node's
// version of setImmediate, bypassing fake timers if any.
enqueueTask = nodeRequire('timers').setImmediate
enqueueTask = nodeRequire.call(module, 'timers').setImmediate
} catch (_err) {
// we're in a browser
// we can't use regular timers because they may still be faked
Expand Down

0 comments on commit 59a2de1

Please sign in to comment.