(firstLine, expected)
| 136 | } |
| 137 | |
| 138 | function versionCheck(firstLine, expected) { |
| 139 | // v8-version looks like |
| 140 | // "v8-version,$major,$minor,$build,$patch[,$embedder],$candidate" |
| 141 | // whereas process.versions.v8 is either "$major.$minor.$build-$embedder" or |
| 142 | // "$major.$minor.$build.$patch-$embedder". |
| 143 | firstLine = firstLine.split(','); |
| 144 | const curVer = expected.split(/[.-]/); |
| 145 | if ((firstLine.length !== 6 && firstLine.length !== 7) || |
| 146 | firstLine[0] !== 'v8-version') { |
| 147 | return 'Unable to read v8-version from log file.'; |
| 148 | } |
| 149 | // Compare major, minor and build; ignore the patch and candidate fields. |
| 150 | for (let i = 0; i < 3; i++) |
| 151 | if (curVer[i] !== firstLine[i + 1]) |
| 152 | return 'Testing v8 version different from logging version'; |
| 153 | } |
| 154 | |
| 155 | function macCppfiltNm(out) { |
| 156 | // Re-grouped copy-paste from `tickprocessor.js` |
no test coverage detected
searching dependent graphs…