Commit b5581235 b5581235e0a9b5037d6d0e33e27adf5bb422f6a8 by Tim Bunce

Add 'system' to require's phantomBuiltins

1 parent 729bc7b5
...@@ -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) {
......