diff --git a/contents/en/documents/webassembly.html b/contents/en/documents/webassembly.html index a0c91c5..675c52f 100644 --- a/contents/en/documents/webassembly.html +++ b/contents/en/documents/webassembly.html @@ -16,9 +16,18 @@
wasm_exec.js
to execute the WebAssembly binaryOn a Unix/Linux shell:
-cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
+# Go 1.24 and newer
+cp $(go env GOROOT)/lib/wasm/wasm_exec.js .
+
+# Go 1.23 and older
+cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
On Windows PowerShell:
$goroot = go env GOROOT
+
+# Go 1.24 and newer
+cp $goroot\lib\wasm\wasm_exec.js .
+
+# Go 1.23 and older
cp $goroot\misc\wasm\wasm_exec.js .
Create this HTML:
diff --git a/contents/ja/documents/webassembly.html b/contents/ja/documents/webassembly.html index 8db3ae5..455654b 100644 --- a/contents/ja/documents/webassembly.html +++ b/contents/ja/documents/webassembly.html @@ -16,9 +16,18 @@wasm_exec.js
のコピーUnix/Linux シェルの場合:
-cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
+# Go 1.24 以後
+cp $(go env GOROOT)/lib/wasm/wasm_exec.js .
+
+# Go 1.23 以前
+cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
Windows PowerShell の場合:
$goroot = go env GOROOT
+
+# Go 1.24 以後
+cp $goroot\lib\wasm\wasm_exec.js .
+
+# Go 1.23 以前
cp $goroot\misc\wasm\wasm_exec.js .
次のような HTML を作成してください: