From bc4e7c1e12e629aaf1be828ae80c44ba944cb161 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 8 Jun 2012 17:42:51 -0400 Subject: [PATCH] Bug 761707 followup. Restore an assert that should not have gone away. r=ms2ger --- dom/bindings/BindingUtils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h index 7a36e5fa096..122e49eed18 100644 --- a/dom/bindings/BindingUtils.h +++ b/dom/bindings/BindingUtils.h @@ -70,6 +70,8 @@ template 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.