Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: shrinkStrategy should always return an integer
`Buffer` inherits from `Uint8Arry` so the constructor needs to be called with integers and mustn't be called with floats. This patch ensures that the result of the the calculation in the `shrinkStrategy` in `Receiver` returns an integer. The reason why this has not been a problem up to now is that a there is a [V8 Bug](https://code.google.com/p/v8/issues/detail?id=4552) that the [spec](http://tc39.github.io/ecma262/#sec-typedarray-length) is not adhered in this case. This is a blocking issue for [Karma](karma-runner/karma#1768) as the upgrade to [[email protected]](https://github.com/zloirock/core-js) now enforces this error.
- Loading branch information