(file)
| 39 | |
| 40 | // Use nm -a to list symbols. |
| 41 | function checkFileUNIX (file) { |
| 42 | checkFile(file, 'nm', ['-a', file], (soFar, line) => { |
| 43 | if (soFar === undefined) { |
| 44 | line = line.match(/([0-9a-f]*)? ([a-zA-Z]) (.*$)/); |
| 45 | if (line[2] === 'U') { |
| 46 | if (/^napi/.test(line[3])) { |
| 47 | soFar = true; |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | return soFar; |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | // Use dumpbin /imports to list symbols. |
| 56 | function checkFileWin32 (file) { |