justmoon/node-extend

error in code causes deep extend to blow up

alexjeffburke opened this issue · 2 comments

Hi,

The body of the method (in the deep extend branch of the loop) refers to a function extend() but you never declare this. I believe the correct fix is to do the following:

var extend = module.exports = function() { // ...

Thanks, Alex J Burke.

"extend" is the name of the function, which is a valid reference to the function, from inside it, in all JS engines.

Please reopen if you can provide a way to reproduce the error.