Skip to content

Commit 6ac01c4

Browse files
committed
removed bigint support in literals, since javascript's JSON module doesn't universally support them.
1 parent 29840a8 commit 6ac01c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/model/HashedObject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ abstract class HashedObject {
375375
let value;
376376
let dependencies = new Set<Dependency>();
377377

378-
if (typ === 'boolean' || typ === 'number' || typ === 'string' || typ === 'bigint') {
378+
if (typ === 'boolean' || typ === 'number' || typ === 'string') {
379379
value = something;
380380
} else if (typ === 'object') {
381381
if (Array.isArray(something)) {
@@ -619,7 +619,7 @@ abstract class HashedObject {
619619

620620
let typ = typeof(value);
621621

622-
if (typ === 'boolean' || typ === 'number' || typ === 'string' || typ === 'bigint') {
622+
if (typ === 'boolean' || typ === 'number' || typ === 'string') {
623623
something = value;
624624
} else if (typ === 'object') {
625625
if (Array.isArray(value)) {

0 commit comments

Comments
 (0)