Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macros: create errors fully namespaced
Errors in `NAPI_THROW()` and Co. were being thrown as `Error:New(...)` but they should be thrown as `Napi::Error::New(...)` because the former assumes that the user has opted to declare `using namespace Napi;`. PR-URL: nodejs/node-addon-api#506 Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
- Loading branch information