Refs #482: CasperError should be declared as a global function
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment