Skip to content

syscall: fs_js.go accesses a fs.O_DIRECTORY constant that's not defined in browsers #70723

Closed
@dmitshur

Description

@dmitshur

At Go tip, js/wasm programs inside a browser run into a panic during init of syscall package:

panic: syscall/js: call of Value.Int on undefined

goroutine 1 [running]:
syscall/js.Value.float({{}, 0x0, 0x0}, {0x1f10b5, 0x9})
	syscall/js/js.go:523 +0x10
syscall/js.Value.Int(...)
	syscall/js/js.go:540
syscall.init()
	syscall/fs_js.go:32 +0x37

I see the problem and sent CL 634455 to fix it.

CC @golang/js.

Metadata

Metadata

Assignees

Labels

FixPendingIssues that have a fix which has not yet been reviewed or submitted.NeedsFixThe path to resolution is known, but the work has not been done.OS-JSarch-wasmWebAssembly issuescompiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions