refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() (#4706)

This commit is contained in:
Nayeem Rahman 2020-04-11 07:08:11 +01:00 committed by GitHub
parent 2feb661b85
commit 2b362bef85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 224 additions and 427 deletions

View file

@ -0,0 +1,10 @@
function foo(): never {
throw new Error("function");
}
try {
foo();
} catch (error) {
console.log(error.stack);
throw error;
}