fix: 🐛 add default value to spawn options param (#3227)
This commit is contained in:
1 parent
f3968d353d
commit
4e7d6ba57e
1 file changed
+1
-1
@@ -54,7 +54,7 @@ module.exports = {
|
||||
* @param options
|
||||
* @param path
|
||||
*/
|
||||
spawn(command, options, path = boundaryPath) {
|
||||
spawn(command, options = {}, path = boundaryPath) {
|
||||
const { onClose, ...spawnOptions } = options;
|
||||
return new Promise((resolve, reject) => {
|
||||
const childProcess = spawn(path, command, spawnOptions);
|
||||
|
||||
Reference in new issue
Block a user