Closed rprieto closed 10 years ago
Thanks a lot for contributing!
No problem!
I found an issue with Buffer. I added test for demonstrate this:
it('Buffer is cloned', function () {
var a = { };
var b = { value: new Buffer('foo') };
extend(a, b);
a.value.write('bar');
b.value.toString().should.eql('foo');
});
https://github.com/unclechu/node-deep-extend/blob/master/test/index.spec.js
This issue is fixed now: https://github.com/unclechu/node-deep-extend/commit/d8f59706d9a8a8d12493797d65ee37d12e9f662c
This adds support for objects with
Buffer
values, for example:I also added unit tests to show it works: