chore: bump chromium to 93.0.4550.0 (main) (#29751)

This commit is contained in:
electron-roller[bot] 2021-06-22 12:17:16 -07:00 committed by GitHub
parent c5066cce22
commit b8261f1591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 402 additions and 429 deletions

View file

@ -1273,8 +1273,15 @@ describe('app module', () => {
});
const [exitCode] = await emittedOnce(appProcess, 'exit');
if (exitCode === 0) {
// return info data on successful exit
return JSON.parse(gpuInfoData);
try {
const [, json] = /HERE COMES THE JSON: (.+) AND THERE IT WAS/.exec(gpuInfoData)!;
// return info data on successful exit
return JSON.parse(json);
} catch (e) {
console.error('Failed to interpret the following as JSON:');
console.error(gpuInfoData);
throw e;
}
} else {
// return error if not clean exit
return Promise.reject(new Error(errorData));