1 var global = require('../internals/global');
2 var userAgent = require('../internals/engine-user-agent');
4 var process = global.process;
5 var versions = process && process.versions;
6 var v8 = versions && versions.v8;
10 match = v8.split('.');
11 version = match[0] + match[1];
12 } else if (userAgent) {
13 match = userAgent.match(/Edge\/(\d+)/);
14 if (!match || match[1] >= 74) {
15 match = userAgent.match(/Chrome\/(\d+)/);
16 if (match) version = match[1];
20 module.exports = version && +version;