From a077605ba63625349df83b213d295b69416841dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 17 May 2017 11:11:55 +0200 Subject: [PATCH] Revert setting stack to empty string --- packages/jest-validate/src/utils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/jest-validate/src/utils.js b/packages/jest-validate/src/utils.js index 662499c67d79..0ebe0cc2af0d 100644 --- a/packages/jest-validate/src/utils.js +++ b/packages/jest-validate/src/utils.js @@ -27,7 +27,6 @@ class ValidationError extends Error { super(); comment = comment ? '\n\n' + comment : '\n'; this.name = ''; - this.stack = ''; this.message = chalk.red(chalk.bold(name) + ':\n\n' + message + comment); Error.captureStackTrace(this, () => {}); }