Commit b5581235 b5581235e0a9b5037d6d0e33e27adf5bb422f6a8 by Tim Bunce

Add 'system' to require's phantomBuiltins

1 parent 729bc7b5
......@@ -155,7 +155,7 @@ phantom.loadCasper = function loadCasper() {
* TODO: remove when PhantomJS has full module support
*/
require = (function _require(require, requireDir) {
var phantomBuiltins = ['fs', 'webpage', 'webserver'];
var phantomBuiltins = ['fs', 'webpage', 'webserver', 'system'];
var phantomRequire = phantom.__orig__require = require;
var requireCache = {};
return function _require(path) {
......