Bug 1165052 - Part 8: Use ArraySpeciesCreate in Array.prototype.concat. r=efaust
☠☠ backed out by 64788d3e93a9 ☠ ☠
authorTooru Fujisawa <arai_a@mac.com>
Wed, 23 Dec 2015 13:30:47 +0900
changeset 290613 0c725d3463f112ca08e0c0a05537a6077a915723
parent 290612 aa59399ae8e09a153b63210b966c6364376c1e0c
child 290614 e49d0dfcaa5c7415c94b830e11dda40700522011
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersefaust
bugs1165052
milestone48.0a1
Bug 1165052 - Part 8: Use ArraySpeciesCreate in Array.prototype.concat. r=efaust
js/src/builtin/Array.js
--- a/js/src/builtin/Array.js
+++ b/js/src/builtin/Array.js
@@ -925,17 +925,17 @@ function ArraySpeciesCreate(originalArra
 
 // ES 2016 draft Mar 25, 2016 22.1.3.1.
 // Note: Array.prototype.concat.length is 1.
 function ArrayConcat(arg1) {
     // Step 1.
     var O = ToObject(this);
 
     // Step 2.
-    var A = std_Array(0);
+    var A = ArraySpeciesCreate(O, 0);
 
     // Step 3.
     var n = 0;
 
     // Step 4 (implicit in |arguments|).
 
     // Step 5.
     var i = 0, argsLen = arguments.length;