mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Force expected crashes on unexpected magic values.
This commit is contained in:
parent
eb32b5d7e4
commit
c6e54b5208
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue