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)
1028210282 return JS_VALUE_GET_OBJ(val)->class_id == JS_CLASS_WEAK_REF;
1028310283}
1028410284
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+
1028510292bool JS_IsError(JSContext *ctx, JSValueConst val)
1028610293{
1028710294 JSObject *p;
Original file line number Diff line number Diff line change @@ -833,6 +833,7 @@ JS_EXTERN bool JS_IsRegExp(JSValueConst val);
833833JS_EXTERN bool JS_IsMap (JSValueConst val );
834834JS_EXTERN bool JS_IsSet (JSValueConst val );
835835JS_EXTERN bool JS_IsWeakRef (JSValueConst val );
836+ JS_EXTERN bool JS_IsWeakSet (JSValueConst val );
836837
837838JS_EXTERN JSValue JS_NewArray (JSContext * ctx );
838839// takes ownership of the values
You can’t perform that action at this time.
0 commit comments