| 64 | } |
| 65 | |
| 66 | Object InitSymbol(Env env) { |
| 67 | Object exports = Object::New(env); |
| 68 | |
| 69 | exports["createNewSymbolWithNoArgs"] = |
| 70 | Function::New(env, CreateNewSymbolWithNoArgs); |
| 71 | exports["createNewSymbolWithCppStr"] = |
| 72 | Function::New(env, CreateNewSymbolWithCppStrDesc); |
| 73 | exports["createNewSymbolWithCStr"] = |
| 74 | Function::New(env, CreateNewSymbolWithCStrDesc); |
| 75 | exports["createNewSymbolWithNapi"] = |
| 76 | Function::New(env, CreateNewSymbolWithNapiString); |
| 77 | exports["getWellKnownSymbol"] = Function::New(env, GetWellknownSymbol); |
| 78 | exports["getSymbolFromGlobalRegistry"] = |
| 79 | Function::New(env, FetchSymbolFromGlobalRegistry); |
| 80 | exports["getSymbolFromGlobalRegistryWithCKey"] = |
| 81 | Function::New(env, FetchSymbolFromGlobalRegistryWithCKey); |
| 82 | exports["getSymbolFromGlobalRegistryWithCppKey"] = |
| 83 | Function::New(env, FetchSymbolFromGlobalRegistryWithCppKey); |
| 84 | exports["getSymbolFromGlobalRegistryWithStringViewKey"] = |
| 85 | Function::New(env, FetchSymbolFromGlobalRegistryWithStringViewKey); |
| 86 | exports["testUndefinedSymbolCanBeCreated"] = |
| 87 | Function::New(env, TestUndefinedSymbolsCanBeCreated); |
| 88 | exports["testNullSymbolCanBeCreated"] = |
| 89 | Function::New(env, TestNullSymbolsCanBeCreated); |
| 90 | return exports; |
| 91 | } |