mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 01:27:30 +09:00
Issue #1442 Follow-up: Fix debug assertion in JSFun
Change in d5020b69bd introduced a debug build crash, this fixes the crash by properly porting the changes to an assertion as mentioned in issue #2410.
This commit is contained in:
parent
0bcbbafa73
commit
10a37ae467
1 changed files with 1 additions and 5 deletions
|
|
@ -2424,11 +2424,7 @@ namespace detail {
|
|||
JS_PUBLIC_API(void)
|
||||
CheckIsValidConstructible(const Value& calleev)
|
||||
{
|
||||
JSObject* callee = &calleev.toObject();
|
||||
if (callee->is<JSFunction>())
|
||||
MOZ_ASSERT(callee->as<JSFunction>().isConstructor());
|
||||
else
|
||||
MOZ_ASSERT(callee->constructHook() != nullptr);
|
||||
MOZ_ASSERT(calleev.toObject().isConstructor());
|
||||
}
|
||||
|
||||
} // namespace detail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue