FastestSmallestTextEncoderDecoder
FastestSmallestTextEncoderDecoder copied to clipboard
TypeError: Cannot read property 'allocUnsafe' of undefined
I'm executing this polyfill in v8, and getting:
TypeError: Cannot read property 'allocUnsafe' of undefined
It's coming from this line:
var NativeBuffer_allocUnsafe = NativeBuffer["allocUnsafe"];
Commenting out that line appears to fix the problem. Perhaps setting up NativeBuffer_allocUnsafe
should be guarded by some other conditions? (My javascript is not strong.)
Hi, I don't remember why, but we were able to fix this error by importing fastestsmallesttextencoderdecoder/EncoderDecoderTogether.min
instead of fastestsmallesttextencoderdecoder
.
/EncoderDecoderTogether.min
This worked for me, cheers :)
Falling back to v1.0.21
worked for me.