From: Laurent Mazet Date: Sun, 13 Sep 2020 09:36:49 +0000 (+0200) Subject: remove support for bigint X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=754e1770a5f4f19f20e275f77d5acb5d69219cac;p=trivabble.git remove support for bigint --- diff --git a/public/trivabble.js b/public/trivabble.js index 5bcce78..518cd30 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -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); @@ -126,8 +124,7 @@ if (type === "object") { value = JSON.stringify(value); } - if ((type === "bigint") || - (type === "boolean") || + if ((type === "boolean") || (type === "number") || (type === "object") || (type === "string")) {