Backed out changeset 84b4d4856e1e (bug 580033) due to orange.

This commit is contained in:
Jason Orendorff 2010-09-14 17:42:36 -07:00
parent 1491318f84
commit da3b6c1d0f

View File

@ -2089,9 +2089,6 @@ struct JSContext
/* 'regs' must only be changed by calling this function. */
void setCurrentRegs(JSFrameRegs *regs) {
this->regs = regs;
JSObject *obj = JS_GetGlobalForScopeChain(this);
compartment = obj ? obj->getCompartment(this) : runtime->defaultCompartment;
}
/* Temporary arena pool used while compiling and decompiling. */