From 8d15a90f10ff06c33f9d9305406f5e2e139b890d Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 15 Feb 2016 16:21:52 -0800 Subject: [PATCH] fix typo bytesRead -> bytes --- decode.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/decode.js b/decode.js index a6d0135..fa6480f 100644 --- a/decode.js +++ b/decode.js @@ -10,10 +10,10 @@ function read(buf, offset) { , counter = offset , b , l = buf.length - + do { if(counter >= l) { - read.bytesRead = 0 + read.bytes = 0 return undefined } b = buf[counter++] @@ -22,8 +22,8 @@ function read(buf, offset) { : (b & REST) * Math.pow(2, shift) shift += 7 } while (b >= MSB) - + read.bytes = counter - offset - + return res }