Annex A of 5th Edition

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Sep 6 19:26:03 PDT 2012


On Sep 6, 2012, at 4:35 PM, Brendan Eich wrote:

> Allen Wirfs-Brock wrote:
>>> 
>>> 
>> 
>> According to the specification, those all should produce runtime ReferenceError exceptions.  However, at least Firefox, reports them as early syntax errors.  Technically, that is out of conformance with the spec.
> 
> Really? Clause 16 says:
> 
> "An implementation must treat any instance of the following kinds of errors as an early error:
> 
> * ...
> * Attempts to call PutValue on any value for which an early determination can be made that the value is
> not a Reference (for example, executing the assignment statement 3=4)."
> 
> How are we not conforming?

Correct, I forgot about clause 16.   Probably a good indication that some of these operators need an informative note referring to that Clause 16 requirement.


Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120906/c03534b6/attachment.html>


More information about the es-discuss mailing list