mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
LibJS: Make number parts unsigned in NumberPrototype::to_string
Fixes #3931
This commit is contained in:
parent
ecbe17fb11
commit
2ff03ecfa8
2 changed files with 7 additions and 4 deletions
|
@ -13,6 +13,9 @@ describe("correct behavior", () => {
|
|||
[12, "12"],
|
||||
[93465, "93465"],
|
||||
[358000, "358000"],
|
||||
// Numbers above 2 ** 31 - 1 (Issue #3931)
|
||||
[2147483648, "2147483648"], // 2 ** 31
|
||||
[4294967295, "4294967295"], // 2 ** 32 - 1
|
||||
].forEach(testCase => {
|
||||
expect(testCase[0].toString()).toBe(testCase[1]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue