Skip to content
Permalink
Browse files

test: fix WPT.test()'s error handling

Changing err.message after the construction of Error doesn't seem to
change err.stack.

PR-URL: #11436
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
TimothyGu committed Feb 4, 2017
1 parent 7ceea2a commit a218fa381f202d8645cbc771feed74072d4b8ce8
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/common.js
@@ -604,8 +604,7 @@ exports.WPT = {
try {
fn();
} catch (err) {
if (err instanceof Error)
err.message = `In ${desc}:\n ${err.message}`;
console.error(`In ${desc}:`);
throw err;
}
},

0 comments on commit a218fa3

Please sign in to comment.
You can’t perform that action at this time.