Merge pull request #126 from timbunce/master
Add 'system' to require's phantomBuiltins
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -155,7 +155,7 @@ phantom.loadCasper = function loadCasper() { | ... | @@ -155,7 +155,7 @@ phantom.loadCasper = function loadCasper() { |
155 | * TODO: remove when PhantomJS has full module support | 155 | * TODO: remove when PhantomJS has full module support |
156 | */ | 156 | */ |
157 | require = (function _require(require, requireDir) { | 157 | require = (function _require(require, requireDir) { |
158 | var phantomBuiltins = ['fs', 'webpage', 'webserver']; | 158 | var phantomBuiltins = ['fs', 'webpage', 'webserver', 'system']; |
159 | var phantomRequire = phantom.__orig__require = require; | 159 | var phantomRequire = phantom.__orig__require = require; |
160 | var requireCache = {}; | 160 | var requireCache = {}; |
161 | return function _require(path) { | 161 | return function _require(path) { | ... | ... |
-
Please register or sign in to post a comment