]> Cypherpunks repositories - gostls13.git/commit
syscall/js: add package
authorRichard Musiol <mail@richard-musiol.de>
Sun, 4 Mar 2018 12:40:08 +0000 (13:40 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 3 May 2018 18:00:07 +0000 (18:00 +0000)
commit7b83636800f46a484287796e5d7a7838c17375b6
tree298592e2e1b63ecb5632d18c6a91ab6255c3ebf5
parent1e27e4807b3daf8c5e4f84823a1f3c588b773b8b
syscall/js: add package

This commit adds the syscall/js package, which is used by the wasm
architecture to access the WebAssembly host environment (and the
operating system through it). Currently, web browsers and Node.js
are supported hosts, which is why the API is based on JavaScript APIs.
There is no common API standardized in the WebAssembly ecosystem yet.

This package is experimental. Its current scope is only to allow
tests to run, but not yet to provide a comprehensive API for users.

Updates #18892

Change-Id: I236ea10a70d95cdd50562212f2c18c3db5009230
Reviewed-on: https://go-review.googlesource.com/109195
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/wasm/wasm_exec.js
src/go/build/deps_test.go
src/syscall/js/js.go [new file with mode: 0644]
src/syscall/js/js_js.s [new file with mode: 0644]
src/syscall/js/js_test.go [new file with mode: 0644]