source: trip-planner-front/node_modules/core-js/internals/engine-v8-version.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 595 bytes
Line 
1var global = require('../internals/global');
2var userAgent = require('../internals/engine-user-agent');
3
4var process = global.process;
5var Deno = global.Deno;
6var versions = process && process.versions || Deno && Deno.version;
7var v8 = versions && versions.v8;
8var match, version;
9
10if (v8) {
11 match = v8.split('.');
12 version = match[0] < 4 ? 1 : match[0] + match[1];
13} else if (userAgent) {
14 match = userAgent.match(/Edge\/(\d+)/);
15 if (!match || match[1] >= 74) {
16 match = userAgent.match(/Chrome\/(\d+)/);
17 if (match) version = match[1];
18 }
19}
20
21module.exports = version && +version;
Note: See TracBrowser for help on using the repository browser.