mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
syscall/wasm: tempFs -> fs
This commit is contained in:
parent
1f622c4999
commit
aecc847e3f
|
@ -27,9 +27,9 @@
|
|||
}
|
||||
|
||||
if (!global.fs && global.require) {
|
||||
const tempFs = require("fs");
|
||||
if (Object.keys(tempFs) !== 0) {
|
||||
global.fs = tempFs;
|
||||
const fs = require("fs");
|
||||
if (Object.keys(fs) !== 0) {
|
||||
global.fs = fs;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue