Skip to content

Commit

Permalink
fix: revert accidental push
Browse files Browse the repository at this point in the history
  • Loading branch information
wikiwong committed Sep 26, 2023
1 parent edb56f2 commit d0d574c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions demo-iota/js/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ app.post('/run', bodyParser.raw({ limit: '256mb', type: () => true }), async (re
const stdinPath = `${os.tmpdir}/stdin_${Math.ceil(Math.random() * 10000)}.txt`
fs.writeFileSync(stdinPath, req.body)
const stdin = fs.openSync(stdinPath)

const wasi = new WASI({
version: 'preview1',
args: [req.query['name']],
Expand All @@ -62,8 +62,6 @@ app.post('/run', bodyParser.raw({ limit: '256mb', type: () => true }), async (re
const bytes = fs.readFileSync(`${os.tmpdir()}/${req.query['name']}.wasm`)
const traceContext = await adapter.start(bytes)
const module = new WebAssembly.Module(bytes)
console.log(bytes)
// console.log(module)
const instance = await WebAssembly.instantiate(module, {
...wasi.getImportObject(),
...traceContext.getImportObject(),
Expand Down

0 comments on commit d0d574c

Please sign in to comment.