[Constructor] and [NamedConstructor]

I've got the following comments on the LC draft (prompted by Alex 
Russell's recent email):

1) In §4.3.5 and §4.3.6 it might be helpful to add a note pointing out 
that these attributes create factory functions rather than true 
constructors, and that it is unnecessary and potentially inefficient to 
use the new keyword with them.  (Or perhaps the notes should go in 
§4.5.1.1 and §4.5.2 instead)

2) Step 5 in §4.5.2 defines t<sub>0</sub> through t<sub>n-1</sub>, but 
then they are never used in the algorithm.  I suspect that step 6 should 
change "to an IDL value" to "to an IDL value of type t<sub>i</sub>".

3) §4.5.2 doesn't say anything about the prototype property of a named 
constructor function.  Shouldn't it have one, and shouldn't it have the 
same value as the prototype property of the interface object?  (Note 
that FF and Chrome do not do this for Image(), but Safari does)

     David

Received on Thursday, 28 July 2011 23:06:18 UTC