Closed
Description
http://www.gopherjs.org/play/#/S6teI-bnkF
package main
import (
"fmt"
)
func main() {
str := "foo"
fmt.Println(str[0:999])
}
This should cause an error panic: runtime error: slice bounds out of range
but not.
http://www.gopherjs.org/play/#/S6teI-bnkF
package main
import (
"fmt"
)
func main() {
str := "foo"
fmt.Println(str[0:999])
}
This should cause an error panic: runtime error: slice bounds out of range
but not.