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

module: fixing url change in load sync hook chain #56402

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

awto
Copy link

@awto awto commented Dec 29, 2024

Fixes: #56376

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. labels Dec 29, 2024
Copy link
Contributor

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! It looks okay to me. The test is fine, but I think it could be improved/simplified.

I'm gonna tag the original author of this for review since she has more context than me.

lib/internal/modules/cjs/loader.js Show resolved Hide resolved
test/module-hooks/test-module-hooks-load-url-change.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CJS nextLoader callback in loader hook doesn't use changed URL
4 participants