From 8c7147d948a7b06fab6e2175acc3f483cdd5bf5a Mon Sep 17 00:00:00 2001 From: Crispin Wellington Date: Sat, 22 Jul 2017 22:32:12 +0800 Subject: [PATCH] fix google closures "ERROR: JSC_PARSE_ERROR. Parse error. identifier is a reserved word" --- lib/binarypack.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/binarypack.js b/lib/binarypack.js index 19629c6..a55db8c 100644 --- a/lib/binarypack.js +++ b/lib/binarypack.js @@ -108,9 +108,7 @@ Unpacker.prototype.unpack = function(){ } Unpacker.prototype.unpack_uint8 = function(){ - var byte = this.dataView[this.index] & 0xff; - this.index++; - return byte; + return this.dataView[this.index++] & 0xff; }; Unpacker.prototype.unpack_uint16 = function(){