mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
Make it an error to skip or take a negative count.
This commit is contained in:
@ -1 +1 @@
|
||||
"foo".split(1) // expect runtime error: Argument must be a non-empty string.
|
||||
"foo".split(1) // expect runtime error: Delimiter must be a non-empty string.
|
||||
|
||||
@ -1 +1 @@
|
||||
"foo".split("") // expect runtime error: Argument must be a non-empty string.
|
||||
"foo".split("") // expect runtime error: Delimiter must be a non-empty string.
|
||||
|
||||
Reference in New Issue
Block a user