Skip to content

Commit

Permalink
Merge pull request #377 from sstid/bug/375-mochaEsm
Browse files Browse the repository at this point in the history
Bug/375 mocha esm
  • Loading branch information
mpeyper committed Jun 4, 2020
2 parents 7c98baf + 8e400d6 commit 44e7011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/flush-microtasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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 44e7011

Please sign in to comment.