Skip to content

Commit

Permalink
Merge pull request pierrec#17 from joaosamouco/master
Browse files Browse the repository at this point in the history
fix vm.Script usage on node@10
  • Loading branch information
pierrec authored Mar 16, 2019
2 parents 2a6ccec + 6daf166 commit 481aa6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ module.exports = function (content, filename, scope, includeGlobals) {
if (typeof filename === 'object') {
includeGlobals = scope
scope = filename
filename = null
filename = ''
} else if (typeof filename === 'boolean') {
includeGlobals = filename
scope = {}
filename = null
filename = ''
}
}

Expand Down

0 comments on commit 481aa6d

Please sign in to comment.