apply prettier formatting
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
"tabWidth": 2,
|
||||
"printWidth": 120,
|
||||
"singleQuote": false,
|
||||
"trailingComma": "es5"
|
||||
"trailingComma": "none"
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export class ErrorMapper {
|
||||
* @returns {string} The source-mapped stack trace
|
||||
*/
|
||||
public static sourceMappedStackTrace(error: Error | string): string {
|
||||
const stack: string = error instanceof Error ? error.stack as string : error;
|
||||
const stack: string = error instanceof Error ? (error.stack as string) : error;
|
||||
if (this.cache.hasOwnProperty(stack)) {
|
||||
return this.cache[stack];
|
||||
}
|
||||
@@ -35,7 +35,7 @@ export class ErrorMapper {
|
||||
let match: RegExpExecArray | null;
|
||||
let outStack = error.toString();
|
||||
|
||||
while (match = re.exec(stack)) {
|
||||
while ((match = re.exec(stack))) {
|
||||
if (match[2] === "main") {
|
||||
const pos = this.consumer.originalPositionFor({
|
||||
column: parseInt(match[4], 10),
|
||||
|
||||
Reference in New Issue
Block a user