aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-08-06 18:57:35 -0700
committerbors-servo <release+servo@mozilla.com>2013-08-06 18:57:35 -0700
commitff9e72a01351cd6407db8ead03df0b997e303053 (patch)
treeef25f969a8756f4bbec4dea05c846e76adebb80a /src/components/script/dom/bindings/utils.rs
parent956646a73d6b71a522d23d3e4d6c8dcb9d2dc383 (diff)
parent8e2c39d2dd29aefbadd5284ec94a1a9187eccf92 (diff)
downloadservo-ff9e72a01351cd6407db8ead03df0b997e303053.tar.gz
servo-ff9e72a01351cd6407db8ead03df0b997e303053.zip
auto merge of #679 : jdm/servo/morenodes, r=pcwalton
Nothing too exciting here.
Diffstat (limited to 'src/components/script/dom/bindings/utils.rs')
-rw-r--r--src/components/script/dom/bindings/utils.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/utils.rs b/src/components/script/dom/bindings/utils.rs
index cc1b09eb081..1d8d0b91f3d 100644
--- a/src/components/script/dom/bindings/utils.rs
+++ b/src/components/script/dom/bindings/utils.rs
@@ -617,7 +617,8 @@ pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: uint, _vp: *JSVal) ->
}
pub fn initialize_global(global: *JSObject) {
- let protoArray = @mut ([0 as *JSObject, ..33]); //XXXjdm PrototyepList::id::_ID_Count
+ let protoArray = @mut ([0 as *JSObject, ..35]);
+ assert!(protoArray.len() == PrototypeList::id::_ID_Count as uint);
unsafe {
//XXXjdm we should be storing the box pointer instead of the inner
let box = squirrel_away(protoArray);