Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | 2x 2x 2x 2x 34x 34x 34x 2x 2x 2x | const fs = require('fs');
const path = require('path');
const agents = fs.readdirSync(path.join(__dirname, "agents"));
const hostAgents = agents.reduce((accum, agent) => {
const host = agent.slice(0, -3);
accum[host] = host;
return accum;
}, {});
// Inline commented hosts are here to document the
// hosts that are created by scanning the ./agents
// directory.
const supportedHostsMap = Object.assign({
/* Shells */
// chakra: 'chakra',
ch: 'chakra',
engine262: 'engine262',
// graaljs: 'graaljs',
javascriptcore: 'jsc',
// jsc: 'jsc',
// jsshell: 'jsshell',
// nashorn: 'nashorn',
// node: 'node',
// qjs: 'qjs',
sm: 'jsshell',
spidermonkey: 'jsshell',
// d8: 'd8',
v8: 'd8',
// xs: 'xs',
graaljs: 'graaljs',
/* Browsers */
// chrome: 'chrome',
// edge: 'edge',
// firefox: 'firefox',
// remote: 'remote',
// safari: 'safari',
}, hostAgents);
const supportedHosts = Object.keys(supportedHostsMap);
module.exports = {
supportedHostsMap,
supportedHosts,
};
|