Property setters should not be called for bound arguments list entries.
[WebKit-https.git] / Source / JavaScriptCore / builtins / FunctionPrototype.js
index 879c902..f1ee867 100644 (file)
@@ -72,7 +72,7 @@ function bind(thisValue)
         numBoundArgs = argumentCount - 1;
         boundArgs = @newArrayWithSize(numBoundArgs);
         for (let i = 0; i < numBoundArgs; i++)
-            boundArgs[i] = arguments[i + 1];
+            @putByValDirect(boundArgs, i, arguments[i + 1]);
     }
 
     let length = 0;