Commit 7b8930ed authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

runtime: fix build, rename a since-renamed hasprefix to hasPrefix

I merged CL 115835 without testing it after a rebase. My bad.

Change-Id: I0acc6ed78ea7d718ac2df11d509cfcf4364dfaee
Reviewed-on: https://go-review.googlesource.com/130815
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarMartin Möhrmann <moehrmann@google.com>
parent fd7d3259
...@@ -37,7 +37,7 @@ var indexError = error(errorString("index out of range")) ...@@ -37,7 +37,7 @@ var indexError = error(errorString("index out of range"))
// entire runtime stack for easier debugging. // entire runtime stack for easier debugging.
func panicindex() { func panicindex() {
if hasprefix(funcname(findfunc(getcallerpc())), "runtime.") { if hasPrefix(funcname(findfunc(getcallerpc())), "runtime.") {
throw(string(indexError.(errorString))) throw(string(indexError.(errorString)))
} }
panicCheckMalloc(indexError) panicCheckMalloc(indexError)
...@@ -47,7 +47,7 @@ func panicindex() { ...@@ -47,7 +47,7 @@ func panicindex() {
var sliceError = error(errorString("slice bounds out of range")) var sliceError = error(errorString("slice bounds out of range"))
func panicslice() { func panicslice() {
if hasprefix(funcname(findfunc(getcallerpc())), "runtime.") { if hasPrefix(funcname(findfunc(getcallerpc())), "runtime.") {
throw(string(sliceError.(errorString))) throw(string(sliceError.(errorString)))
} }
panicCheckMalloc(sliceError) panicCheckMalloc(sliceError)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment