Skip to content

Conversation

@guybedford
Copy link
Contributor

@guybedford guybedford commented Aug 28, 2021

This updates the WASI documentation example to use import.meta.url to load the WASI file.

This ensures the example follows the more common pattern of a module-relative WASI import rather than a CWD relative one.

At the sime time I've also updated the example to use the FS promises readFile and also noted some WASI binaries need to use the wasi_unstable import name.

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. wasi Issues and PRs related to the WebAssembly System Interface. labels Aug 28, 2021
Co-authored-by: Antoine du Hamel <[email protected]>
Co-authored-by: Antoine du Hamel <[email protected]>
guybedford added a commit that referenced this pull request Aug 31, 2021
PR-URL: #39925
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@guybedford
Copy link
Contributor Author

Landed in 162f07b.

@guybedford guybedford closed this Aug 31, 2021
@guybedford guybedford deleted the wasi-convention branch August 31, 2021 15:08
targos pushed a commit that referenced this pull request Sep 6, 2021
PR-URL: #39925
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
targos pushed a commit that referenced this pull request Sep 6, 2021
PR-URL: #39925
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@targos targos mentioned this pull request Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. wasi Issues and PRs related to the WebAssembly System Interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants