Backed out changeset 0344adae92f3 (bug 1165052)
authorTooru Fujisawa <arai_a@mac.com>
Mon, 28 Mar 2016 06:49:56 +0900
changeset 290668 70de0d01ec44e7f40ff784bf3aab9fdc5e49cfd8
parent 290667 eab50485823b191b712479eb887c00ed21a0e5a5
child 290669 24ce44d6133013f942fa9c1bf5b641d468da0efc
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)
bugs1165052
milestone48.0a1
backs out0344adae92f3c3fe026a7c365689343cde287fe1
Backed out changeset 0344adae92f3 (bug 1165052)
js/src/builtin/Array.js
--- a/js/src/builtin/Array.js
+++ b/js/src/builtin/Array.js
@@ -871,63 +871,16 @@ function ArrayToString() {
 }
 
 // ES 2016 draft Mar 25, 2016 22.1.2.5.
 function ArraySpecies() {
     // Step 1.
     return this;
 }
 
-// ES 2016 draft Mar 25, 2016 9.4.2.3.
-function ArraySpeciesCreate(originalArray, length) {
-    // Step 1.
-    assert(typeof length == "number", "length should be a number");
-    assert(length >= 0, "length should be a non-negative number");
-
-    // Step 2.
-    if (length === -0)
-        length = 0;
-
-    // Step 4, 6.
-    if (!IsArray(originalArray))
-        return std_Array(length);
-
-    // Step 5.a.
-    var C = originalArray.constructor;
-
-    // Step 5.b.
-    if (IsConstructor(C) && IsWrappedArrayConstructor(C))
-        return std_Array(length);
-
-    // Step 5.c.
-    if (IsObject(C)) {
-        // Step 5.c.i.
-        C = C[std_species];
-
-        // Optimized path for an ordinary Array.
-        if (C === GetBuiltinConstructor("Array"))
-            return std_Array(length);
-
-        // Step 5.c.ii.
-        if (C === null)
-            return std_Array(length);
-    }
-
-    // Step 6.
-    if (C === undefined)
-        return std_Array(length);
-
-    // Step 7.
-    if (!IsConstructor(C))
-        ThrowTypeError(JSMSG_NOT_CONSTRUCTOR, "constructor property");
-
-    // Step 8.
-    return new C(length);
-}
-
 // 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);