diff --git a/src/core/Dish.mjs b/src/core/Dish.mjs index 0b1b8bf8..71d7f725 100755 --- a/src/core/Dish.mjs +++ b/src/core/Dish.mjs @@ -404,7 +404,7 @@ class Dish { }; try { - toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type](); + return toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type](); } catch (err) { throw new DishError(`Error translating from ${Dish.enumLookup(this.type)} to ArrayBuffer: ${err}`); }