[1/2] jscript: Support PROPERTYGET in Date Value

Jacek Caban jacek at codeweavers.com
Sun Dec 14 10:53:29 CST 2014


On 12/14/14 00:18, Alistair Leslie-Hughes wrote:
>     case INVOKE_PROPERTYGET:
> +    {
> +        DateInstance *date;
> +
> +        if(!(date = date_this(jsthis)))
> +            return throw_type_error(ctx, JS_E_DATE_EXPECTED, NULL);

It's guaranteed that jsthis is of DataInstance type in case of *_value
functions, so there is no need to check that in runtime. You may simply
cast it here.

Jacek



More information about the wine-patches mailing list