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

Additional native module arguments #310

Closed
gabrielschulhof opened this issue Apr 28, 2018 · 2 comments
Closed

Additional native module arguments #310

gabrielschulhof opened this issue Apr 28, 2018 · 2 comments

Comments

@gabrielschulhof
Copy link
Collaborator

It currently (seems to) provide no way to get the "require", "__dirname",
and "__filename" arguments of a Node.js module. If the native code is a
Node.js module there should probably be some way to retrieve such values
(which may be used with the above "executing JavaScript codes" during the
initialization).

Re: nodejs/node#14256

We discussed that native modules are always fronted by JS modules, so we need not worry about JS-module-specific things. We can close this issue if we decide that our earlier conclusion covers this comment.

@mhdawson
Copy link
Member

@gabrielschulhof I think since we've not revisited this for a number of years we can assume our earlier conclusion covers the comment and close this issue. What do you think?

@mhdawson
Copy link
Member

mhdawson commented Dec 3, 2021

We've had a few related discussions but there have been alternate solutions in those cases so we agreed to close in today's Node-API meeting.

@mhdawson mhdawson closed this as completed Dec 3, 2021
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

No branches or pull requests

2 participants