remove support for bigint

This commit is contained in:
Laurent Mazet 2020-09-13 11:36:49 +02:00
parent ae9c2a7da3
commit 754e1770a5
1 changed files with 2 additions and 5 deletions

View 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);
@ -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")) {