Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index 89b602db4bdff774b90050ee0235980ce6d1bad2..49a283dff5047f56b68e506c514479d7d0aaaeaa 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -199,9 +199,9 @@ class TestingModule : public ModuleEnv { |
Handle<JSFunction> jsfunc = Handle<JSFunction>::cast(v8::Utils::OpenHandle( |
*v8::Local<v8::Function>::Cast(CompileRun(source)))); |
uint32_t index = AddFunction(sig, Handle<Code>::null()); |
- Handle<Code> code = |
- CompileWasmToJSWrapper(isolate_, jsfunc, sig, index, |
- Handle<String>::null(), Handle<String>::null()); |
+ Handle<Code> code = CompileWasmToJSWrapper( |
+ isolate_, jsfunc, sig, index, Handle<String>::null(), |
+ Handle<String>::null(), module->origin); |
instance->function_code[index] = code; |
return index; |
} |