git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 18dd5821f2d9aee3c1b61f4c6348334c8dac2ddf

Export spectest and env namespaces too for Rust & Binaryen

Alex Beregszaszi committed on 8/4/2016, 12:27:50 AM
Parent: ccd5cf6291ba56bba5cd804c94c57da6b7801c40

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