Oct. 16, 2023
8:45 p.m.
Jacek Caban (@jacek) commented about dlls/jscript/array.c:
hres = jsdisp_propput_idx(array, k, mapped_value); if(FAILED(hres)) break; + new_len = k + 1; }
- if(SUCCEEDED(hres) && r) + if(SUCCEEDED(hres) && r) { + array_from_jsdisp(array)->length = new_len;
You could just pass 0 as length to `create_array` and `Array_on_put` will do the right thing. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4109#note_48842