Commit c35e5274 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

jscript: Forward actual error in to_primitive if it's not just missing prop.

parent 469219dc
......@@ -422,6 +422,9 @@ HRESULT to_primitive(script_ctx_t *ctx, jsval_t val, jsval_t *ret, hint_t hint)
}else {
IDispatch_Release(get_object(prim));
}
}else if(hres != DISP_E_UNKNOWNNAME) {
jsdisp_release(jsdisp);
return hres;
}
hres = jsdisp_get_id(jsdisp, hint == HINT_STRING ? L"valueOf" : L"toString", 0, &id);
......@@ -438,6 +441,9 @@ HRESULT to_primitive(script_ctx_t *ctx, jsval_t val, jsval_t *ret, hint_t hint)
}else {
IDispatch_Release(get_object(prim));
}
}else if(hres != DISP_E_UNKNOWNNAME) {
jsdisp_release(jsdisp);
return hres;
}
jsdisp_release(jsdisp);
......
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