mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
_.bind should throw a TypeError if func is not a function. [closes #213]
Former-commit-id: b6035736d9cb042b7fa4a9d0b7b4d9c6cb0ea4f8
This commit is contained in:
@@ -245,6 +245,10 @@
|
||||
|
||||
ok(new bound instanceof func);
|
||||
});
|
||||
|
||||
test('should throw a TypeError if `func` is not a function', function() {
|
||||
raises(function() { _.bind(); }, TypeError);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user