Open andrewrk opened 11 years ago
@substack might be interested to see this.
I've found that an implementation of a streaming Boyer-Moore-Horspool search streamsearch
breaks because of this. Seems pretty egregious as it's a break from the Node API.
@terinjokes for what it's worth, I think I got around the issue by using https://github.com/chrisdickinson/bops
but even then there was an issue I had to work around: https://github.com/chrisdickinson/bops/pull/7
This actually looks fixed in HEAD, but hasn't been pulled into a newer version of insert-module-globals
.
Causing zlib-browserify to be broken: https://github.com/brianloveswords/zlib-browserify/issues/6
To produce the issue:
browserify test.js >out.js
debugger
statement like this:You will notice that
l
is aBuffer
andl[0]
is yieldingundefined
when it should yield 31. Note also thatl.parent[0]
works.