mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-01 18:58:29 +00:00
jscript: Fix PROP_DELETED handling in delete_prop.
This commit is contained in:
parent
8cd5eca45c
commit
26720d1c8b
|
@ -2029,7 +2029,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
|
|||
|
||||
static HRESULT delete_prop(dispex_prop_t *prop, BOOL *ret)
|
||||
{
|
||||
if(prop->type == PROP_PROTREF) {
|
||||
if(prop->type == PROP_PROTREF || prop->type == PROP_DELETED) {
|
||||
*ret = TRUE;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -1712,6 +1712,18 @@ try {
|
|||
}
|
||||
})();
|
||||
|
||||
(function() {
|
||||
function constr() {}
|
||||
constr.prototype = { prop: 1 };
|
||||
var o = new constr(), r;
|
||||
ok(o.prop === 1, "o.prop = " + o.prop);
|
||||
r = delete constr.prototype.prop;
|
||||
ok(r === true, "delete returned " + r);
|
||||
ok(o.prop === undefined, "o.prop = " + o.prop);
|
||||
r = delete o["prop"];
|
||||
ok(r === true, "delete returned " + r);
|
||||
})();
|
||||
|
||||
if (false)
|
||||
if (true)
|
||||
ok(false, "if evaluated");
|
||||
|
|
Loading…
Reference in a new issue