From: Fabrice Bellard Date: Mon, 3 Nov 2025 17:29:10 +0000 (+0100) Subject: fixed DataView resizing X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/stylesheets/print.css?a=commitdiff_plain;h=7cfddd06649c08c9dc10c65071ba71910e3de4aa;p=quickjs.git fixed DataView resizing --- diff --git a/quickjs.c b/quickjs.c index 1930c5d..b4020d0 100644 --- a/quickjs.c +++ b/quickjs.c @@ -55360,7 +55360,12 @@ static void js_array_buffer_update_typed_arrays(JSArrayBuffer *abuf) ta = list_entry(el, JSTypedArray, link); p = ta->obj; if (p->class_id == JS_CLASS_DATAVIEW) { - continue; + if (ta->track_rab) { + if (ta->offset < len) + ta->length = len - ta->offset; + else + ta->length = 0; + } } else { p->u.array.count = 0; p->u.array.u.ptr = NULL;