Skip to content

Commit

Permalink
Fix error with null stderr (#4322)
Browse files Browse the repository at this point in the history
* Fix error with null stderr

* Fix test
  • Loading branch information
RubenRBS committed Nov 22, 2022
1 parent f276f73 commit f4d3092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compilers/golang.ts
Expand Up @@ -210,7 +210,7 @@ export class GolangCompiler extends BaseCompiler {
}
const logging = this.extractLogging(out);
result.asm = this.convertNewGoL(out);
result.stderr = null;
result.stderr = [];
result.stdout = utils.parseOutput(logging, result.inputFilename);
return Promise.all([result, '']);
}
Expand Down
2 changes: 1 addition & 1 deletion test/golang-tests.js
Expand Up @@ -59,7 +59,7 @@ function testGoAsm(basefilename) {
return output.should.deep.equal({
asm: expectedOutput.join('\n'),
stdout: [],
stderr: null,
stderr: [],
});
});
}
Expand Down

0 comments on commit f4d3092

Please sign in to comment.