Closed caspervonb closed 7 years ago
Program functions should be cached in the same way as call expressions are to maintain object identity.
e.g
module.exports = function() { console.log('beep'); };
This will work just fine, in most cases until a third party mutates the exported function as new revaluations will wipe the mutations.
Program functions should be cached in the same way as call expressions are to maintain object identity.
e.g
This will work just fine, in most cases until a third party mutates the exported function as new revaluations will wipe the mutations.