diff --git a/test/test.js b/test/test.js index 9c88789c1..776cd0532 100644 --- a/test/test.js +++ b/test/test.js @@ -11377,6 +11377,17 @@ var modded = _.modArgs(fn, doubled, _.identity); deepEqual(modded(5), [10]); }); + + test('should not set a `this` binding', 1, function() { + var modded = _.modArgs(function(x) { + return this[x]; + }, function(x) { + return this === x; + }); + + var object = { 'modded': modded, 'false': 1 }; + strictEqual(object.modded(object), 1); + }); }()); /*--------------------------------------------------------------------------*/