experimental: add wazerotest package (#1437)

This commit is contained in:
Achille
2023-05-06 08:19:27 -07:00
committed by GitHub
parent 38a7a0f730
commit 5add4dc0bf
4 changed files with 922 additions and 5 deletions

View File

@@ -12,11 +12,11 @@ import (
type InternalModule interface {
api.Module
// NumGlobal returns the count of all globals in the
// module.
// NumGlobal returns the count of all globals in the module.
NumGlobal() int
// Global provides a read-only view for a given global
// index. Panics if idx > GlobalsCount().
Global(idx int) api.Global
// Global provides a read-only view for a given global index.
//
// The methods panics if i is out of bounds.
Global(i int) api.Global
}