| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
can you also document Napi::Object::InstanceOf usage |
Sorry, something went wrong.
|
@devsnek I believe Napi::Object::InstanceOf is part of the wrapper not the core N-API. It should be documented here: https://github.com/nodejs/node-addon-api/blob/master/doc/object.md. It is currently empty but there is a push to add documentation there. |
Sorry, something went wrong.
| status = napi_instanceof(env, es_this, MyClass_constructor, &is_instance); | ||
| assert(napi_ok == status); | ||
| if (is_instance) { | ||
| // napi_unwrap() ... |
There was a problem hiding this comment.
Should indentation be two spaces here and a couple lines down?
Sorry, something went wrong.
| } | ||
| ``` | ||
|
|
||
| Of course the reference must be freed once it is no longer needed. |
There was a problem hiding this comment.
You can drop "Of course"
Sorry, something went wrong.
|
@cjihrig thanks for the comments will update to fix and then land when I'm back from vacation in a week. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Failure on Fedora looks unrelated Building addon /home/iojs/build/workspace/node-test-commit-linux/nodes/fedora24/test/addons-napi/7_factory_wrap/ env: ‘./node’: Permission denied Makefile:338: recipe for target 'test/addons-napi/.buildstamp' failed make[1]: *** [test/addons-napi/.buildstamp] Error 1 make[1]: *** Waiting for unfinished jobs.... Given that this is a doc change. |
Sorry, something went wrong.
PR-URL: nodejs#16699 Fixes: nodejs#13824 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes: #13824
Affected core subsystem(s)
doc