Skip to content

Conversation

sehrgut
Copy link

@sehrgut sehrgut commented Aug 23, 2013

When buffers is an array of one buffer of zero length (falsey), this reduce operation ends up producing the string "0" in the output buffer. I couldn't find any reason the reduce operation needed to test either left or right, since left will always be a Number, and both places MergeBuffers is used it buffers elements will always have length. It still passes the entire test suite with this patch in place.

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.

1 participant