Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update WASI example to use import.meta.url #39925

Closed
wants to merge 6 commits into from

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
doc/api/wasi.md Outdated Show resolved Hide resolved
Co-authored-by: Antoine du Hamel <[email protected]>
doc/api/wasi.md Outdated Show resolved Hide resolved
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.

6 participants