mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 03:54:01 +00:00
compiler: make goroutine lowering panic message more helpful
This is a workaround for an existing issue, to see which function is to blame.
This commit is contained in:
committed by
Ron Evans
parent
0b7047cc0e
commit
79b470acee
@@ -403,7 +403,7 @@ func (c *Compiler) markAsyncFunctions() (needsScheduler bool, err error) {
|
|||||||
parentHandle = f.LastParam()
|
parentHandle = f.LastParam()
|
||||||
if parentHandle.IsNil() || parentHandle.Name() != "parentHandle" {
|
if parentHandle.IsNil() || parentHandle.Name() != "parentHandle" {
|
||||||
// sanity check
|
// sanity check
|
||||||
panic("trying to make exported function async")
|
panic("trying to make exported function async: " + f.Name())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user