Skip to content

Commit 9d921ed

Browse files
committed
misc/wasm: move wasm runtime files to lib/wasm
1 parent d363534 commit 9d921ed

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

doc/next/7-ports.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
## Ports {#ports}
22

3+
### WebAssembly {#wasm}
4+
5+
The support files for WebAssembly have been moved to `lib/wasm` from `misc/wasm`.
File renamed without changes.
File renamed without changes.

misc/wasm/wasm_exec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/encoding.min.js"></script>
1818
(see https://caniuse.com/#feat=textencoder)
1919
-->
20-
<script src="wasm_exec.js"></script>
20+
<script src="../../lib/wasm/wasm_exec.js"></script>
2121
<script>
2222
if (!WebAssembly.instantiateStreaming) { // polyfill
2323
WebAssembly.instantiateStreaming = async (resp, importObject) => {

src/cmd/distpack/test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ var modRules = []testRule{
7373
{name: "golang.org/toolchain@*/src/cmd/go/main.go"},
7474
{name: "golang.org/toolchain@*/src/bytes/bytes.go"},
7575

76+
{name: "golang.org/toolchain@*/lib/wasm/wasm_exec.js"},
77+
{name: "golang.org/toolchain@*/lib/wasm/wasm_exec_node.js"},
78+
7679
{name: "**/.DS_Store", exclude: true},
7780
{name: "golang.org/toolchain@*/.git", exclude: true},
7881
{name: "golang.org/toolchain@*/.gitattributes", exclude: true},

0 commit comments

Comments
 (0)