Actually need to return the translation
This commit is contained in:
parent
d51e8ec378
commit
1a9c9a5ddf
@ -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}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user