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:
Luke 2021-06-18 09:52:13 +01:00 committed by Linus Groh
commit 02de3cbce3
Notes: sideshowbarker 2024-07-18 12:05:56 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -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);
});