Commit 18dd5821f2d9aee3c1b61f4c6348334c8dac2ddf
Export spectest and env namespaces too for Rust & Binaryen
Alex Beregszaszi committed on 8/4/2016, 12:27:50 AMParent: ccd5cf6291ba56bba5cd804c94c57da6b7801c40
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -32,9 +32,17 @@ | ||
32 | 32 | const debugInterface = new DebugInterface() |
33 | 33 | |
34 | 34 | const instance = Wasm.instantiateModule(code, { |
35 | 35 | 'ethereum': ethInterface.exportTable, |
36 | - 'debug': debugInterface.exportTable | |
36 | + 'debug': debugInterface.exportTable, | |
37 | + | |
38 | + // export this for Rust | |
39 | + // FIXME: remove once Rust has proper imports, see https://github.com/ethereum/evm2.0-design/issues/15 | |
40 | + 'spectest': ethInterface.exportTable, | |
41 | + | |
42 | + // export this for Binaryen | |
43 | + // FIXME: remove once C has proper imports, see https://github.com/ethereum/evm2.0-design/issues/16 | |
44 | + 'env': ethInterface.exportTable | |
37 | 45 | }) |
38 | 46 | |
39 | 47 | ethInterface.setModule(instance) |
40 | 48 | debugInterface.setModule(instance) |
Built with git-ssb-web