* Makes CacheNumInUint64 lazy and stops crashing in assemblyscript This makes CacheNumInUint64 lazy so that all tests for function types don't need to handle it. This also changes the assemblyscript special functions so they don't crash when attempting to log. Finally, this refactors `wasm.Func` so that it can enclose the parameter names as it is more sensible than defining them elsewhere. Signed-off-by: Adrian Cole <adrian@tetrate.io>
10 lines
363 B
Go
10 lines
363 B
Go
package wasi_snapshot_preview1
|
|
|
|
const functionSchedYield = "sched_yield"
|
|
|
|
// schedYield is the WASI function named functionSchedYield which temporarily
|
|
// yields execution of the calling thread.
|
|
//
|
|
// See https://github.com/WebAssembly/WASI/blob/snapshot-01/phases/snapshot/docs.md#-sched_yield---errno
|
|
var schedYield = stubFunction(functionSchedYield, nil, nil)
|