Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function promiseActualBinary(binary) {
return FxRunnerUtils.normalizeBinary(binary)
.then(binary => Fs.stat(binary).then(() => binary))
.catch(ex => {
if (ex.code === "ENOENT") {
throw new Error("Could not find ${binary}");
}
throw ex;
});
}
function promiseActualBinary(binary) {
return FxRunnerUtils.normalizeBinary(binary)
.then(binary => Fs.stat(binary).then(() => binary))
.catch(ex => {
if (ex.code === "ENOENT") {
throw new Error("Could not find ${binary}");
}
throw ex;
});
}
function promiseActualBinary (binary) {
return FxRunnerUtils.normalizeBinary(binary)
.then(binary => Fs.stat(binary).then(() => binary))
.catch(ex => {
if (ex.code === 'ENOENT') {
throw new Error('Could not find' + binary)
}
throw ex
})
}
const findFirefox = async binaryPath => {
const binary = await fxUtil.normalizeBinary(binaryPath)
if (fs.exists(binary)) {
return binary
} else {
throw new Error(`Could not find ${binaryPath}`)
}
}
function promiseActualBinary(binary) {
return FxRunnerUtils.normalizeBinary(binary)
.then(normalizedBinary =>
Fs.stat(normalizedBinary).then(() => normalizedBinary),
)
.catch(ex => {
if (ex.code === "ENOENT") {
throw new Error("Could not find ${binary}");
}
throw ex;
});
}