Commit cb095bce6e57caeb9ca92d94f1ec0b3c44f08c08
Use exportTable in tests too
Alex Beregszaszi committed on 8/3/2016, 9:50:04 PMParent: 75c73cf778a32316679e669b47a9b5ce085b8587
Files changed
tests/interfaceRunner.js | changed |
tests/interfaceRunner.js | ||
---|---|---|
@@ -26,9 +26,9 @@ | ||
26 | 26 | const testContract = new Kernel(environment) |
27 | 27 | const ethInterface = new Interface(environment, testContract) |
28 | 28 | |
29 | 29 | try { |
30 | - const mod = Wasm.instantiateModule(buffer, {'ethereum': ethInterface}) | |
30 | + const mod = Wasm.instantiateModule(buffer, { 'ethereum': ethInterface.exportTable }) | |
31 | 31 | ethInterface.setModule(mod) |
32 | 32 | mod.exports.test() |
33 | 33 | } catch (e) { |
34 | 34 | t.fail() |
Built with git-ssb-web