We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65cc77 commit 6e4bf95Copy full SHA for 6e4bf95
src/server/webkit.ts
@@ -224,9 +224,11 @@ const mkdtempAsync = platform.promisify(fs.mkdtemp);
224
const WEBKIT_PROFILE_PATH = path.join(os.tmpdir(), 'playwright_dev_profile-');
225
226
let cachedMacVersion: string | undefined = undefined;
227
-function getMacVersion() {
+
228
+function getMacVersion(): string {
229
if (!cachedMacVersion) {
230
const [major, minor] = execSync('sw_vers -productVersion').toString('utf8').trim().split('.');
231
+ assert(+major === 10 && +minor >= 14, 'Error: unsupported macOS version, macOS 10.14 and newer are supported');
232
cachedMacVersion = major + '.' + minor;
233
}
234
return cachedMacVersion;
0 commit comments