From 99249e04f9b60baffaf4bb4086db8788af5a6cc8 Mon Sep 17 00:00:00 2001 From: mog422 Date: Mon, 5 Dec 2016 16:16:50 +0900 Subject: [PATCH] Fix exception in separated packages --- lib/composer.js | 6 +++--- test/composer-test.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/lib/composer.js b/lib/composer.js index 28c116b..0b852d4 100644 --- a/lib/composer.js +++ b/lib/composer.js @@ -107,8 +107,8 @@ pro.reset = function() { // read length part of package pro._readLength = function(data, offset, end) { var b, i, length = this.length, finish; - for(i=0; i