From c4f9ae706ab261cce2ab9e4ad098536bcf2d4bed Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 28 Apr 2019 14:18:09 -0400 Subject: [PATCH] Fix alternate code path introduced in 295f08da9790 (oops) --- src/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/utils.js b/src/js/utils.js index e5dc7bf65..dd0b595f1 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -611,7 +611,7 @@ decode(instr, arrbuf) { if ( instr.charCodeAt(0) === 0x5B /* '[' */ ) { - const inbuf = Array.isArray(instr); + const inbuf = JSON.parse(instr); if ( arrbuf instanceof ArrayBuffer === false ) { return new Uint32Array(inbuf); }