Index: test/common/wasm/wasm-module-runner.cc |
diff --git a/test/common/wasm/wasm-module-runner.cc b/test/common/wasm/wasm-module-runner.cc |
index 5e1412914dab24121b869fab5dcc2f7af3f51535..130624b85e023e18932ed1e62093e5b03f8a7eef 100644 |
--- a/test/common/wasm/wasm-module-runner.cc |
+++ b/test/common/wasm/wasm-module-runner.cc |
@@ -10,6 +10,7 @@ |
#include "src/property-descriptor.h" |
#include "src/wasm/module-decoder.h" |
#include "src/wasm/wasm-interpreter.h" |
+#include "src/wasm/wasm-js.h" |
#include "src/wasm/wasm-module.h" |
#include "src/wasm/wasm-result.h" |
#include "src/zone.h" |
@@ -199,6 +200,12 @@ int32_t CallWasmFunctionForTesting(Isolate* isolate, Handle<JSObject> instance, |
return -1; |
} |
+void SetupIsolateForWasmModule(Isolate* isolate) { |
+ WasmJs::InstallWasmFunctionMapIfNeeded(isolate, isolate->native_context()); |
+ WasmJs::InstallWasmModuleSymbolIfNeeded(isolate, isolate->global_object(), |
+ isolate->native_context()); |
+} |
+ |
} // namespace testing |
} // namespace wasm |
} // namespace internal |