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 @@ -10289,6 +10289,13 @@ bool JS_IsWeakSet(JSValueConst val)
10289
10289
return JS_VALUE_GET_OBJ(val)->class_id == JS_CLASS_WEAKSET;
10290
10290
}
10291
10291
10292
+ bool JS_IsWeakMap(JSValueConst val)
10293
+ {
10294
+ if (JS_VALUE_GET_TAG(val) != JS_TAG_OBJECT)
10295
+ return false;
10296
+ return JS_VALUE_GET_OBJ(val)->class_id == JS_CLASS_WEAKMAP;
10297
+ }
10298
+
10292
10299
bool JS_IsError(JSContext *ctx, JSValueConst val)
10293
10300
{
10294
10301
JSObject *p;
Original file line number Diff line number Diff line change @@ -834,6 +834,7 @@ 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
836
JS_EXTERN bool JS_IsWeakSet (JSValueConst val );
837
+ JS_EXTERN bool JS_IsWeakMap (JSValueConst val );
837
838
838
839
JS_EXTERN JSValue JS_NewArray (JSContext * ctx );
839
840
// takes ownership of the values
You can’t perform that action at this time.
0 commit comments