Skip to content
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

src: define per-isolate internal bindings registration callback #45547

Closed

Commits on Dec 19, 2022

  1. src: define per-isolate internal bindings registration callback

    Bindings that need to be loaded in distinct contexts of node::Realm in
    the same node::Environment instance needs to share the per-isolate
    templates.
    
    Add a new binding registration callback, which is called with
    per-IsolateData. This allows bindings to define templates and
    share them across realms eagerly, and avoid accidental modification on
    the templates when the per-context callback is called multiple times.
    
    This also tracks loaded bindings and built-in modules with node::Realm.
    legendecas committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    816f83a View commit details
    Browse the repository at this point in the history
  2. src: add worker per-isolate binding initialization

    Create worker binding templates in the per-isolate initialization.
    legendecas committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    f264321 View commit details
    Browse the repository at this point in the history