Chromium Code Reviews| Index: src/v8natives.js |
| =================================================================== |
| --- src/v8natives.js (revision 8285) |
| +++ src/v8natives.js (working copy) |
| @@ -1358,7 +1358,8 @@ |
| // Set the correct length. |
| var length = (this.length - argc_bound) > 0 ? this.length - argc_bound : 0; |
| %FunctionSetLength(result, length); |
| - |
| + %FunctionRemovePrototype(result); |
| + %FunctionSetBound(result); |
| return result; |
| } |