mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
runtime: implement internal/godebug.setUpdate
This function was a stub, but it really needs to be implemented for full Go 1.20 support. Without it, the archive/zip tests will fail.
This commit is contained in:
@@ -96,8 +96,11 @@ func SetFinalizer(obj interface{}, finalizer interface{}) {
|
||||
// Unimplemented.
|
||||
}
|
||||
|
||||
var godebugUpdate func(string, string)
|
||||
|
||||
//go:linkname godebug_setUpdate internal/godebug.setUpdate
|
||||
func godebug_setUpdate(update func(string, string)) {
|
||||
// Unimplemented. The 'update' function needs to be called whenever the
|
||||
// GODEBUG environment variable changes (for example, via os.Setenv).
|
||||
// The 'update' function needs to be called whenever the GODEBUG environment
|
||||
// variable changes (for example, via os.Setenv).
|
||||
godebugUpdate = update
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user