Take new webkitPeerConnection("NONE", {}) for an example, the second parameter should be a callback function, if we run this test case in V8, it will threw no exception, since it will take {} as an ObjectType. But if we run this test case in JSC, it will threw an TYPE_MISMATCH_ERR, since it takes {} as a NullType. I am not sure which is correct, maybe we can have a discussion here.
{} is JavaScript for an empty object. An empty object shouldn't be callable, so I'd expect both bindings to throw a type error. Maybe we need to add a check for whether callbacks are actually callable?