wazevo: implements MutableGlobal.Set, fixes emscripten test (#2129)

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This commit is contained in:
Takeshi Yoneda
2024-03-07 12:33:59 +09:00
committed by GitHub
parent dfb2959d34
commit 81d1f20428
9 changed files with 47 additions and 4 deletions

View File

@@ -296,7 +296,9 @@ func TestModule_Global(t *testing.T) {
tc := tt
t.Run(tc.name, func(t *testing.T) {
r := NewRuntime(testCtx).(*runtime)
cfg := NewRuntimeConfig().(*runtimeConfig)
cfg.EnableOptimizingCompiler()
r := NewRuntimeWithConfig(testCtx, cfg).(*runtime)
defer r.Close(testCtx)
code := &compiledModule{module: tc.module}