Bug 1065185 - Explicitly expose indexed properties in COW array test. r=bz
☠☠ backed out by 5c14c63b4c1a ☠ ☠
authorBobby Holley <bobbyholley@gmail.com>
Wed, 01 Oct 2014 15:25:01 +0200
changeset 208201 981c0b7c897d7a67e109b003364b9dd9a13c9628
parent 208200 903fbf9bb0c738ac8694225f2e612cc0de0ef8ab
child 208202 e2528549de9de753470749e3684a241e75443a11
push id27580
push userkwierso@gmail.com
push dateWed, 01 Oct 2014 23:26:55 +0000
treeherderautoland@af6c928893c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1065185
milestone35.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 1065185 - Explicitly expose indexed properties in COW array test. r=bz
js/xpconnect/tests/chrome/test_bug760109.xul
--- a/js/xpconnect/tests/chrome/test_bug760109.xul
+++ b/js/xpconnect/tests/chrome/test_bug760109.xul
@@ -75,17 +75,21 @@ https://bugzilla.mozilla.org/show_bug.cg
     this.baz = 4;
     this.__exposedProps__ = {foo: 'r', baz: 'rw'};
   }
   SomeConstructor.prototype.__exposedProps__ = {};
 
   const Cu = Components.utils;
   var sb = new Cu.Sandbox('http://www.example.org');
   sb.chromeArray = ['a', 'b', 'z'];
-  sb.chromeArray.__exposedProps__ = {};
+  sb.chromeArray.__exposedProps__ = { length: 'rw' };
+  for (var i = 0; i < 10; ++i) {
+    sb.chromeArray.__exposedProps__[i] = 'rw';
+  }
+
   sb.chromeObject = new SomeConstructor();
   sb.ok = ok;
   sb.is = is;
   Cu.evalInSandbox('(' + sandboxCode.toSource() + ')();', sb);
 
   ]]>
   </script>
 </window>