diff --git a/js/src/jit/CacheIR.cpp b/js/src/jit/CacheIR.cpp index e454a214fb4c..ca144f538425 100644 --- a/js/src/jit/CacheIR.cpp +++ b/js/src/jit/CacheIR.cpp @@ -6305,18 +6305,14 @@ bool CallIRGenerator::getTemplateObjectForScripted(HandleFunction calleeFunc, } } - JSObject* thisObject = + PlainObject* thisObject = CreateThisForFunction(cx_, calleeFunc, newTarget, TenuredObject); if (!thisObject) { return false; } MOZ_ASSERT(thisObject->nonCCWRealm() == calleeFunc->realm()); - - if (thisObject->is()) { - result.set(thisObject); - } - + result.set(thisObject); return true; }