Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ext/node): Use an internal DataView in Buffer
This way Buffer polyfill doesn't need to reimplement the methods for reading data from an ArrayBuffer backing store. Instead the DataView APIs are used that then internally call V8 implementations of these algorithms. This reduces the amount of code needed for the Buffer polyfill significantly. It also provides performance benefits especially for reading floating point numbers.
- Loading branch information