mirror of https://github.com/boa-dev/boa.git
Browse Source
This Pull Request fixes a faulty cast for `Array.splice`. Negative values for delete_count were being directly casted to usize, which was not the intended behavior. This pull request fixes the issue by using a fallible conversion, defaulting to 0 if the conversion fails. It changes the following: - Replace cast in `Array.splice` prototype method with fallible conversion.pull/2031/head
lupd
3 years ago
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue