remove support for bigint
authorLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 09:36:49 +0000 (11:36 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 09:36:49 +0000 (11:36 +0200)
public/trivabble.js

index 5bcce7878fb4e62ca8e5a54d6a03e3832583dea2..518cd30d61e2b1435999198cbcfa4f96c63126ec 100644 (file)
@@ -81,9 +81,7 @@
             }
 
             /* cast from string to type */
-            if (type === "bigint") {
-                value = BigInt(value);
-            } else if (type === "boolean") {
+            if (type === "boolean") {
                 value = (value) ? true : false;
             } else if (type === "number") {
                 value = Number(value);
             if (type === "object") {
                 value = JSON.stringify(value);
             }
-            if ((type === "bigint") ||
-                (type === "boolean") ||
+            if ((type === "boolean") ||
                 (type === "number") ||
                 (type === "object") ||
                 (type === "string")) {