Commit 6078b6b
committed
compiler/natives: use embed package
It's now possible to use the new embed package in the standard library
to simplify the implementation of natives.FS and reduce its dependence
on packages outside the standard library.
This also drops support for the gopherjsdev tag where the natives could
be read directly from disk without regenerating and rebuilding the
gopherjs binary. That mode is less helpful now that file changes can be
picked up just by rebuilding (without regenerating).
It also can't be made to work reliably in module mode since module mode
doesn't have the concept of a system-wide always-present workspace like
GOPATH mode had. One-off occasional needs can probably be better served
by temporary local code changes instead.1 parent 8f8b865 commit 6078b6b
File tree
5 files changed
+9
-1492
lines changed- build
- compiler/natives
- tests
5 files changed
+9
-1492
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
This file was deleted.
0 commit comments