[PATCH v3 6/8] jscript: Return the correct string for Object.toString(null) in ES5+ modes.

Jacek Caban jacek at codeweavers.com
Fri Dec 10 14:16:57 CST 2021


On 12/7/21 8:10 PM, Gabriel Ivăncescu wrote:
> Signed-off-by: Gabriel Ivăncescu<gabrielopcode at gmail.com>
> ---
>
> I kept the check in Object_toString, because that's what the spec says and
> special cases before calling to_object, and it's changed from version ES3
> to ES5.


If 'this' is always an object in ES3, then how is it possible to reach 
this this condition? There is similar case in Error.toString in patch 4.


Thanks,

Jacek




More information about the wine-devel mailing list