getResults = scripts => {
  return scripts.map(script => {
    const map = script.map ? new SDK.SourceMap('', '', script.map) : null;
    return {...detectLegacyJavaScript(script.code, map), snippet: script.code.slice(0, 20)};
  }).filter(result => result.matches.length);
}
@param {Array<{code: string, map?: LH.Artifacts.RawSourceMap}>} scripts
@return {import('../../lib/legacy-javascript/legacy-javascript.js').Result[]}