Lines Matching refs:result
764 // will result in error message that is weakly consumable.
1103 const result = spawn_sync.spawn(options);
1105 if (result.output && options.encoding && options.encoding !== 'buffer') {
1106 for (let i = 0; i < result.output.length; i++) {
1107 if (!result.output[i])
1109 result.output[i] = result.output[i].toString(options.encoding);
1113 result.stdout = result.output && result.output[1];
1114 result.stderr = result.output && result.output[2];
1116 if (result.error) {
1117 result.error = errnoException(result.error, 'spawnSync ' + options.file);
1118 result.error.path = options.file;
1119 result.error.spawnargs = ArrayPrototypeSlice(options.args, 1);
1122 return result;