runtime/wasm: provide dummy runtime.setEventHandler

Event handlers aren't supported yet. This commit gets syscall/js to
compile for the WebAssembly target.
Этот коммит содержится в:
Ayke van Laethem 2019-03-07 15:16:11 +01:00 коммит произвёл Ron Evans
родитель 06aa88abfb
коммит 792274e86f

Просмотреть файл

@ -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()