Comments (5)
Now have a refurbished 8_passing_wrapped. Hopefully 7_factory_wrap soon as well
from node-addon-examples.
Provided I didn't break the spirit of the 7_factory_wrap example I now have it running too
from node-addon-examples.
Nope I think I got the 7_factory_wrap example spirit preserved!
Local<FunctionTemplate> tpl=Local<FunctionTemplate>::New(v8::Isolate::GetCurrent(), constructor);
Where constructor is the Persistent<FunctionTemplate>
holding the fully initialized javascript and prototype;
This Local<FunctionTemplate>::New
is very important because it preserves exposed prototype methods. Probably is the last key needed to refurbish the node-occ project that I picked to learn v8 and nodejs native addons
from node-addon-examples.
@nodejs/n-api Since 0.11 is unsupported, even as examples in this repository (which seems to still support 0.10 and 0.12, if I understand correctly?), should this be closed?
Regardless of the answer, is it worth doing a quick triage of the 35 open issues here to see which ones are still issues?
from node-addon-examples.
You can close this. I recently has removed the deprecated example.
Regardless of the answer, is it worth doing a quick triage of the 35 open issues here to see which ones are still issues?
+1
from node-addon-examples.
Related Issues (20)
- How to create a C++ array then returns it to NodeJS? HOT 2
- How to cast an array to an string array?
- Multiple classes (wrapped objects) HOT 4
- C1083: Cannot open include file: 'napi.h': No such file or directory HOT 4
- How to use boolean in node_api.h? HOT 1
- Non ascii as function argument not working HOT 1
- How to add C++ library?
- Share memory between worker threads HOT 1
- /nix/store/v8imx1nvyz0hgvx9cbcmh6gp4ngw3ffj-binutils-2.35.1/bin/ld: /nix/store/9bh3986bpragfjmr32gay8p95k91q4gy-glibc-2.33-47/lib/crt1.o: in function `_start': /build/glibc-2.33/csu/../sysdeps/x86_64/start.S:104: undefined reference to `main' /nix/store/v8imx1nvyz0hgvx9cbcmh6gp4ngw3ffj-binutils-2.35.1/bin/ld: /tmp/ccSAJfYK.o: in function `Init': main.c:(.text+0x6c): undefined reference to `napi_define_properties' /nix/store/v8imx1nvyz0hgvx9cbcmh6gp4ngw3ffj-binutils-2.35.1/bin/ld: /tmp/ccSAJfYK.o: in function `Method': main.c:(.text+0xe4): undefined reference to `napi_create_string_utf8' /nix/store/v8imx1nvyz0hgvx9cbcmh6gp4ngw3ffj-binutils-2.35.1/bin/ld: /tmp/ccSAJfYK.o: in function `_register_NODE_GYP_MODULE_NAME': main.c:(.text.startup+0x8): undefined reference to `napi_module_register' collect2: error: ld returned 1 exit status make: *** [Makefile:2: all] Error 1
- returning synchronous array in c++ addon HOT 10
- Add example that uses NODE_API_ADDON for addon registration HOT 3
- Node.js C++ Addon Documentation HOT 3
- Using NAPI with SIMD and pthreads
- With the `node-addon` I don't get any errors but the React Page doesn't show up
- Please add samples for languages like Go and Rust HOT 2
- Error binding C++ class member function as a method of an object with node-addon-api
- Improve `AsyncWorker` example handling `Object/Buffer/Uint8Array` as parameter HOT 2
- Migration tutorial fails without python2
- [Question] Why are the return values โโof the two functions different? HOT 1
- Some examples fail on msys2/mingw
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-addon-examples.