| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index f16810c72c71716dd22849c5235d5afbcaab6e53..1b26441e8e1e2fd27599f8ce25d0ed1f41a5ca14 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -1145,7 +1145,8 @@ MaybeHandle<FixedArray> WasmModule::CompileFunctions(
|
| Handle<Code> code =
|
| temp_instance_for_compilation.function_code[exp.func_index];
|
| Handle<Code> export_code = compiler::CompileJSToWasmWrapper(
|
| - isolate, &module_env, code, exp.func_index);
|
| + isolate, temp_instance_for_compilation.context, &module_env, code,
|
| + exp.func_index);
|
| if (thrower->error()) return nothing;
|
| export_metadata->set(kExportCode, *export_code);
|
| export_metadata->set(kExportName, *name);
|
| @@ -1169,8 +1170,9 @@ MaybeHandle<FixedArray> WasmModule::CompileFunctions(
|
| if (startup_fct.is_null()) {
|
| Handle<Code> code = temp_instance_for_compilation.function_code[index];
|
| DCHECK_EQ(0, functions[index].sig->parameter_count());
|
| - startup_fct =
|
| - compiler::CompileJSToWasmWrapper(isolate, &module_env, code, index);
|
| + startup_fct = compiler::CompileJSToWasmWrapper(
|
| + isolate, temp_instance_for_compilation.context, &module_env, code,
|
| + index);
|
| }
|
| Handle<FixedArray> metadata =
|
| factory->NewFixedArray(kWasmExportMetadataTableSize, TENURED);
|
|
|