Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae9c2a7
)
remove support for bigint
author
Laurent Mazet
<mazet@softndesign.org>
Sun, 13 Sep 2020 09:36:49 +0000
(11:36 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sun, 13 Sep 2020 09:36:49 +0000
(11:36 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 5bcce7878fb4e62ca8e5a54d6a03e3832583dea2..518cd30d61e2b1435999198cbcfa4f96c63126ec 100644
(file)
--- 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")) {