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

Function assertCanCreateOrFetchGlobalSymbols

test/symbol.js:40–45  ·  view source on GitHub ↗
(symbol, fetchFunction)

Source from the content-addressed store, hash-verified

38 }
39
40 function assertCanCreateOrFetchGlobalSymbols (symbol, fetchFunction) {
41 const symbOne = fetchFunction(symbol);
42 const symbTwo = fetchFunction(symbol);
43 assert(symbOne && symbTwo);
44 assert(symbOne === symbTwo);
45 }
46
47 assertCanCreateSymbol('testing');
48 assertSymbolAreUnique('symbol');

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68