runtime: remove minSched hack for wasm

I am not entirely sure what it's doing (it seems related to js.FuncOf),
but tests still seem to pass when this code is removed. So let's remove
it.
This commit is contained in:
Ayke van Laethem
2024-10-18 12:31:11 +02:00
committed by Ron Evans
parent cd2bb8333d
commit 2f9e39e21c
3 changed files with 0 additions and 39 deletions
-7
View File
@@ -4,13 +4,6 @@ package runtime
type timeUnit float64 // time in milliseconds, just like Date.now() in JavaScript
// wasmNested is used to detect scheduler nesting (WASM calls into JS calls back into WASM).
// When this happens, we need to use a reduced version of the scheduler.
//
// TODO: this variable can probably be removed once //go:wasmexport is the only
// allowed way to export a wasm function (currently, //export also works).
var wasmNested bool
var handleEvent func()
//go:linkname setEventHandler syscall/js.setEventHandler