Skip to content

Commit

Permalink
update Go's JS WebAssembly runtime to Go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Jun 12, 2024
1 parent 28ef7dc commit 712f958
Show file tree
Hide file tree
Showing 2 changed files with 631 additions and 611 deletions.
4 changes: 2 additions & 2 deletions npm-packages/cadence-language-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ That newly build NPM package using the WebAssembly will be published and can be
### Updating `src/go.js`

- Copy `misc/wasm/wasm_exec.js` of appropriate Go version into `src/go.js`.
Keep the last line (`export const go = new Go();`)
- Run `npx prettier -w src/go.js`
- Restore the first line (adopted from header) and last line (`export const go = new Go();`)
- Update the version in the header
- Remove the anonymous function wrapper
- Change `globalThis.Go = class {` to `class Go {`
- Run `npx prettier -w src/go.js`
Loading

0 comments on commit 712f958

Please sign in to comment.