From 754e1770a5f4f19f20e275f77d5acb5d69219cac Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sun, 13 Sep 2020 11:36:49 +0200 Subject: [PATCH] remove support for bigint --- public/trivabble.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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")) { -- 2.30.2