Bug 1074911 - Replace JS_ASSERT_IF by MOZ_ASSERT_IF. r=jorendorff
Apply the following script
sed -i '
/JS_ASSERT_IF(/ {
s/JS_ASSERT_IF(/MOZ_ASSERT_IF(/;
:b;
s/ \\$/\\/;
/;/ { p; d; };
n;
s/^/ /;
b b;
};
s/JS_ASSERT_IF (/MOZ_ASSERT_IF(/;
'
This commit is contained in:
@@ -28,7 +28,7 @@ WeakMapBase::WeakMapBase(JSObject *memOf, JSCompartment *c)
|
||||
next(WeakMapNotInList),
|
||||
marked(false)
|
||||
{
|
||||
JS_ASSERT_IF(memberOf, memberOf->compartment() == c);
|
||||
MOZ_ASSERT_IF(memberOf, memberOf->compartment() == c);
|
||||
}
|
||||
|
||||
WeakMapBase::~WeakMapBase()
|
||||
@@ -400,7 +400,7 @@ SetWeakMapEntryInternal(JSContext *cx, Handle<WeakMapObject*> mapObj,
|
||||
}
|
||||
|
||||
MOZ_ASSERT(key->compartment() == mapObj->compartment());
|
||||
JS_ASSERT_IF(value.isObject(), value.toObject().compartment() == mapObj->compartment());
|
||||
MOZ_ASSERT_IF(value.isObject(), value.toObject().compartment() == mapObj->compartment());
|
||||
if (!map->put(key, value)) {
|
||||
JS_ReportOutOfMemory(cx);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user