Skip to content

Commit a8bca5a

Browse files
committed
Update example instructions when running locally
1 parent 80bb0b8 commit a8bca5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/examples/interference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ As soon as this condition is no longer met, one would instead either reserve som
125125
Set up a new AssemblyScript project as described in [Quick start](../quick-start.md) and copy `module.ts` to `assembly/index.ts` and `index.html` to the project's top-level directory. Edit the build commands in `package.json` to include
126126

127127
```
128-
--runtime none
128+
--runtime stub
129129
```
130130

131131
The example can now be compiled with

src/examples/mandelbrot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ As soon as these conditions are no longer met, one would instead either reserve
160160
Set up a new AssemblyScript project as described in [Quick start](../quick-start.md) and copy `module.ts` to `assembly/index.ts` and `index.html` to the project's top-level directory. Edit the build commands in `package.json` to include
161161

162162
```
163-
--runtime none --use Math=JSMath --importMemory
163+
--runtime stub --use Math=JSMath --importMemory
164164
```
165165

166166
The example can now be compiled with
@@ -186,11 +186,11 @@ WebAssembly.instantiateStreaming(fetch('./build/optimized.wasm'), {
186186
env: {
187187
memory
188188
},
189-
JSMath: Math
189+
Math
190190
}).then(({ exports }) => {
191191
```
192192
193-
because using the [loader](../loader.md) is not ultimately necessary here (no managed objects are exchanged). If the loader is used instead, it will automatically provide `JSMath`.
193+
because using the [loader](../loader.md) is not ultimately necessary here (no managed objects are exchanged). If the loader is used instead, it will automatically provide JavaScript's `Math`.
194194
195195
Some browsers may restrict `fetch`ing local resources when just opening `index.html` now, but one can set up a local server as a workaround:
196196

0 commit comments

Comments
 (0)