From 9d4adb7f5daf46f36420534f5b69fda4484e4e13 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 4 Apr 2013 14:59:20 -0400 Subject: [PATCH] Fix bindings by storing correct vector type. --- src/servo/dom/bindings/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servo/dom/bindings/utils.rs b/src/servo/dom/bindings/utils.rs index 70105cf77db..11eabd1f8a4 100644 --- a/src/servo/dom/bindings/utils.rs +++ b/src/servo/dom/bindings/utils.rs @@ -540,7 +540,7 @@ pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: uint, _vp: *JSVal) -> } pub fn initialize_global(global: *JSObject) { - let protoArray = @mut ~[0 as *JSObject, ..3]; //XXXjdm prototypes::_ID_COUNT + let protoArray = @mut ([0 as *JSObject, ..3]); //XXXjdm prototypes::_ID_COUNT unsafe { //XXXjdm we should be storing the box pointer instead of the inner let box = squirrel_away(protoArray);