Commit 6f677800 6f677800fe4ba08a2b765e99fca4076293db5ce4 by Laurent Jouanneau

Refs #482: CasperError should be declared as a global function

1 parent 0b240e99
...@@ -306,6 +306,7 @@ CasperError.prototype = Object.getPrototypeOf(new Error()); ...@@ -306,6 +306,7 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
306 306
307 // declare a dummy patchRequire function 307 // declare a dummy patchRequire function
308 require.globals.patchRequire = global.patchRequire = function(req) { return req;}; 308 require.globals.patchRequire = global.patchRequire = function(req) { return req;};
309 require.globals.CasperError = CasperError;
309 } 310 }
310 else { 311 else {
311 // patch require 312 // patch require
......