Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cli/asc.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,6 @@ exports.main = function main(argv, options, callback) {

// Prepare output
if (!args.noEmit) {
let hasStdout = false;
let hasOutput = args.textFile != null
|| args.binaryFile != null
|| args.jsFile != null
|| args.tsdFile != null
|| args.idlFile != null;

if (args.outFile != null) {
if (/\.was?t$/.test(args.outFile) && args.textFile == null) {
args.textFile = args.outFile;
Expand All @@ -737,6 +730,13 @@ exports.main = function main(argv, options, callback) {
}
}

let hasStdout = false;
let hasOutput = args.textFile != null
|| args.binaryFile != null
|| args.jsFile != null
|| args.tsdFile != null
|| args.idlFile != null;

// Write binary
if (args.binaryFile != null) {
let basename = path.basename(args.binaryFile);
Expand Down