-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I ran into problems when trying to use this module. I added the following code for debugging:
var t = require('true');
var myTrueValue = t();
console.log(myTrueValue === true);I expected to see the program output true, but I instead saw false!
After spending hours tracing the problem down I found that another library was doing the following:
require.cache[require.resolve('true')].exports = function() {
return false;
};I'm not sure why this particular third party library is doing this, but I feel like something should be done to prevent it since truthiness being correct is very important for any application.
givanse, Nate-Wilkins, elbruno, RhysC, yankeehacker and 29 morepieterwillaert, Guy1524, pizzaminded, gagehenderson, habibillah and 3 moredittodhole, h3nr7, t-geindre, Kuzmin, tw0517tw and 9 moredittodhole, Guy1524, lukaslangrock and 7heMechtj-commits
Metadata
Metadata
Assignees
Labels
No labels