Index: test/cctest/wasm/test-run-wasm-js.cc |
diff --git a/test/cctest/wasm/test-run-wasm-js.cc b/test/cctest/wasm/test-run-wasm-js.cc |
index 3cf13882f15de89d291316013fde88be17d8be6a..76091fe7bdeaaac60d5413cd507666b8c5a4b7a5 100644 |
--- a/test/cctest/wasm/test-run-wasm-js.cc |
+++ b/test/cctest/wasm/test-run-wasm-js.cc |
@@ -56,7 +56,7 @@ uint32_t AddJsFunction(TestingModule* module, FunctionSig* sig, |
uint32_t index = static_cast<uint32_t>(module->module->functions->size() - 1); |
Isolate* isolate = CcTest::InitIsolateOnce(); |
Handle<Code> code = CompileWasmToJSWrapper(isolate, module, jsfunc, index); |
- module->function_code->at(index) = code; |
+ module->instance->function_code->at(index) = code; |
return index; |
} |
@@ -84,7 +84,7 @@ Handle<JSFunction> WrapCode(ModuleEnv* module, uint32_t index) { |
// Wrap the code so it can be called as a JS function. |
Handle<String> name = isolate->factory()->NewStringFromStaticChars("main"); |
Handle<JSObject> module_object = Handle<JSObject>(0, isolate); |
- Handle<Code> code = module->function_code->at(index); |
+ Handle<Code> code = module->instance->function_code->at(index); |
WasmJs::InstallWasmFunctionMap(isolate, isolate->native_context()); |
return compiler::CompileJSToWasmWrapper(isolate, module, name, code, |
module_object, index); |