Sometimes the information returned by await getMachineInfo() looks like the example below.
{
nodeInfo: [
'Node',
'22.14.0',
'~\AppData\Local\fnm_multishells\19200_1763624547202\node.EXE'
],
osInfo: [ 'OS', 'Windows 10 10.0.19045' ],
cpuInfo: [ 'CPU', '(12) x64 12th Gen Intel(R) Core(TM) i5-12500' ],
chromeInfo: [ 'Chrome', '142.0.7444.163', 'N/A' ],
edgeInfo: [ 'Edge', [ 'Chromium (140.0.3485.54)' ], 'N/A' ],
firefoxInfo: undefined,
safariInfo: [ 'Safari', 'N/A' ],
playwrightBrowsers: 'chromium: 136.0.7103.25, firefox: 137.0, webkit: 18.4'
}
And the escapeHtml method will cause an immediate exit when handling data like edgeinfo.
functionescapeHtml(text){output.print(text)if(!text)return''conststring=text.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''')output.print(string)returnstring}
Sometimes the information returned by await getMachineInfo() looks like the example below.
{
nodeInfo: [
'Node',
'22.14.0',
'~\AppData\Local\fnm_multishells\19200_1763624547202\node.EXE'
],
osInfo: [ 'OS', 'Windows 10 10.0.19045' ],
cpuInfo: [ 'CPU', '(12) x64 12th Gen Intel(R) Core(TM) i5-12500' ],
chromeInfo: [ 'Chrome', '142.0.7444.163', 'N/A' ],
edgeInfo: [ 'Edge', [ 'Chromium (140.0.3485.54)' ], 'N/A' ],
firefoxInfo: undefined,
safariInfo: [ 'Safari', 'N/A' ],
playwrightBrowsers: 'chromium: 136.0.7103.25, firefox: 137.0, webkit: 18.4'
}
And the
escapeHtmlmethod will cause an immediate exit when handling data like edgeinfo.