diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2025-03-25 17:08:09 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioexception@gmail.com> | 2025-03-25 18:59:11 -0700 |
commit | 76a5e4586edd0041c7a2e23b08cbd202aa2ae8cf (patch) | |
tree | 867f75dcf0335a9785e949f766f38cb0e4f14be1 /src | |
parent | 87086636eda9a967a44f8aa6b695dbfe916574a4 (diff) | |
download | njs-76a5e4586edd0041c7a2e23b08cbd202aa2ae8cf.tar.gz njs-76a5e4586edd0041c7a2e23b08cbd202aa2ae8cf.zip |
QuickJS: fixed compatibility with recent change in upstream.
JS_VALUE_GET_OBJ(v) was made hidden in 156d981.
Diffstat (limited to 'src')
-rw-r--r-- | src/qjs_buffer.c | 4 |
1 files 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); |