Generate bindings for HTMLImageElement.

This commit is contained in:
Josh Matthews 2013-08-06 17:06:12 -04:00
parent 65a33f60e5
commit 8e2c39d2dd
10 changed files with 184 additions and 10 deletions

View file

@ -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, ..34]); //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);