Extend baseCreateCallback to functions bound with native Function#bind and those with __bindData__ of false.

This commit is contained in:
John-David Dalton
2013-10-04 21:24:10 -07:00
parent e114c18031
commit fd2ddca6f2
8 changed files with 131 additions and 72 deletions

View File

@@ -385,8 +385,8 @@
if (typeof func != 'function') {
return identity;
}
// exit early if there is no `thisArg`
if (typeof thisArg == 'undefined') {
// exit early for no `thisArg` or already bound by `Function#bind`
if (typeof thisArg == 'undefined' || !('prototype' in func)) {
return func;
}
switch (argCount) {