We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa9d89 commit 78919e0Copy full SHA for 78919e0
compiler/natives/fs.go
@@ -21,9 +21,9 @@ func importPathToDir(importPath string) string {
21
}
22
23
// FS is a virtual filesystem that contains native packages.
24
-var FS = filter.New(
+var FS = filter.Keep(
25
http.Dir(importPathToDir("github.com/gopherjs/gopherjs/compiler/natives")),
26
func(path string, fi os.FileInfo) bool {
27
- return path != "/" && path != "/src" && !strings.HasPrefix(path, "/src/")
+ return path == "/" || path == "/src" || strings.HasPrefix(path, "/src/")
28
},
29
)
0 commit comments