The swiss army knife of lossless video/audio editing
fix bug with Arrays
Mikael Finstad250430a75287
diff --git a/src/renderer/src/worker/evalWorker.ts b/src/renderer/src/worker/evalWorker.tsindex 5cf2cbb2..f9320275 100644--- a/src/renderer/src/worker/evalWorker.ts+++ b/src/renderer/src/worker/evalWorker.ts@@ -94,16 +94,16 @@ Object.defineProperty(Array.prototype, 'join', {// eslint-disable-next-line wrap-iife, func-namesvalue: function (old) {// eslint-disable-next-line func-names- return function (arg: unknown[]) {+ return function (arg?: unknown[]) {// @ts-expect-error dunno how to fixif (this.length > 500 || (arg && arg.length > 500)) {// eslint-disable-next-line no-throw-literalthrow 'Exception: too many items';}- // eslint-disable-next-line unicorn/prefer-reflect-apply, prefer-rest-params// @ts-expect-error dunno how to fix- return old.apply(this, arg);+ // eslint-disable-next-line unicorn/prefer-reflect-apply, prefer-rest-params+ return old.apply(this, arguments);};}(Array.prototype.join),});