From 227a95296b4a714bece57a271f798a1813da9a13 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 21 Mar 2014 18:00:13 -0300 Subject: [PATCH] remove stracktrace for firefox error reporting --- util/error.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/util/error.js b/util/error.js index 428fc89..4e5097f 100644 --- a/util/error.js +++ b/util/error.js @@ -9,7 +9,8 @@ function MissingSourceError(msg, missingTxHash) { // TODO: Since this happens in normal operation, perhaps we should // avoid generating a whole stack trace. Error.call(this); - Error.captureStackTrace(this, arguments.callee); +// This is not compatible with firefox. +// Error.captureStackTrace(this, arguments.callee); this.message = msg; this.missingTxHash = missingTxHash; this.name = 'MissingSourceError'; @@ -19,6 +20,7 @@ MissingSourceError.prototype.__proto__ = Error.prototype; exports.MissingSourceError = MissingSourceError; + /** * Used in several places to indicate invalid data. * @@ -29,7 +31,9 @@ function VerificationError(msg, missingTxHash) { // TODO: Since this happens in normal operation, perhaps we should // avoid generating a whole stack trace. Error.call(this); - Error.captureStackTrace(this, arguments.callee); + +// This is not compatible with firefox. +// Error.captureStackTrace(this, arguments.callee); this.message = msg; this.missingTxHash = missingTxHash; this.name = 'VerificationError';