Commit 5eadafd9 5eadafd94c4d3247acd6cae969273514542a1e1e by Nicolas Perriault

Merge pull request #126 from timbunce/master

Add 'system' to require's phantomBuiltins
2 parents 729bc7b5 b5581235
...@@ -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) {
......