« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content-function.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content-function.js')
-rw-r--r--src/content-function.js2
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})`;