Bug 1016738 - Simplify/fix "dead compartment" logic (r=luke,jonco)
This commit is contained in:
@@ -2512,9 +2512,6 @@ JSObject::TradeGuts(JSContext *cx, JSObject *a, JSObject *b, TradeGutsReserved &
|
||||
bool
|
||||
JSObject::swap(JSContext *cx, HandleObject a, HandleObject b)
|
||||
{
|
||||
AutoMarkInDeadZone adc1(a->zone());
|
||||
AutoMarkInDeadZone adc2(b->zone());
|
||||
|
||||
// Ensure swap doesn't cause a finalizer to not be run.
|
||||
JS_ASSERT(IsBackgroundFinalized(a->tenuredGetAllocKind()) ==
|
||||
IsBackgroundFinalized(b->tenuredGetAllocKind()));
|
||||
|
||||
Reference in New Issue
Block a user