Skip to content

Commit

Permalink
Merge pull request #1 from CaledoniaProject/master
Browse files Browse the repository at this point in the history
add console to vmcontext
  • Loading branch information
Arcath authored Jan 25, 2019
2 parents 071af70 + 9cfd57d commit ff49dce
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 ff49dce

Please sign in to comment.