We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a447ad commit a5bf0a2Copy full SHA for a5bf0a2
test/cases/compile/error-hide-stack/errors.js
@@ -0,0 +1,3 @@
1
+module.exports = [
2
+ [/Module build failed: Message\nStack/]
3
+];
test/cases/compile/error-hide-stack/index.js
@@ -0,0 +1,5 @@
+it("should hide stack in details", function() {
+ (function f() {
+ require("./loader!");
4
+ }).should.throw();
5
+});
test/cases/compile/error-hide-stack/loader.js
@@ -0,0 +1,6 @@
+module.exports = function() {
+ var err = new Error("Message");
+ err.stack = "Stack";
+ err.hideStack = true;
+ throw err;
6
+};
0 commit comments