details: https://github.com/nginx/njs/commit/76a5e4586edd0041c7a2e23b08cbd202aa2ae8cf branches: master commit: 76a5e4586edd0041c7a2e23b08cbd202aa2ae8cf user: Dmitry Volyntsev <xei...@nginx.com> date: Tue, 25 Mar 2025 17:08:09 -0700 description: 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); _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel