Bug 761707 followup. Restore an assert that should not have gone away. r=ms2ger

This commit is contained in:
Boris Zbarsky 2012-06-08 17:42:51 -04:00
parent c124f95e06
commit bc4e7c1e12

View File

@ -70,6 +70,8 @@ template <class T>
inline T*
UnwrapDOMObject(JSObject* obj)
{
MOZ_ASSERT(IsDOMClass(JS_GetClass(obj)));
JS::Value val = js::GetReservedSlot(obj, DOM_OBJECT_SLOT);
// XXXbz/khuey worker code tries to unwrap interface objects (which have
// nothing here). That needs to stop.