mirror of https://github.com/boa-dev/boa.git
Browse Source
This PR fixes the bug when passing `undefined` as radix in `Number.prototype.toString()` which was throwing a range error, instead of setting the radix to `10` [spec](https://tc39.es/ecma262/#sec-number.prototype.tostring): > **Note** > > The optional radix should be an [integral Number](https://tc39.es/ecma262/#integral-number) value in the inclusive range 2𝔽 to 36𝔽. If radix is undefined then 10𝔽 is used as the value of radix.pull/1883/head
Halid Odat
3 years ago
1 changed files with 10 additions and 8 deletions
Loading…
Reference in new issue