Remove some nonsense from JS_DefineDebuggerObject.
authorJason Orendorff <jorendorff@mozilla.com>
Tue, 05 Jul 2011 07:50:08 -0500
changeset 74498 f413efa2723b906d713a5d6425aac0156b0d3287
parent 74497 67018148d71d7504446d509b8452dc0d4fd6b4fe
child 74499 252709231d206c34f5d7b3e86981a9fa0772f179
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
milestone7.0a1
Remove some nonsense from JS_DefineDebuggerObject.
js/src/jsdbg.cpp
--- a/js/src/jsdbg.cpp
+++ b/js/src/jsdbg.cpp
@@ -2763,30 +2763,28 @@ JS_DefineDebuggerObject(JSContext *cx, J
 
     JSObject *debugCtor;
     JSObject *debugProto = js_InitClass(cx, obj, objProto, &Debugger::jsclass, Debugger::construct,
                                         1, Debugger::properties, Debugger::methods, NULL, NULL,
                                         &debugCtor);
     if (!debugProto || !debugProto->ensureClassReservedSlots(cx))
         return false;
 
-    JSObject *frameCtor;
     JSObject *frameProto = js_InitClass(cx, debugCtor, objProto, &DebuggerFrame_class,
                                         DebuggerFrame_construct, 0,
                                         DebuggerFrame_properties, DebuggerFrame_methods,
-                                        NULL, NULL, &frameCtor);
+                                        NULL, NULL);
     if (!frameProto)
         return false;
 
-    JSObject *scriptCtor;
     JSObject *scriptProto = js_InitClass(cx, debugCtor, objProto, &DebuggerScript_class,
                                          DebuggerScript_construct, 0,
                                          DebuggerScript_properties, DebuggerScript_methods,
-                                         NULL, NULL, &scriptCtor);
-    if (!scriptProto || !scriptProto->ensureClassReservedSlots(cx))
+                                         NULL, NULL);
+    if (!scriptProto)
         return false;
 
     JSObject *objectProto = js_InitClass(cx, debugCtor, objProto, &DebuggerObject_class,
                                          DebuggerObject_construct, 0,
                                          DebuggerObject_properties, DebuggerObject_methods,
                                          NULL, NULL);
     if (!objectProto)
         return false;