From 3f3fc857ff6204517281ed5caa3209cc8f02d4fc Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 27 Dec 2018 15:24:57 -0800 Subject: Fix fuzzing JS glue code (#1843) After we added logging to the fuzzer, we forgot to add to the JS glue code the necessary imports so it can be run there too. Also adds legalization for the JS glue code imports and exports. Also adds a missing validator check on imports having a function type (the fuzzing code was missing one). Fixes #1842 --- src/tools/fuzzing.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/fuzzing.h') diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index 1a3da7b22..0bb05a1ed 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -314,6 +314,7 @@ private: func->base = name; func->params.push_back(type); func->result = none; + func->type = ensureFunctionType(getSig(func), &wasm)->name; wasm.addFunction(func); } } -- cgit v1.2.3