diff --git a/circle.yml b/circle.yml index f18e5345c..9fc449176 100644 --- a/circle.yml +++ b/circle.yml @@ -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 diff --git a/compiler/natives/runtime/pprof/pprof.go b/compiler/natives/runtime/pprof/pprof.go index 9d2d03f89..962f7cd19 100644 --- a/compiler/natives/runtime/pprof/pprof.go +++ b/compiler/natives/runtime/pprof/pprof.go @@ -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() {} diff --git a/compiler/natives/runtime/runtime.go b/compiler/natives/runtime/runtime.go index 83e66cfeb..de102f274 100644 --- a/compiler/natives/runtime/runtime.go +++ b/compiler/natives/runtime/runtime.go @@ -166,3 +166,7 @@ func Stack(buf []byte, all bool) int { func LockOSThread() {} func UnlockOSThread() {} + +func Version() string { + return theVersion +} diff --git a/compiler/natives/time/time.go b/compiler/natives/time/time.go index 403905b33..b3a0fd958 100644 --- a/compiler/natives/time/time.go +++ b/compiler/natives/time/time.go @@ -3,6 +3,7 @@ package time import ( + "errors" "strings" "github.com/gopherjs/gopherjs/js" @@ -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) +}