servo: Merge #599 - Bump protoArray size for WindowProxy (from kmcallister:proto-array); r=jdm
authorKeegan McAllister <kmcallister@mozilla.com>
Wed, 17 Jul 2013 17:42:47 -0700
changeset 333522 54dca980c892feed5be1e63f5db098ca24a07e08
parent 333521 5d28d0d019c11172cc5f89cff87192bb0e6f93a5
child 333523 d6b13c58ae5445d773b65e8c09ab9ac2b54792f3
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
servo: Merge #599 - Bump protoArray size for WindowProxy (from kmcallister:proto-array); r=jdm Fixes #596 @jdm r? Source-Repo: https://github.com/servo/servo Source-Revision: 073f4240aa381b02fa69971861e8fd77bf04f328
servo/src/components/script/dom/bindings/utils.rs
--- a/servo/src/components/script/dom/bindings/utils.rs
+++ b/servo/src/components/script/dom/bindings/utils.rs
@@ -611,17 +611,17 @@ fn CreateInterfacePrototypeObject(cx: *J
 }
 
 pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: uint, _vp: *JSVal) -> JSBool {
     //XXX should trigger exception here
     return 0;
 }
 
 pub fn initialize_global(global: *JSObject) {
-    let protoArray = @mut ([0 as *JSObject, ..21]); //XXXjdm PrototyepList::id::_ID_Count
+    let protoArray = @mut ([0 as *JSObject, ..22]); //XXXjdm PrototyepList::id::_ID_Count
     unsafe {
         //XXXjdm we should be storing the box pointer instead of the inner
         let box = squirrel_away(protoArray);
         let inner = ptr::to_unsafe_ptr(&(*box).payload);
         JS_SetReservedSlot(global,
                            DOM_PROTOTYPE_SLOT,
                            RUST_PRIVATE_TO_JSVAL(inner as *libc::c_void));
     }