You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error detected, return -1 TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at objectSizeComplex (/Users/bytedance/node/node_modules/object-sizeof/indexv2.js:62:33)
...
* Fix nested bigint calculation. Add support for more types of nested objects. Fixes#88
* Refactored for readability
* Added test for global symbol
* Grammar cleanup
I found a problem with code like this (typescript):
And get error:
The reason is, there is a
JSON.stringify
inobjectSizeComplex
:const objectToString = JSON.stringify(potentialConversion)
I think,there should be a recursive call in
objectSizeComplex
The text was updated successfully, but these errors were encountered: