Skip to content

Linked bindings initialization #44

Description

@kaero

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 receive v8::String as second argument instead of v8::Object instance of Module.

My question is: is it good idea to hack linked binding initialization to make to behave more like require + DLOpen (create instance of Module 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions