mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibJS: Add Number.parseInt
This is initialized to be the same function object as the initial value of the parseInt function on the global object.
This commit is contained in:
parent
b6a74b6bd9
commit
02de3cbce3
2 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
test("basic functionality", () => {
|
||||
// Ensuring it's the same function as the global
|
||||
// parseInt() is enough as that already has tests :^)
|
||||
expect(Number.parseInt).toBe(parseInt);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue