Commit a860393bda1e07cc7f9e902b5f299f989a3fa198
Merge branch 'jsApi' into testing
wanderer committed on 9/12/2016, 9:24:18 PMParent: 0ee892caf86f3afea400347e7230a4ca0e461eff
Parent: 9a1df2ada5e60a2be2c861c4780f15abf3f52f3b
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -43,10 +43,10 @@ | ||
43 | 43 | // NOTE: it assumes that wasm will raise an exception if something went wrong, |
44 | 44 | // otherwise execution succeeded |
45 | 45 | codeHandler (code, ethInterface = new Interface(new Environment())) { |
46 | 46 | const debugInterface = new DebugInterface(ethInterface.environment) |
47 | - | |
48 | - const instance = Wasm.instantiateModule(code, { | |
47 | + const module = WebAessembly.Module(code) | |
48 | + const instance = WebAessembly.Instance(module, { | |
49 | 49 | 'ethereum': ethInterface.exportTable, |
50 | 50 | 'debug': debugInterface.exportTable, |
51 | 51 | |
52 | 52 | // export this for Rust |
Built with git-ssb-web