浏览代码

Actually need to return the translation

d98762625 6 年之前
父节点
当前提交
1a9c9a5ddf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Dish.mjs

+ 1 - 1
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}`);
         }