Skip to content

Commit

Permalink
Commented wasi import, because AssemblyScript no longer requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
iulian-birlica committed Feb 7, 2023
1 parent fce82ed commit d2fb019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// As of AssemblyScript 0.10.0, adding `import "wasi"`, will automatically
// import WASI bindings, and add some nice defaults for compiling to WASI.
import "wasi";
// As of AssemblyScript 0.20.0, `import "wasi"` is no longer necessary. Please check
// you version and either decomment the following line or leave it commented.
//import "wasi";

// Import Console (for writing to stdout), and FileSystem (for reading/writing files)
// from "as-wasi". An API for working with WASI in AssemblyScript much easier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Then, we will open the `assembly/index.ts` and enter the following contents. Ple
```typescript
// As of AssemblyScript 0.10.0, adding `import "wasi"`, will automatically
// import WASI bindings, and add some nice defaults for compiling to WASI.
import "wasi";
// As of AssemblyScript 0.20.0, `import "wasi"` is no longer necessary. Please check
// you version and either decomment the following line or leave it commented.
//import "wasi";

// Import Console (for writing to stdout), and FileSystem (for reading/writing files)
// from "as-wasi". An API for working with WASI in AssemblyScript much easier.
Expand Down

0 comments on commit d2fb019

Please sign in to comment.