commit | c8fb6ae617d65b42089202040d8fbd309d1a0fe4 | [log] [tgz] |
---|---|---|
author | Dmitri Shuralyov <dmitshur@golang.org> | Sat Dec 07 17:48:27 2024 -0500 |
committer | Gopher Robot <gobot@golang.org> | Sun Dec 08 15:34:47 2024 +0000 |
tree | 414d10a854283f561f456bb0e4dac26b58efedf6 | |
parent | 8c3e391573403cf1cf85b3256e99d0c0b7d79b3a [diff] |
lib/wasm: provide fs.constants.O_DIRECTORY definition CL 606658 added a constants.Get("O_DIRECTORY").Int() call at init time, which panics in browsers because O_DIRECTORY is undefined. It needs to be a JavaScript number to avoid that. Fixes #70723. Change-Id: I727240bd25b47401d14a5e1a364d460708803f1f Reviewed-on: https://go-review.googlesource.com/c/go/+/634455 TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Zxilly Chou <zhouxinyu1001@gmail.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.