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.