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

Fix bug with .fill bytes > 127 from other encoding #149

Merged
merged 3 commits into from Nov 7, 2016

Conversation

emilbayes
Copy link
Contributor

No description provided.

@dcousens dcousens added the bug label Nov 7, 2016
@dcousens
Copy link
Collaborator

dcousens commented Nov 7, 2016

LGTM, but not sure why it was that way before

@emilbayes
Copy link
Contributor Author

emilbayes commented Nov 7, 2016

@dcousens Node.js delegates .fill to a native method. Maybe it was a brain fart? As far as I can see there are no tests covering bytes > 127 so maybe that's why it wasn't caught? I didn't read all the Node tests either so my knowledge is only superficial

@@ -44,3 +44,12 @@ test('base64: invalid non-alphanumeric characters -- should be stripped', functi
)
t.end()
})

test('base64: high byte', function (t) {
var highByte = Buffer.from([128])
Copy link
Owner

Choose a reason for hiding this comment

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

This should be B.from, right? None of the other tests reference Buffer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh woops

@feross feross merged commit dd972aa into feross:master Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants