Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Jan 21, 2024
1 parent 44a1990 commit 1269599
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/engines/javascriptcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ async function getVersionFromBuilder(builder) {
}

async function getMacBuilder() {
switch (await macName()) {
const name = await macName();
switch (name) {
case 'ventura':
return 706;
case 'monterey':
return 368;
case 'sonoma':
return 938;
default:
throw new Error(`Unknown macOS release: ${macName()}`);
throw new Error(`Unsupported macOS release: ${name}`);
}
}

Expand Down

0 comments on commit 1269599

Please sign in to comment.