MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / checkFileUNIX

Function checkFileUNIX

tools/check-napi.js:41–53  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

39
40// Use nm -a to list symbols.
41function 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.
56function checkFileWin32 (file) {

Callers 1

recurseFunction · 0.85

Calls 1

checkFileFunction · 0.85

Tested by

no test coverage detected