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

#178 Ammendment: from_userstring inside luaZ_fill #179

Closed
wants to merge 2 commits into from

Conversation

ricksterhd123
Copy link

@ricksterhd123 ricksterhd123 commented Jun 1, 2020

Solution suggested by @daurnimator , PR'd by me :)
This should close #178

Copy link
Member

@daurnimator daurnimator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably just commit this one myself normally :P

@@ -50,6 +51,8 @@ const luaZ_fill = function(z) {
let buff = z.reader(z.L, z.data);
if (buff === null)
return EOZ;
// convert to lua_string
buff = from_userstring(buff);
lua_assert(buff instanceof Uint8Array, "Should only load binary of array of bytes");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove this assert; from_userstring does it for us

@ricksterhd123
Copy link
Author

I'll probably just commit this one myself normally :P

Yeah no problem it wasn't mine to PR :P 👍

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

Successfully merging this pull request may close these issues.

Register doesn't work
2 participants