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
In Chrome, String.split with a limit on an empty string returns an array containing an empty string, but goja returns an empty array.
Goja:
"".split("#", 2) // result == []
Chrome:
"".split("#", 2) // result == [""]
Maybe add a minimum value at
goja/builtin_string.go
Lines 830 to 832 in eb1f15e
The text was updated successfully, but these errors were encountered:
b1681fb
Thanks for reporting!
Sorry, something went wrong.
No branches or pull requests
Description
In Chrome, String.split with a limit on an empty string returns an array containing an empty string, but goja returns an empty array.
Reproduce
Goja:
Excpeted Result
Chrome:
Possible Solution
Maybe add a minimum value at
goja/builtin_string.go
Lines 830 to 832 in eb1f15e
The text was updated successfully, but these errors were encountered: