diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-10-15 13:56:54 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-10-15 13:56:54 -0300 |
commit | 84a98b3b71d5524baf7b5e9038909ad501203115 (patch) | |
tree | e9702cbdefd19ac7259e4b9d918709fcd62fcfd0 /src/content-function.js | |
parent | 74bd087bb01c759b1bf38c9bc445e42b43684276 (diff) |
toReversed, toSorted miscellany
Diffstat (limited to 'src/content-function.js')
-rw-r--r-- | src/content-function.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content-function.js b/src/content-function.js index f3aa7c42..1144a7b9 100644 --- a/src/content-function.js +++ b/src/content-function.js @@ -286,7 +286,7 @@ export const decorateErrorWithRelationStack = (fn, traceStack) => decorateError(fn, caughtError => { let cause = caughtError; - for (const {name, args, traceError} of traceStack.slice().reverse()) { + for (const {name, args, traceError} of traceStack.toReversed()) { const nameText = colors.green(`"${name}"`); const namePart = `Error in relation(${nameText})`; |