Skip to content

Commit

Permalink
Merge pull request #40 from wasmerio/generated-bindings
Browse files Browse the repository at this point in the history
Switch over to the WABT bindings generated by wit-pack
  • Loading branch information
Michael Bryan authored Nov 11, 2022
2 parents 008e8f5 + 89c8198 commit 5777736
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 121 deletions.
124 changes: 65 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@
"vscode": "^1.1.37"
},
"dependencies": {
"wabt": "^1.0.24"
"@wasmer/wabt": "https://registry-cdn.wapm.io/bindings/generator-0.5.0/npm/wasmer/wabt/wabt-1.0.30.tar.gz"
}
}
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function maybeSaveWat(from: vscode.Uri) {

async function saveWat(from: vscode.Uri, to: vscode.Uri) {
const wasmContent = await readFile(from);
const watContent = wasm2wat(wasmContent);
const watContent = await wasm2wat(wasmContent);

await writeFile(to, watContent);
}
Expand All @@ -136,7 +136,7 @@ function maybeSaveWasm(from: vscode.Uri) {

async function saveWasm(from: vscode.Uri, to: vscode.Uri) {
const watContent = await readFile(from);
const wasmContent = wat2wasm(watContent);
const wasmContent = await wat2wasm(watContent);

await writeFile(to, wasmContent);
}
Loading

0 comments on commit 5777736

Please sign in to comment.