We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, we do parse bigInt as regular integers
bigInt
k6/js/modules/k6/browser/common/remote_object.go
Lines 86 to 91 in 745f0d4
Which could not work if we face a really big number, like:
package main import ( "fmt" "math/big" "strconv" "strings" ) func main() { // A large number string bigIntString := "123456789012345678901234567890" bigInt := new(big.Int) _, success := bigInt.SetString(bigIntString, 10) // Base 10 if !success { fmt.Println("Failed to parse big integer") return } fmt.Println("Parsed big.Int:", bigInt) n, err := strconv.ParseInt(strings.ReplaceAll(bigIntString, "n", ""), 10, 64) if err != nil { fmt.Println("Failed to parse int64 " + err.Error()) return } fmt.Println("Parsed N:", n) }
So probably we should use the bigInt type there if possible 🤷
Actual support of bigInt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What?
Currently, we do parse
bigInt
as regular integersk6/js/modules/k6/browser/common/remote_object.go
Lines 86 to 91 in 745f0d4
Which could not work if we face a really big number, like:
So probably we should use the
bigInt
type there if possible 🤷Why?
Actual support of
bigInt
The text was updated successfully, but these errors were encountered: