mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 15:44:36 +00:00
Use dprint for internal formatting (#6682)
This commit is contained in:
parent
9eca71caa1
commit
cde4dbb351
378 changed files with 3116 additions and 3121 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue