We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed28d3e + f7f591e commit 36f1fdeCopy full SHA for 36f1fde
1 file changed
lib/runner.js
@@ -164,7 +164,13 @@ export default class Runner {
164
args = args.concat(scriptArgs);
165
166
const projectPath = this.getProjectPath || '';
167
- args = (args.map((arg) => this.fillVarsInArg(arg, codeContext, projectPath)));
+ args = args.map((arg) => {
168
+ if (typeof arg !== 'string') {
169
+ // TODO why this happens? // https://github.com/atom-community/atom-script/issues/2082
170
+ arg = '';
171
+ }
172
+ return this.fillVarsInArg(arg, codeContext, projectPath);
173
+ });
174
175
if (!this.scriptOptions.cmd) {
176
args = codeContext.shebangCommandArgs().concat(args);
0 commit comments