Force expected crashes on unexpected magic values
parent
2d009f3fa3
commit
e93b35424f
|
@ -567,8 +567,11 @@ class MOZ_NON_PARAM alignas(8) Value
|
|||
}
|
||||
|
||||
bool isMagic(JSWhyMagic why) const {
|
||||
MOZ_ASSERT_IF(isMagic(), data.s.payload.why == why);
|
||||
return isMagic();
|
||||
if (!isMagic()) {
|
||||
return false;
|
||||
}
|
||||
MOZ_RELEASE_ASSERT(data.s.payload.why == why);
|
||||
return true;
|
||||
}
|
||||
|
||||
JS::TraceKind traceKind() const {
|
||||
|
|
Loading…
Reference in New Issue