You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new static method to symbol and updated tests
Updated Symbol.md 's docs, added function overload for Symbol class and new tests
Remove extra space and comments
Remove un-necssary string initialization
Update PR based on comments received
Add test checking if it's possible to pass nullptr to Symbol::For method
Update Symbol::For implementations and added new tests
Remove default parameter
Update documentation for Symbol
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Symbol` object.
57
+
- `[in] description`: The C++ string representing the `Napi::Symbol` in the global registry to retrieve.
58
+
59
+
Searches in the global registry for existing symbol with the given name. If the symbol already exist it will be returned, otherwise a new symbol will be created in the registry. It's equivalent to Symbol.for() called from JavaScript.
0 commit comments