FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: update WASI example to use import.meta.url by guybedford · Pull Request #39925 · nodejs/node · GitHub

/ node Public

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

Closed
guybedford wants to merge 6 commits into
masterfrom
wasi-convention
Closed

doc: update WASI example to use import.meta.url#39925
guybedford wants to merge 6 commits into
masterfrom
wasi-convention

Conversation

guybedford commented Aug 28, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

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 added doc Issues and PRs related to the documentations. wasi Issues and PRs related to the WebAssembly System Interface. labels Aug 28, 2021
Comment thread doc/api/wasi.md Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Comment thread doc/api/wasi.md Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
guybedford added a commit that referenced this pull request Aug 31, 2021
PR-URL: #39925
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

Copy link
Copy Markdown
Contributor Author

Landed in 162f07b.

guybedford closed this Aug 31, 2021
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 <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos mentioned this pull request Sep 6, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL