mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53:39 +00:00
runtime: implement Goexit
This is needed for full support for the testing package
This commit is contained in:
committed by
Ron Evans
parent
65b085a5d5
commit
aed555d858
@@ -28,11 +28,6 @@ func scheduleLogChan(msg string, ch *channel, t *task.Task) {
|
||||
}
|
||||
|
||||
// Goexit terminates the currently running goroutine. No other goroutines are affected.
|
||||
//
|
||||
// Unlike the main Go implementation, no deferred calls will be run.
|
||||
//
|
||||
//go:inline
|
||||
func Goexit() {
|
||||
// TODO: run deferred functions
|
||||
deadlock()
|
||||
panicOrGoexit(nil, panicGoexit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user