mirror of https://github.com/boa-dev/boa.git
Browse Source
This Pull Request fixes a potential overflow when trying to convert a `u64` into a `usize` and then trying to create a byte data block. Related to this, we seem to be using a `u64` and `i64` as a general approach for an "integer", but ECMAScript doesn't have bounds for them, so they could be as big as infinite. Should we use `u128` and `i128` to have a bigger range? This would add a performance penalty, though, and we don't have 128-bit platforms usually, so the benefit would probably be minimal, at least when trying to allocate.pull/2286/head
Iban Eguia
2 years ago
1 changed files with 6 additions and 2 deletions
Loading…
Reference in new issue