aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-08-22 16:19:10 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-08-22 16:19:10 -0400
commit1c087ab5076bbc1cdc04c46bc288ad1b2a865844 (patch)
tree44f2c25b1bf664715f3a0b70157904f522df4de2
parent0c50d4374f77a7d3b7a8a549859e537faae36b5e (diff)
downloadservo-1c087ab5076bbc1cdc04c46bc288ad1b2a865844.tar.gz
servo-1c087ab5076bbc1cdc04c46bc288ad1b2a865844.zip
Remove the hardcoded prototype count.
-rw-r--r--src/components/script/dom/bindings/utils.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/script/dom/bindings/utils.rs b/src/components/script/dom/bindings/utils.rs
index e20fdeba893..ffe04b39f44 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);