diff --git a/src/unix.js b/src/unix.js index 93c770274..3403172ef 100644 --- a/src/unix.js +++ b/src/unix.js @@ -150,5 +150,5 @@ export function getShellName({ env, shell }, { resolveExecutable }) { * @returns {boolean} `true` if the shell is supported, `false` otherwise. */ export function isShellSupported(shellName) { - return getEscapeFunction(shellName, {}) !== undefined; + return getEscapeFunction(shellName) !== undefined; } diff --git a/src/win.js b/src/win.js index ee3a4396d..2a16d9845 100644 --- a/src/win.js +++ b/src/win.js @@ -133,5 +133,5 @@ export function getShellName({ env, shell }, { resolveExecutable }) { * @returns {boolean} `true` if the shell is supported, `false` otherwise. */ export function isShellSupported(shellName) { - return getEscapeFunction(shellName, {}) !== undefined; + return getEscapeFunction(shellName) !== undefined; }