Commit 96faeb0b authored by Richard Musiol's avatar Richard Musiol Committed by Brad Fitzpatrick

misc/wasm: set non-empty default for os.Args

os.Args is usually never empty and the flag package panics if it is.
This commit makes os.Args default to ["js"] for js/wasm.

Change-Id: Iba527145686487b052da438fca40159e57e61a81
Reviewed-on: https://go-review.googlesource.com/117475Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent afae876b
......@@ -51,7 +51,7 @@
global.Go = class {
constructor() {
this.argv = [];
this.argv = ["js"];
this.env = {};
this.exit = (code) => {
if (code !== 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment