This commit is contained in:
synth-ruiner
2017-12-22 17:22:08 +00:00
commit 495f1d958e
3484 changed files with 393731 additions and 0 deletions

15
node_modules/har-validator/lib/browser/error.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
export default function HARError(errors) {
let message = 'validation failed';
this.name = 'HARError';
this.message = message;
this.errors = errors;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor);
} else {
this.stack = new Error(message).stack;
}
}
HARError.prototype = Error.prototype;