Skip to content

Commit 5c7bb2e

Browse files
committed
Do not print 'undefined' for legacy assembly formatter
1 parent 5b03410 commit 5c7bb2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function translateJsonCompilerOutput (output) {
150150

151151
function formatAssemblyText (asm, prefix, source) {
152152
if (typeof asm === typeof '' || asm === null || asm === undefined) {
153-
return prefix + asm + '\n';
153+
return prefix + (asm || '') + '\n';
154154
}
155155
var text = prefix + '.code\n';
156156
asm['.code'].forEach(function (item, i) {

0 commit comments

Comments
 (0)