Ensure _.bindKey funcs call object[key] when called with the new operator.

This commit is contained in:
John-David Dalton
2015-11-19 22:43:43 -08:00
parent 3ecf626ad0
commit a562a20b4e
2 changed files with 30 additions and 2 deletions

View File

@@ -4084,7 +4084,7 @@
args.length = ary;
}
if (this && this !== root && this instanceof wrapper) {
fn = Ctor || createCtorWrapper(func);
fn = Ctor || createCtorWrapper(fn);
}
return fn.apply(thisBinding, args);
}