@ -58,11 +58,11 @@ module.exports = function (source) {
}
const res = await execFile("go", ["build", "-o", outFile, parent], opts)
const result = await execFile("go", ["build", "-o", outFile, parent], opts)
.then(() => true)
.catch(e => e);
if (res instanceof Error) {
if (result instanceof Error) {
return cb(e);
return cb(result);
found = await fs.access(wasmSavePath).then(() => true).catch(() => false);