Add comments to baseBind use of arguments. [ci skip] [closes #416]

This commit is contained in:
John-David Dalton
2013-12-02 23:09:43 -08:00
parent c319bbc5f3
commit 10e7bb97ee
5 changed files with 136 additions and 124 deletions

View File

@@ -402,6 +402,9 @@
// `Function#bind` spec
// http://es5.github.io/#x15.3.4.5
if (partialArgs) {
// avoid `arguments` object deoptimizations by using `slice` instead
// of `Array.prototype.slice.call` and not assigning `arguments` to a
// variable as a ternary expression
var args = slice(partialArgs);
push.apply(args, arguments);
}