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

analysis of export all throws error when path is a directory #117

Closed
grahamdyson opened this issue Feb 14, 2020 · 1 comment
Closed

analysis of export all throws error when path is a directory #117

grahamdyson opened this issue Feb 14, 2020 · 1 comment

Comments

@grahamdyson
Copy link
Member

When the module path of export all is a directory an error is thrown and the process terminates:

export * from "directory";
Error: EISDIR: illegal operation on a directory, read

This scenario shouldn't terminate the process, this is the same behaviour as when a file doesn't exist. The directory should also be checked for an index file to support Node.js/CommonJS module resolution.

@grahamdyson
Copy link
Member Author

released in JavaScript 7.4.0

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

No branches or pull requests

1 participant