-
Notifications
You must be signed in to change notification settings - Fork 142
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
td.replace breaks subsequent require calls #103
Comments
There are three issues in the example above, and two of them will confound the third (which is a real issue)
Can you resolve the first two issues and retitle/redescribe the problem in those contexts? Otherwise I'll close and open a new one for it. |
Sure, I'll update it. |
Closing. Follow along in #107 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code example demonstrates the problem. Since
CantMakeHeadsOrTailsOfItError
is require'd after doing atd.replace
, it fails theinstanceof
check in the test.It seems unexpected that replacing a different module would have any effect on other modules require'd after it.
To be clear either removing the td.replace, or moving the require of the error to before the td.replace fixes the issue, so it is easy to work around.
Here is a runnable project with the full code example and failing test from above: https://github.com/scottaj/td-instanceof-example
The text was updated successfully, but these errors were encountered: