mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Fix compile error
This commit is contained in:
parent
c835378c6e
commit
34040dee89
1 changed files with 6 additions and 0 deletions
|
|
@ -52,6 +52,12 @@ InitWeakRefClass(JSContext* cx, HandleObject obj);
|
||||||
extern JSObject*
|
extern JSObject*
|
||||||
InitBareWeakRefCtor(JSContext* cx, HandleObject obj);
|
InitBareWeakRefCtor(JSContext* cx, HandleObject obj);
|
||||||
|
|
||||||
|
static inline bool
|
||||||
|
CanBeHeldWeakly(const Value& value)
|
||||||
|
{
|
||||||
|
return value.isObject() || value.isSymbol();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace js
|
} // namespace js
|
||||||
|
|
||||||
#endif /* builtin_WeakRefObject_h */
|
#endif /* builtin_WeakRefObject_h */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue