Skip to content

Commit 5dd84ad

Browse files
committed
compiler/natives/src/runtime: Stop using sys.DefaultGoroot.
It has been removed in go1.10beta2.
1 parent f287dbc commit 5dd84ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/natives/src/runtime/runtime.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ func GOROOT() string {
4343
if goroot != js.Undefined {
4444
return goroot.String()
4545
}
46-
return sys.DefaultGoroot
46+
// sys.DefaultGoroot is now gone, can't use it as fallback anymore.
47+
// TODO: See if a better solution is needed.
48+
return "/usr/local/go"
4749
}
4850

4951
func Breakpoint() {

0 commit comments

Comments
 (0)