Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc/wasm: improve detection of Node.js
This commit adds a check of "process.title" to detect Node.js. The web app bundler Parcel sets "process" to an empty object. This incorrectly got detected as Node.js, even though the script was running in a browser. Fixes golang#28364. Change-Id: Iecac7f8fc3cc4ac7ddb42dd43c5385681a3282de Reviewed-on: https://go-review.googlesource.com/c/144658 Reviewed-by: Brad Fitzpatrick <[email protected]>
- Loading branch information