Bug 1141863 - Followfollowfollowup: Remove redundant assert causing rooting hazards. (r=Waldo over IRC) CLOSED TREE
authorEric Faust <efaustbmo@gmail.com>
Thu, 08 Oct 2015 21:07:47 -0700
changeset 300408 4fed2969228466303141ed72f29cba5d123ea079
parent 300407 38f4ce29926d6336c00910f7795ee257be4eb704
child 300409 d01dd42e654b8735d86f9e7c723cc869a3b56798
child 300410 b29820b34e782252b464741603eb6f9e1a415fb2
push id5392
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:08:23 +0000
treeherdermozilla-beta@16ce8562a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs1141863
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1141863 - Followfollowfollowup: Remove redundant assert causing rooting hazards. (r=Waldo over IRC) CLOSED TREE
js/src/jit/VMFunctions.cpp
--- a/js/src/jit/VMFunctions.cpp
+++ b/js/src/jit/VMFunctions.cpp
@@ -571,17 +571,16 @@ CreateThis(JSContext* cx, HandleObject c
 
     if (callee->is<JSFunction>()) {
         JSFunction* fun = &callee->as<JSFunction>();
         if (fun->isInterpreted() && fun->isConstructor()) {
             JSScript* script = fun->getOrCreateScript(cx);
             if (!script || !script->ensureHasTypes(cx))
                 return false;
             if (script->isDerivedClassConstructor()) {
-                MOZ_ASSERT(fun->isClassConstructor());
                 rval.set(MagicValue(JS_UNINITIALIZED_LEXICAL));
             } else {
                 JSObject* thisObj = CreateThisForFunction(cx, callee, newTarget, GenericObject);
                 if (!thisObj)
                     return false;
                 rval.set(ObjectValue(*thisObj));
             }
         }