Skip to content

esm: update outdated FIXME comment in translators.js#61715

Open
karan-lrn wants to merge 1 commit intonodejs:mainfrom
karan-lrn:esm-update-fixme-comment
Open

esm: update outdated FIXME comment in translators.js#61715
karan-lrn wants to merge 1 commit intonodejs:mainfrom
karan-lrn:esm-update-fixme-comment

Conversation

@karan-lrn
Copy link

No description provided.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. labels Feb 7, 2026
@karan-lrn
Copy link
Author

cc @nodejs/loaders @joyeecheung

// requires a separate cache to be populated as well as introducing several quirks. This is not ideal.
// NOTE: This re-invented require() is only used on the loader-hook worker thread.
// On the main thread, the authentic require() is used instead (fixed by #60380).
// Remaining quirks on the loader-hook thread: lacks require.cache, require.extensions.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Remaining quirks on the loader-hook thread: lacks require.cache, require.extensions.

There are a lot more quirks than this: https://nodejs.org/api/module.html#caveats-of-asynchronous-customization-hooks - the lack of require properties were less like quirks but intentional whennoeole people thought they should be eventually deprecated AFAIK.

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

Labels

esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants