Fix compile error

This commit is contained in:
wuggy 2026-08-06 17:00:28 -07:00
commit 34040dee89

View file

@ -52,6 +52,12 @@ InitWeakRefClass(JSContext* cx, HandleObject obj);
extern JSObject*
InitBareWeakRefCtor(JSContext* cx, HandleObject obj);
static inline bool
CanBeHeldWeakly(const Value& value)
{
return value.isObject() || value.isSymbol();
}
} // namespace js
#endif /* builtin_WeakRefObject_h */