mirror of
https://github.com/golang/go
synced 2024-11-17 13:25:15 -07:00
9ef61d58c0
In Webpack, require("fs") will always be empty. This behavior throws an error: "fs.writeSync is not function". It happens when you did "fmt.Println".
This PR avoids such problem and use polyfill in wasm_exec.js on Webpack.
Change-Id: I55f2c75ce86b7f84d2d92e8e217b5decfbe3c8a1
GitHub-Last-Rev:
|
||
---|---|---|
.. | ||
go_js_wasm_exec | ||
wasm_exec.html | ||
wasm_exec.js |