-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
module.registerHooks() tracking issue #56241
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
cc @nodejs/loaders |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I have a WIP for the evaluate hook which already works for a mock of require-in-the-middle. Pending on resolution about whether/how ESM can play into it. Opened an issue in Chromium to discuss about ESM evaluation hook: https://issues.chromium.org/u/1/issues/384413088 (mutability of exports would probably be out of scope of V8 as that's mandated by the spec, but at least we can address the use case where the hook does not need to patch and simply wants to observe). |
Thanks for your great work! Are there any plans to officially support modifying the exports of builtins (to instrument them)? |
Uh oh!
There was an error while loading. Please reload this page.
module.registerHooks()
or Node.js in generalSymbol.dispose
integration (requested in implement module.registerHooks() to run synchronous module customization hooks in thread #55698 (comment))module.registerHooks()
is battle tested enough and should be preferred overmodule.register
to avoid various caveats (requested in implement module.registerHooks() to run synchronous module customization hooks in thread #55698 (comment) and implement module.registerHooks() to run synchronous module customization hooks in thread #55698 (review))node:builtin?param=val
module.register()
built on top ofmodule.registerHooks()
startGraph
hook proposed in Proposal: Moving hooks on thread loaders#205The text was updated successfully, but these errors were encountered: