Open wallali opened 7 years ago
I also faced same problem. on debugging found that "buffer = rawBuffers[2];" buffer is undefined hence the split error. changed the if condition but failed on next one "var len=rawBuffers[3].length;" It mean developer expect there have to be 4 splits from statement "var rawBuffers = packed.split('^');" which is not the case because {'message': 'hello world'} get converted into message|hello+world^?$0|1] Also can't provide input as string '{\'message\': \'hello world\'}' gets parse error.
Any word on this issue?
I get an error during decode:
Also in the example I think there is error:
var encode = lzw.encode(buffer); console.log(encode);
var decode = lzw.decode(
bufferencode); console.log(decode);