From f1fb384cd62dc13d0b4647c9f988f6f46cbf4b6f Mon Sep 17 00:00:00 2001 From: maik Date: Wed, 8 Jan 2020 10:05:44 +0100 Subject: [PATCH] Check for the entry kind --- src/test/run-make/wasm-export-all-symbols/verify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/run-make/wasm-export-all-symbols/verify.js b/src/test/run-make/wasm-export-all-symbols/verify.js index a42aec45535a9..72db3356f5635 100644 --- a/src/test/run-make/wasm-export-all-symbols/verify.js +++ b/src/test/run-make/wasm-export-all-symbols/verify.js @@ -14,13 +14,13 @@ for (const entry of list) { if (entry.kind == 'function'){ nexports += 1; } - my_exports[entry.name] = true; + my_exports[entry.name] = entry.kind; } -if (my_exports.foo === undefined) +if (my_exports.foo != "function") throw new Error("`foo` wasn't defined"); -if (my_exports.FOO === undefined) +if (my_exports.FOO != "global") throw new Error("`FOO` wasn't defined"); if (my_exports.main === undefined) {