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 native re-requires #180

Closed
wants to merge 2 commits into from

Conversation

rosston
Copy link

@rosston rosston commented Nov 1, 2016

Fixes #178. As that issue mentions, native modules cannot be re-required after being deleted from the cache (see nodejs/node#6160).

I've kept the commits separate for now to show the failing test. I'd be happy to squash before (possible) merge.

Honestly, both my test and solution feel a little bit like hacks, but I'm not sure there's another way. Perhaps that's the nature of testing/messing with the require cache? Feedback is very welcome.

@rosston
Copy link
Author

rosston commented Nov 1, 2016

Looks like the native module used for testing (I've tried both iconv and native-module) won't build in Travis. I'm not sure how to handle that.

@rosston
Copy link
Author

rosston commented Nov 1, 2016

Closing because #181 fixes the underlying issue.

@rosston rosston closed this Nov 1, 2016
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.

1 participant