(file)
| 54 | |
| 55 | // Use dumpbin /imports to list symbols. |
| 56 | function checkFileWin32 (file) { |
| 57 | checkFile(file, 'dumpbin', ['/imports', file], (soFar, line) => { |
| 58 | if (soFar === undefined) { |
| 59 | line = line.match(/([0-9a-f]*)? +([a-zA-Z0-9]) (.*$)/); |
| 60 | if (line && /^napi/.test(line[line.length - 1])) { |
| 61 | soFar = true; |
| 62 | } |
| 63 | } |
| 64 | return soFar; |
| 65 | }); |
| 66 | } |
| 67 | |
| 68 | // Descend into a directory structure and pass each file ending in '.node' to |
| 69 | // one of the above checks, depending on the OS. |