Procházet zdrojové kódy

Merge branch 'init-dish' of https://github.com/d98762625/CyberChef into d98762625-init-dish

n1474335 před 6 roky
rodič
revize
08c5dbce09
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/Dish.mjs

+ 2 - 2
src/core/Dish.mjs

@@ -21,8 +21,8 @@ class Dish {
      * @param {Dish} [dish=null] - A dish to clone
      */
     constructor(dish=null) {
-        this.value = [];
-        this.type = Dish.BYTE_ARRAY;
+        this.value = new ArrayBuffer(0);
+        this.type = Dish.ARRAY_BUFFER;
 
         if (dish &&
             dish.hasOwnProperty("value") &&