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());
// declare a dummy patchRequire function
require.globals.patchRequire = global.patchRequire = function(req) { return req;};
require.globals.CasperError = CasperError;
}
else {
// patch require
......