mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
runtime/wasm: provide dummy runtime.setEventHandler
Event handlers aren't supported yet. This commit gets syscall/js to compile for the WebAssembly target.
This commit is contained in:
committed by
Ron Evans
parent
06aa88abfb
commit
792274e86f
@@ -37,6 +37,11 @@ func putchar(c byte) {
|
|||||||
resource_write(stdout, &c, 1)
|
resource_write(stdout, &c, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//go:linkname setEventHandler syscall/js.setEventHandler
|
||||||
|
func setEventHandler(fn func()) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
//go:export go_scheduler
|
//go:export go_scheduler
|
||||||
func go_scheduler() {
|
func go_scheduler() {
|
||||||
scheduler()
|
scheduler()
|
||||||
|
|||||||
Reference in New Issue
Block a user