Skip to content

Commit 59a2de1

Browse files
authored
fix: restore this when requiring timers (#644)
closes #614
1 parent 91f0c75 commit 59a2de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/flush-microtasks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
const nodeRequire = module && module[requireString]
1616
// assuming we're in node, let's try to get node's
1717
// version of setImmediate, bypassing fake timers if any.
18-
enqueueTask = nodeRequire('timers').setImmediate
18+
enqueueTask = nodeRequire.call(module, 'timers').setImmediate
1919
} catch (_err) {
2020
// we're in a browser
2121
// we can't use regular timers because they may still be faked

0 commit comments

Comments
 (0)