Skip to content

Conversation

@dmitshur
Copy link
Member

Also add support for syscall/js and start using it in the initial snippet.

Make various modernizations/improvements to the update.sh script.

Fixes#69.

/cc @hajimehoshi@slimsag

(See individual commits with descriptive commit messages.)

Also modify the default "hello world" snippet to use it, since it's a more general API. Modernize update.sh slightly to handle variability in environments better. Updates #69
Previously, the script relied on GOROOT not being user-writable and failed when that wasn't the case. This change makes it succeed in both cases. Fixes#69
GopherJS 1.12-2 has added support for syscall/js package, so it should be available as part of imports. The syscall/js API is not included in the GOROOT/api/go1.*.txt files at this time, and so it needs to be added to mkstdlib.go explicitly. Use the mkapi.go program to determine the syscall/js API. Regenerate zstdlib.go with the updated generator, using Go 1.12.13: go1.12.13 generate github.com/gopherjs/gopherjs.github.io/playground/internal/imports Updates golang/go#27590
Done on darwin/amd64 environment. Regenerated with: go get golang.org/dl/go1.12.13 go1.12.13 generate github.com/gopherjs/gopherjs.github.io/playground
@hajimehoshi
Copy link
Member

I'm not familiar with the playground, so I'll defer this to @slimsag

@dmitshur
Copy link
MemberAuthor

The playground doesn't really need much review (and we don't have much reviewer time available due to gopherjs/gopherjs#894), it just needs to continue to work. I've tested and will ensure it does.

If someone spots a problem in one of the commits, let me know, otherwise I plan to merge later today.

@dmitshurdmitshur merged commit bc5ba08 into masterDec 2, 2019
@dmitshurdmitshur deleted the update-latest branch December 2, 2019 02:25
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

playground: go generate fails when GOROOT is user-writeable.

3 participants

@dmitshur@hajimehoshi