From 31f77c22da6dd32167f57ffe58938b14514721a8 Mon Sep 17 00:00:00 2001 From: dylan <> Date: Sun, 14 May 2023 14:09:20 -0700 Subject: [PATCH] Add parseFloat and parseInt --- builtins.ts | 2 ++ manual.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/builtins.ts b/builtins.ts index 2f623c2..2830aab 100644 --- a/builtins.ts +++ b/builtins.ts @@ -170,6 +170,8 @@ const faux = { WeakSet, isFinite, isNaN, + parseFloat, + parseInt, // Math max: Math.max, min: Math.min, diff --git a/manual.md b/manual.md index 1bd4654..1d84ff8 100644 --- a/manual.md +++ b/manual.md @@ -130,3 +130,5 @@ The following JS objects/functions/value are exactly provided as is in a typical - [`isFinite`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite) - [`isNaN`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN) - [`eval`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) +- [`parseFloat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat) +- [`parseInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt) \ No newline at end of file