mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
interp: do not register runtime timers during interp
The runtime hasn't been initialized yet so this leads to problems. This fixes https://github.com/tinygo-org/tinygo/issues/4123.
This commit is contained in:
committed by
Ron Evans
parent
5557e97888
commit
f529b6071d
Vendored
+2
@@ -2,6 +2,8 @@ package main
|
||||
|
||||
import "time"
|
||||
|
||||
var timer = time.NewTimer(time.Millisecond)
|
||||
|
||||
func main() {
|
||||
// Test ticker.
|
||||
ticker := time.NewTicker(time.Millisecond * 500)
|
||||
|
||||
Reference in New Issue
Block a user