Are there any known work around to store a 64 bit integer value compatible with k6?
Hi @asantos, welcome to the community forum ,
There is a PR for the upstream JS VM to add support for BigInt which seems promising and I am hopeful it might land before the next k6 release (next year at the end Jan/ start of Feb), but it might not so no promises ;).
Looking at MDN the save integer range is pretty big and at least for some of the end values it seems to hold okay with the last k6 v0.35.0 (probably all the previous as well). So as long as you don’t expect values outside of those (or are okay with them not being exact in those cases) I don’t see a problem using just general Numbers for now :).
You can obviously also build with this PR now if you are not running test in the k6 cloud (and are willing to possibly having to debug some stuff) or even make an extension to support this in another way
Hope this helps you and I promise to write here if/when the PR gets merged