mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
fa72b197d9
9 changed files with 52 additions and 68 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
include(../js-cxxflags.mozbuild)
|
||||
include('../js-cxxflags.mozbuild')
|
||||
|
||||
GeckoProgram('jsapi-tests', linkage=None)
|
||||
|
||||
|
|
|
|||
|
|
@ -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