inputLines could be null

This commit is contained in:
2021-08-12 23:33:49 -06:00
parent e0d29b1714
commit 830ebb9633

View File

@@ -190,7 +190,7 @@ class CompilerTools {
}
// return an expression for a lambda that calls new Process() that runs the target-specific file
var callingCode = 'function (?inputLines:Array<String>) { return kiss.Prelude.assertProcess("$command", [haxe.io.Path.join(["${args.outputFolder}", "$mainClassName.$scriptExt"])].concat(inputLines)); }';
var callingCode = 'function (?inputLines:Array<String>) { if (inputLines == null) inputLines = []; return kiss.Prelude.assertProcess("$command", [haxe.io.Path.join(["${args.outputFolder}", "$mainClassName.$scriptExt"])].concat(inputLines)); }';
#if test
trace(callingCode);
#end