-
Notifications
You must be signed in to change notification settings - Fork 294
Linked bindings initialization #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@indutny Hi, Fedor! Can you help me to find anyone interested in this discussion? Is it right place for it? |
@kaero I think it is a plain bug, and it should be receiving a |
Please feel free to file an issue for this. |
And don't forget to cc me there ;) I'm going to take a look at it. |
btw, it's only part my question. Second one is about usage of |
I think the second question could be answered in a following way: please file an additional issue and cc me ;) It probably just needs a documentation listing its signature and action, but it should be quite safe to use. Also, if it will get a doc - we will consider removing underscore. |
Hi!
We've used linked bindings to compile single statically linked node binary for deployment, so i've a question about difference in the initialization process for built-in bindings, linked bindings and native extensions as dynamic libraries.
As far as i can see, linked binding initialization works more like built-in native modules init: module can be called using
process._linkedBinding()
and initialization function receivev8::String
as second argument instead ofv8::Object
instance ofModule
.My question is: is it good idea to hack linked binding initialization to make to behave more like
require + DLOpen
(create instance ofModule
and pass it to initialization function) or it's reserved for some internal needs? Maybe where is another, less "private" way to have native extensions as compiled-in modules?The text was updated successfully, but these errors were encountered: