Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add missing globals to util.loadFile

  • Loading branch information...
commit 929ed4fcb0e3a2f456592436e1e63dc8ac74ac94 1 parent 14df9ac
@vojtajina authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/util.js
View
5 lib/util.js
@@ -83,6 +83,11 @@ var loadFile = function(filePath, mocks, globals) {
},
__dirname: path.dirname(filePath),
__filename: filePath,
+ Buffer: Buffer,
+ setTimeout: setTimeout,
+ setInterval: setInterval,
+ clearTimeout: clearTimeout,
+ clearInterval: clearInterval,
process: process,
console: console,
exports: exports,
Please sign in to comment.
Something went wrong with that request. Please try again.