Commit 693c6925 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Fix array.reverse implementation.

parent db3d756c
......@@ -473,11 +473,11 @@ static HRESULT Array_reverse(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISP
l = length-k-1;
hres1 = jsdisp_propget_idx(jsthis, k, &v1, ei, sp);
if(FAILED(hres1))
if(FAILED(hres1) && hres1!=DISP_E_UNKNOWNNAME)
return hres1;
hres2 = jsdisp_propget_idx(jsthis, l, &v2, ei, sp);
if(FAILED(hres2)) {
if(FAILED(hres2) && hres2!=DISP_E_UNKNOWNNAME) {
VariantClear(&v1);
return hres2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment