From 76a5e4586edd0041c7a2e23b08cbd202aa2ae8cf Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 25 Mar 2025 17:08:09 -0700 Subject: [PATCH] QuickJS: fixed compatibility with recent change in upstream. JS_VALUE_GET_OBJ(v) was made hidden in 156d981. --- src/qjs_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qjs_buffer.c b/src/qjs_buffer.c index dfe7b04d..48f609be 100644 --- a/src/qjs_buffer.c +++ b/src/qjs_buffer.c @@ -707,8 +707,8 @@ qjs_buffer_is_buffer(JSContext *ctx, JSValueConst this_val, proto = JS_GetPrototype(ctx, argv[0]); buffer_proto = JS_GetClassProto(ctx, QJS_CORE_CLASS_ID_BUFFER); - ret = JS_NewBool(ctx, JS_VALUE_GET_TAG(argv[0]) == JS_TAG_OBJECT && - JS_VALUE_GET_OBJ(buffer_proto) == JS_VALUE_GET_OBJ(proto)); + ret = JS_NewBool(ctx, JS_IsObject(argv[0]) + && qjs_is_same_value(ctx, proto, buffer_proto)); JS_FreeValue(ctx, buffer_proto); JS_FreeValue(ctx, proto); -- 2.47.3