Skip to content

Commit

Permalink
Check for the entry kind
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikKlein committed Jan 8, 2020
1 parent b81ab44 commit f1fb384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/run-make/wasm-export-all-symbols/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f1fb384

Please sign in to comment.