[Pkg-javascript-commits] [node-acorn-jsx] 329/484: Emit full stack trace for unknown exceptions.
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit 143066184cd2781b2f6769ccf6b56da46ae6d487
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Mon Oct 27 00:39:45 2014 +0200
Emit full stack trace for unknown exceptions.
---
test/driver.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/driver.js b/test/driver.js
index 5444cc5..ea5dc42 100644
--- a/test/driver.js
+++ b/test/driver.js
@@ -56,7 +56,7 @@
else callback("fail", test.code,
"Expected error message: " + test.error + "\nGot error message: " + e.message);
} else {
- callback("error", test.code, e.message || e.toString());
+ callback("error", test.code, !(e instanceof SyntaxError) && e.stack || e.message || e.toString());
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list