mirror of
https://github.com/gchq/CyberChef.git
synced 2024-09-28 22:41:30 +02:00
change empty Dish initialisation to use ArrayBuffer
This commit is contained in:
parent
786e50c3c3
commit
cdc15c0f20
@ -21,8 +21,8 @@ class Dish {
|
|||||||
* @param {Dish} [dish=null] - A dish to clone
|
* @param {Dish} [dish=null] - A dish to clone
|
||||||
*/
|
*/
|
||||||
constructor(dish=null) {
|
constructor(dish=null) {
|
||||||
this.value = [];
|
this.value = new ArrayBuffer(0);
|
||||||
this.type = Dish.BYTE_ARRAY;
|
this.type = Dish.ARRAY_BUFFER;
|
||||||
|
|
||||||
if (dish &&
|
if (dish &&
|
||||||
dish.hasOwnProperty("value") &&
|
dish.hasOwnProperty("value") &&
|
||||||
|
Loading…
Reference in New Issue
Block a user