myitcv / gopherjs

A compiler from Go to JavaScript for running Go code in a browser
BSD 2-Clause "Simplified" License
21 stars 0 forks source link

compiler: support syscall/js #47

Closed myitcv closed 4 years ago

myitcv commented 4 years ago

This PR adds a new package syscall/js. Originally syscall/js is for WebAssembly, but in GopherJS this package works as a wrapper of github.com/gopherjs/gopherjs/js. With this package, developers can use syscall/js both for GopherJS and WebAssembly.

The implementation is basically same as github.com/gohperjs/gopherwasm.

This is entirely the work of @hajimehoshi.