Comments (7)
Guess because Buffer._augment is undefined
from typedarray-to-buffer.
Hmmm, you fixed that in commit e7d1e97 but why am I still having the older code?
from typedarray-to-buffer.
I have a guess. It's probably related to browserify.
The original code has:
var constructor = Buffer.TYPED_ARRAY_SUPPORT
? function (arr) {
arr.__proto__ = Buffer.prototype
return arr
}
: function (arr) { return new Buffer(arr) }
After browserify I have this
var constructor = Buffer.TYPED_ARRAY_SUPPORT
? Buffer._augment
: function (arr) { return new Buffer(arr) }
Hmmm ...
from typedarray-to-buffer.
Ah, when I downgrade Browserify from v13 back to v12, then the above problem does not appear!
from typedarray-to-buffer.
If you're using browserify 13, you need to make sure that the latest version of typedarray-to-buffer
(3.0.5) is used everywhere in your project. From @terinjokes's comment here (browserify/browserify#1482 (comment)) you can see that 3.0.4 is being used.
from typedarray-to-buffer.
Actually, I'll just add back Buffer._augment
for a while (until the next major version of buffer) to ease this transition period. You should be able to use browserify 13 and older versions of typedarray-to-buffer
now.
Cheers!
from typedarray-to-buffer.
@feross thanks - yep i figured that out meanwhile. and easing the transition period is a good idea. maybe add a deprecation warning?
from typedarray-to-buffer.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typedarray-to-buffer.