Bug 1317394. Fix bustage on CLOSED TREE by changing an old test.
authorTom Schuster <evilpies@gmail.com>
Mon, 11 Sep 2017 19:04:20 +0200
changeset 429590 b7f103d256b97191fe58277fbb14028a9f5f8819
parent 429589 ffdc2bc309b730a65eb9bad813dab0165a4a2096
child 429591 963bf9d8573273894016e7082cb5f3fb85d80661
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1317394
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1317394. Fix bustage on CLOSED TREE by changing an old test.
js/src/tests/js1_8_5/extensions/clone-transferables.js
--- a/js/src/tests/js1_8_5/extensions/clone-transferables.js
+++ b/js/src/tests/js1_8_5/extensions/clone-transferables.js
@@ -61,25 +61,22 @@ function test() {
             var dataview = (ctor === DataView);
 
             var buf = new ArrayBuffer(size);
             var old_arr = new ctor(buf);
             var dv = new DataView(buf); // Second view
             var copy_arr = deserialize(serialize(old_arr, [ buf ], { scope }), { scope });
             assertEq(buf.byteLength, 0,
                      "donor array buffer should be detached");
-            assertEq(old_arr.byteLength, 0,
-                     "donor typed array should be detached");
             if (!dataview) {
+                assertEq(old_arr.byteLength, 0,
+                         "donor typed array should be detached");
                 assertEq(old_arr.length, 0,
                          "donor typed array should be detached");
             }
-            assertEq(dv.byteLength, 0,
-                     "all views of donor array buffer should have zero " +
-                     "length because their underlying buffer is detached");
 
             buf = null;
             old_arr = null;
             gc(); // Tickle the ArrayBuffer -> view management
         }
 
         // Mutate the buffer during the clone operation. The modifications should be visible.
         if (size >= 4) {