Skip to content

Commit

Permalink
add console to vmcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lewis committed Jan 25, 2019
1 parent 071af70 commit 9cfd57d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pac-file-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ module.exports = {
// Taken from the Mozilla PAC file parser (https://dxr.mozilla.org/mozilla/source/netwerk/base/src/nsProxyAutoConfig.js)
var myIp = module.exports.ip
var context = vm.createContext({
console: console,

myIpAddress: function(){
return myIp
},
Expand Down

0 comments on commit 9cfd57d

Please sign in to comment.