Ensure the internal stack argument of _.merge doesn't pave the 4th argument passed to it. [closes #69]

Former-commit-id: b33e1cb7795294b9481e2c9c6888d0f37419208d
This commit is contained in:
John-David Dalton
2012-09-07 21:09:21 -07:00
parent f7297b84e7
commit 958ac72805
2 changed files with 9 additions and 5 deletions

View File

@@ -1002,6 +1002,11 @@
var actual = _.merge(object, source);
equal(_.isArguments(actual.args), false);
});
test('should work with four arguments', function() {
var expected = { 'a': 4 };
deepEqual(_.merge({ 'a': 1 }, { 'a': 2 }, { 'a': 3 }, expected), expected);
});
}(1, 2, 3));
/*--------------------------------------------------------------------------*/