Skip to content

Add initial support for Go 1.5. #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ machine:

dependencies:
pre:
- cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | sudo tar -xz && sudo chmod a+w go/src/path/filepath
- cd /usr/local && sudo rm -rf go && curl https://storage.googleapis.com/golang/go1.5beta1.linux-amd64.tar.gz | sudo tar -xz && sudo chmod a+w go/src/path/filepath
post:
- npm install --global node-gyp
- cd node-syscall && node-gyp rebuild && mkdir -p ~/.node_libraries/ && cp build/Release/syscall.node ~/.node_libraries/syscall.node
Expand Down
3 changes: 3 additions & 0 deletions compiler/natives/runtime/pprof/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ func WriteHeapProfile(w io.Writer) error {
func Lookup(name string) *Profile {
return nil
}

func StartTrace(w io.Writer) error { return nil }
func StopTrace() {}
4 changes: 4 additions & 0 deletions compiler/natives/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,7 @@ func Stack(buf []byte, all bool) int {
func LockOSThread() {}

func UnlockOSThread() {}

func Version() string {
return theVersion
}
5 changes: 5 additions & 0 deletions compiler/natives/time/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package time

import (
"errors"
"strings"

"github.com/gopherjs/gopherjs/js"
Expand Down Expand Up @@ -71,3 +72,7 @@ func stopTimer(t *runtimeTimer) bool {
t.active = false
return wasActive
}

func loadLocation(name string) (*Location, error) {
return nil, errors.New("unknown time zone " + name)
}