bytecodealliance / javy

JS to WebAssembly toolchain
Apache License 2.0
2.29k stars 110 forks source link

Simplify dynamic linking imports tests #818

Closed jeffcharles closed 3 weeks ago

jeffcharles commented 3 weeks ago

Description of the change

Simplifies the test code for checking the imports that dynamically linked modules have. At the moment, we always import canonical_abi_realloc, memory, eval_bytecode, and invoke, so we don't need separate tests for dynamically linked modules that have named exports.

Why am I making this change?

I'm going to need to adjust how we check the imports to exclude eval_bytecode and reduce the number of expected imports for certain dynamically linked modules in an upcoming PR and wanted to refactor the test suite outside of that PR first.

Checklist