ssa: support runtime.map

This commit is contained in:
visualfc
2024-06-28 22:01:58 +08:00
parent e05e61a59b
commit 2ccd1625e7
15 changed files with 1391 additions and 102 deletions

View File

@@ -31,6 +31,12 @@ func (e errorString) Error() string {
return "runtime error: " + string(e)
}
type plainError string
func (e plainError) Error() string {
return string(e)
}
func AssertRuntimeError(b bool, msg string) {
if b {
panic(errorString(msg).Error())