From 792274e86f67810a79fcab06b5eb6ee0689f8251 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 7 Mar 2019 15:16:11 +0100 Subject: [PATCH] runtime/wasm: provide dummy runtime.setEventHandler Event handlers aren't supported yet. This commit gets syscall/js to compile for the WebAssembly target. --- src/runtime/runtime_wasm.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/runtime/runtime_wasm.go b/src/runtime/runtime_wasm.go index 541751a2..01552507 100644 --- a/src/runtime/runtime_wasm.go +++ b/src/runtime/runtime_wasm.go @@ -37,6 +37,11 @@ func putchar(c byte) { resource_write(stdout, &c, 1) } +//go:linkname setEventHandler syscall/js.setEventHandler +func setEventHandler(fn func()) { + // TODO +} + //go:export go_scheduler func go_scheduler() { scheduler()