mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
compiler,runtime: make panic functions camelCase
Rename panic functions to be runtime.nilPanic, runtime.lookupPanic, and runtime.slicePanic.
This commit is contained in:
@@ -36,16 +36,16 @@ func isnil(ptr *uint8) bool {
|
||||
}
|
||||
|
||||
// Panic when trying to dereference a nil pointer.
|
||||
func nilpanic() {
|
||||
func nilPanic() {
|
||||
runtimePanic("nil pointer dereference")
|
||||
}
|
||||
|
||||
// Panic when trying to acces an array or slice out of bounds.
|
||||
func lookuppanic() {
|
||||
func lookupPanic() {
|
||||
runtimePanic("index out of range")
|
||||
}
|
||||
|
||||
// Panic when trying to slice a slice out of bounds.
|
||||
func slicepanic() {
|
||||
func slicePanic() {
|
||||
runtimePanic("slice out of range")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user