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

fix(ext/node): process.getBuiltinModule #26833

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

littledivy
Copy link
Member

Closes #26832

return undefined;
}

Module.getBuiltinModule = getBuiltinModule;

Choose a reason for hiding this comment

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

Module.getBuiltinModule does not exist in Node.js

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

Comment on lines 1157 to 1158
assert(process.getBuiltinModule("fs"));
assertEquals(process.getBuiltinModule("something"), undefined);
Copy link
Member

Choose a reason for hiding this comment

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

Actually please add a test that uses node:fs too

@littledivy littledivy merged commit 43812ee into denoland:main Nov 13, 2024
17 checks passed
@nicolo-ribaudo
Copy link

Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

process.getBuiltinModule support
3 participants