remove support for bigint
This commit is contained in:
parent
ae9c2a7da3
commit
754e1770a5
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue