From 1a9c9a5ddf2f7e245c7894a49bf04a71d9b60ede Mon Sep 17 00:00:00 2001 From: d98762625 Date: Fri, 24 May 2019 16:46:07 +0100 Subject: [PATCH] Actually need to return the translation --- src/core/Dish.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); }