| 193 | |
| 194 | |
| 195 | static void linkHostFunctions(WasmModule & module) |
| 196 | { |
| 197 | for (const auto & declaration : module.getImports()) |
| 198 | { |
| 199 | if (declaration.getModuleName() != "env") |
| 200 | continue; |
| 201 | |
| 202 | auto host_func = WebAssembly::getHostFunction(declaration.getName()); |
| 203 | checkFunctionDeclarationMatches(declaration, host_func.getFunctionDeclaration()); |
| 204 | module.linkFunction(std::move(host_func)); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | std::string WasmModuleManager::loadModuleImpl(std::string_view module_name) |
| 209 | { |
no test coverage detected