Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior in client browser #1

Closed
beastybeast opened this issue Jun 8, 2016 · 2 comments
Closed

Strange behavior in client browser #1

beastybeast opened this issue Jun 8, 2016 · 2 comments

Comments

@beastybeast
Copy link

Hi

When I test the code by including the file lzjb.js directly in the browser like this:

<script type='text/javascript' src='js/lib/other/lzjb.js'></script>

And with this simple code

var out = new Uint8Array(buffer.byteLength);    
var len = jslzjb.compress(buffer, out);

No matter what I try to compress it always return at line 67 with a Uint8Array array and not length

E.g. return dstart;

What can be wrong?

/Benny

@copy
Copy link
Owner

copy commented Jun 8, 2016

Thanks for the report. Fixed in 4189104.

@copy copy closed this as completed Jun 8, 2016
@beastybeast
Copy link
Author

I removed the 6 lines but now len is always bigger than buffer.byteLength.

E.g. output > input??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants