Commit 853e795
committed
compiler: Restore previous behavior of skipping unsafe import.
If its code were to be generated, package unsafe ends up largely empty:
$packages["unsafe"] = (function() {
var $pkg = {}, $init;
$init = function() {
$pkg.$init = function() {};
...
};
$pkg.$init = $init;
return $pkg;
})();
It contains an empty (aside from goroutine/blocking bookkeeping code) init
function, and that's the only thing that gets called by other packages.
So, we don't want to start including it. This change restores the previous
behavior (with Go 1.8) of skipping it.
Helps gopherjs/gopherjs.github.io#67 (comment).
Related to https://golang.org/cl/37694.1 parent ac3a68a commit 853e795
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
0 commit comments