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

Function assertCanCreateSymbol

test/symbol.js:15–19  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

13 }
14
15 function assertCanCreateSymbol (symbol) {
16 assert(binding.symbol.createNewSymbolWithCppStr(symbol) !== null);
17 assert(binding.symbol.createNewSymbolWithCStr(symbol) !== null);
18 assert(binding.symbol.createNewSymbolWithNapi(symbol) !== null);
19 }
20
21 function assertSymbolAreUnique (symbol) {
22 const symbolOne = binding.symbol.createNewSymbolWithCppStr(symbol);

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68