File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10282,6 +10282,13 @@ bool JS_IsWeakRef(JSValueConst val)
10282
10282
return JS_VALUE_GET_OBJ(val)->class_id == JS_CLASS_WEAK_REF;
10283
10283
}
10284
10284
10285
+ bool JS_IsWeakSet(JSValueConst val)
10286
+ {
10287
+ if (JS_VALUE_GET_TAG(val) != JS_TAG_OBJECT)
10288
+ return false;
10289
+ return JS_VALUE_GET_OBJ(val)->class_id == JS_CLASS_WEAKSET;
10290
+ }
10291
+
10285
10292
bool JS_IsError(JSContext *ctx, JSValueConst val)
10286
10293
{
10287
10294
JSObject *p;
Original file line number Diff line number Diff line change @@ -833,6 +833,7 @@ JS_EXTERN bool JS_IsRegExp(JSValueConst val);
833
833
JS_EXTERN bool JS_IsMap (JSValueConst val );
834
834
JS_EXTERN bool JS_IsSet (JSValueConst val );
835
835
JS_EXTERN bool JS_IsWeakRef (JSValueConst val );
836
+ JS_EXTERN bool JS_IsWeakSet (JSValueConst val );
836
837
837
838
JS_EXTERN JSValue JS_NewArray (JSContext * ctx );
838
839
// takes ownership of the values
You can’t perform that action at this time.
0 commit comments