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

Function assertSymbolAreUnique

test/symbol.js:21–26  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

19 }
20
21 function assertSymbolAreUnique (symbol) {
22 const symbolOne = binding.symbol.createNewSymbolWithCppStr(symbol);
23 const symbolTwo = binding.symbol.createNewSymbolWithCppStr(symbol);
24
25 assert(symbolOne !== symbolTwo);
26 }
27
28 function assertSymbolIsWellknown (symbol) {
29 const symbOne = binding.symbol.getWellKnownSymbol(symbol);

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68