1
0
mirror of https://github.com/golang/go synced 2024-11-25 15:27:57 -07:00
go/misc
Zxilly bcec5f1540 syscall,misc/wasm: fix path expansion on non-unix platforms
When running a go binary compiled to wasm using node.js on a Windows platform,
the absolute path passed in is also incorrectly forced to expand.

For example:

E:\Project\CS_Project\gsv\testdata\result.gob.gz

will results to

open C:\Users\zxilly\AppData\Local\wasm-exec\go1.23rc1\E:\Project\CS_Project\gsv\testdata\result.gob.gz: No such file or directory

C:\Users\zxilly\AppData\Local\wasm-exec\go1.23rc1 is the place of
wasm_exec_node.js

Fixes: #68820

Change-Id: Ic30c6242302f8915ac1b8ea9f24546935cbb791e
GitHub-Last-Rev: f35ff1a2ee
GitHub-Pull-Request: golang/go#68255
Reviewed-on: https://go-review.googlesource.com/c/go/+/595797
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2024-08-09 21:22:25 +00:00
..
cgo/gmp misc/cgo: move registerCgoTests tests to cmd/cgo/internal 2023-05-12 12:00:02 +00:00
chrome/gophertool docs: fix case of GitHub 2021-03-05 02:35:21 +00:00
go_android_exec os: add tests for UserCacheDir and UserConfigDir 2023-08-21 17:46:57 +00:00
ios misc/ios: rework exec wrapper to only support simulator 2024-06-18 16:32:49 +00:00
linkcheck all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
wasm syscall,misc/wasm: fix path expansion on non-unix platforms 2024-08-09 21:22:25 +00:00
editors
go.mod all: update go.mod go version to 1.22 2023-07-18 21:24:24 +00:00