Implement WebIDL method overloads. Fixes #540.

This commit is contained in:
Josh Matthews 2013-06-27 18:41:06 +01:00
parent 213d9a011a
commit eb95d82fe6
11 changed files with 281 additions and 74 deletions

View file

@ -380,6 +380,7 @@ pub mod prototypes {
HTMLCollection,
Event,
EventTarget,
FormData,
_ID_Count
}
}
@ -582,7 +583,7 @@ pub extern fn ThrowingConstructor(_cx: *JSContext, _argc: uint, _vp: *JSVal) ->
}
pub fn initialize_global(global: *JSObject) {
let protoArray = @mut ([0 as *JSObject, ..6]); //XXXjdm prototypes::_ID_COUNT
let protoArray = @mut ([0 as *JSObject, ..7]); //XXXjdm prototypes::_ID_COUNT
unsafe {
//XXXjdm we should be storing the box pointer instead of the inner
let box = squirrel_away(protoArray);