]> Cypherpunks repositories - gostls13.git/commit
misc/wasm: use "self" instead of "window" in web worker contexts
authorJohn Leidegren <john.leidegren@gmail.com>
Tue, 3 Jul 2018 10:08:37 +0000 (12:08 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 5 Jul 2018 01:42:17 +0000 (01:42 +0000)
commit9e5fe6baf1dfd8ea7ba1456845a7e1f7256eeeaa
tree8a18505de2a9f095d4bf6a45a8827953c347bbd4
parent7145f1c7c7dcd4506f2819166f073e92f57afbb7
misc/wasm: use "self" instead of "window" in web worker contexts

There is no "window" global in a web worker context. Use "self" instead.

Fixes #26192

Change-Id: I6c6f3db6c3d3d9ca00a473f8c18b849bc07a0017
Reviewed-on: https://go-review.googlesource.com/122055
Run-TryBot: Richard Musiol <neelance@gmail.com>
Reviewed-by: Richard Musiol <neelance@gmail.com>
misc/wasm/wasm_exec.js