mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
change empty Dish initialisation to use ArrayBuffer
This commit is contained in:
parent
786e50c3c3
commit
cdc15c0f20
1 changed files with 2 additions and 2 deletions
|
@ -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") &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue