[PATCH] jscript: throw TypeError if T in 'new T' is not an object. [try 2]

Ricardo Filipe ricardojdfilipe at gmail.com
Fri Oct 1 05:37:29 CDT 2010


2010/10/1 Reece Dunn <msclrhd at googlemail.com>:
> Hi,
>
> try 1 -- throw TypeError if T in 'new T' is not an object.
> try 2 -- handle the case when using a null dispatch pointer: `new nullDisp;`
>
> NOTE: given `new 3;` the engine should report IDS_UNSUPPORTED_ACTION
> instead of IDS_NO_PROPERTY but this requires more changes to the code
> (constr.vt is VT_EMPTY in both of these cases in engine.c).
>
> - Reece
>
>
>
>

wouldn't this be more readable in separate lines? one less condition,
just repeating the VariantClear...



More information about the wine-devel mailing list