diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /cli/js/error_stack.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/error_stack.ts')
-rw-r--r-- | cli/js/error_stack.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/error_stack.ts b/cli/js/error_stack.ts index 4c46675ca..97ce00f3a 100644 --- a/cli/js/error_stack.ts +++ b/cli/js/error_stack.ts @@ -149,7 +149,7 @@ function callSiteToString(callSite: CallSite, internal = false): string { } if (isPromiseAll) { result += colors.bold( - colors.italic(black(`Promise.all (index ${callSite.getPromiseIndex()})`)) + colors.italic(black(`Promise.all (index ${callSite.getPromiseIndex()})`)), ); return result; } @@ -218,7 +218,7 @@ function prepareStackTrace( __callSiteEvals: CallSiteEval[]; __formattedFrames: string[]; }, - callSites: CallSite[] + callSites: CallSite[], ): string { const mappedCallSites = callSites.map( (callSite): CallSite => { @@ -232,11 +232,11 @@ function prepareStackTrace( fileName, lineNumber, columnNumber, - }) + }), ); } return callSite; - } + }, ); Object.defineProperties(error, { __callSiteEvals: { value: [], configurable: true }, |