diff options
Diffstat (limited to 'deps/v8/src/v8natives.js')
-rw-r--r-- | deps/v8/src/v8natives.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/v8natives.js b/deps/v8/src/v8natives.js index 18e56c38ef..6eb1371963 100644 --- a/deps/v8/src/v8natives.js +++ b/deps/v8/src/v8natives.js @@ -1105,7 +1105,7 @@ function FunctionBind(this_arg) { // Length is 1. throw new $TypeError('Bind must be called on a function'); } // this_arg is not an argument that should be bound. - var argc_bound = %_ArgumentsLength() - 1; + var argc_bound = (%_ArgumentsLength() || 1) - 1; if (argc_bound > 0) { var bound_args = new $Array(argc_bound); for(var i = 0; i < argc_bound; i++) { |