Skip to content

Commit 42c0378

Browse files
authored
Add syntax highlighting for JS code samples (#37)
1 parent 8272bec commit 42c0378

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proposals/esm-integration/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This proposal is at Stage 2 in [WebAssembly's process](https://github.com/WebAss
1010

1111
Currently, there is an imperative JS API for instantiating WebAssembly modules. This requires users to manually fetch a module file, wire up imports, and run `WebAssembly.instantiate` or `WebAssembly.instantiateStreaming`.
1212

13-
```
13+
```js
1414
let req = fetch("./myModule.wasm");
1515

1616
let imports = {
@@ -28,7 +28,7 @@ WebAssembly
2828

2929
A declarative API would improve the ergonomics by making this work happen implicitly.
3030

31-
```
31+
```js
3232
import {foo} from "./myModule.wasm";
3333
foo();
3434
```
@@ -39,13 +39,13 @@ With the introduction of ES modules, the JS spec provides a way to express modul
3939

4040
These graphs are expressed with import and export statements.
4141

42-
```
42+
```js
4343
// main.js
4444

4545
import {count, incrementCount} from "./dep.js"
4646
```
4747

48-
```
48+
```js
4949
//dep.js
5050

5151
let count = 10;

0 commit comments

Comments
 (0)