Bug 1065185 - Explicitly expose indexed properties in COW array test. r=bz

This commit is contained in:
Bobby Holley 2014-10-01 15:25:01 +02:00
parent b14e0de123
commit 224ca3b8ef

View File

@ -80,7 +80,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=760109
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;