[PATCH v7 2/4] jscript: Store the proper 'this' object for bytecodes with named items.

Gabriel Ivăncescu gabrielopcode at gmail.com
Tue Mar 10 12:17:01 CDT 2020


On 10/03/2020 17:41, Jacek Caban wrote:
> On 10.03.2020 14:04, Gabriel Ivăncescu wrote:
>>       }
>> +    else if(bytecode->named_item) {
>> +        frame->this_obj = (bytecode->named_item->flags & 
>> SCRIPTITEM_CODEONLY)
>> +                          ? to_disp(bytecode->named_item->script_obj) 
>> : bytecode->named_item->disp;
>> +        IDispatch_AddRef(frame->this_obj);
>> +    }
> 
> 
> Is there any reason you're doing this here instead of interp_this?
> 
> 
> Thanks,
> 
> Jacek
> 

Probably not, I just forgot to rebase it when I did the change. I'll 
move it to interp_this, then, after I test it.



More information about the wine-devel mailing list