File: error_wasm%2Bwindows.go

package info (click to toggle)
golang-github-evanw-esbuild 0.25.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,184 kB
  • sloc: javascript: 28,602; makefile: 856; sh: 17
file content (17 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//go:build (js && wasm) || windows
// +build js,wasm windows

package fs

import "syscall"

// This check is here in a conditionally-compiled file because Go's standard
// library for Plan 9 doesn't define a type called "syscall.Errno". Plan 9 is
// not a supported operating system but someone wanted to be able to compile
// esbuild for Plan 9 anyway.
func is_ERROR_INVALID_NAME(err error) bool {
	// This has been copied from golang.org/x/sys/windows
	const ERROR_INVALID_NAME syscall.Errno = 123

	return err == ERROR_INVALID_NAME
}