From 1c087ab5076bbc1cdc04c46bc288ad1b2a865844 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 22 Aug 2013 16:19:10 -0400 Subject: [PATCH] Remove the hardcoded prototype count. --- src/components/script/dom/bindings/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/script/dom/bindings/utils.rs b/src/components/script/dom/bindings/utils.rs index e20fdeba893a..ffe04b39f449 100644 --- a/src/components/script/dom/bindings/utils.rs +++ b/src/components/script/dom/bindings/utils.rs @@ -624,8 +624,7 @@ pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: uint, _vp: *JSVal) -> } pub fn initialize_global(global: *JSObject) { - let protoArray = @mut ([0 as *JSObject, ..53]); - assert!(protoArray.len() == PrototypeList::id::_ID_Count as uint); + let protoArray = @mut ([0 as *JSObject, ..PrototypeList::id::_ID_Count as uint]); unsafe { //XXXjdm we should be storing the box pointer instead of the inner let box = squirrel_away(protoArray);