]> git.kaiwu.me - quickjs.git/commitdiff
export JS_OrdinaryIsInstanceOf()
authorFabrice Bellard <fabrice@bellard.org>
Sat, 10 Oct 2026 14:39:27 +0000 (16:39 +0200)
committerFabrice Bellard <fabrice@bellard.org>
Sat, 10 Oct 2026 14:39:27 +0000 (16:39 +0200)
quickjs.c
quickjs.h

index 629e77323c66b2b149475ed5dc91783a5daeb1e4..9708737cd02fdaae7b42e46560064c75020066e3 100644 (file)
--- a/quickjs.c
+++ b/quickjs.c
@@ -8087,8 +8087,8 @@ static JSValue JS_GetPrototypeFree(JSContext *ctx, JSValue obj)
 }
 
 /* return TRUE, FALSE or (-1) in case of exception */
-static int JS_OrdinaryIsInstanceOf(JSContext *ctx, JSValueConst val,
-                                   JSValueConst obj)
+int JS_OrdinaryIsInstanceOf(JSContext *ctx, JSValueConst val,
+                            JSValueConst obj)
 {
     JSValue obj_proto;
     JSObject *proto;
index d6c48bace31dc10e3984088d31541c38507c9806..e0ce63ae7c1eb2b679824b5927ba5883617887f0 100644 (file)
--- a/quickjs.h
+++ b/quickjs.h
@@ -856,6 +856,8 @@ JSValue JS_EvalThis(JSContext *ctx, JSValueConst this_obj,
                     const char *input, size_t input_len,
                     const char *filename, int eval_flags);
 JSValue JS_GetGlobalObject(JSContext *ctx);
+int JS_OrdinaryIsInstanceOf(JSContext *ctx, JSValueConst val,
+                            JSValueConst obj);
 int JS_IsInstanceOf(JSContext *ctx, JSValueConst val, JSValueConst obj);
 int JS_DefineProperty(JSContext *ctx, JSValueConst this_obj,
                       JSAtom prop, JSValueConst val,