git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit bea202f2fdf8d657062f28fac0fbd23060d6fad3

Merge pull request #12 from ewasm/c-and-rust-compatibility

Export spectest and env namespaces too for Rust & Binaryen
wanderer authored on 8/5/2016, 4:26:51 PM
GitHub committed on 8/5/2016, 4:26:51 PM
Parent: 15d2c0fc81dcbb3582ba95664973cd4a97055b02
Parent: 18dd5821f2d9aee3c1b61f4c6348334c8dac2ddf

Files changed

index.jschanged
index.jsView
@@ -32,9 +32,17 @@
3232 const debugInterface = new DebugInterface()
3333
3434 const instance = Wasm.instantiateModule(code, {
3535 '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
3745 })
3846
3947 ethInterface.setModule(instance)
4048 debugInterface.setModule(instance)

Built with git-ssb-web