ES4 draft: assert expression

P T Withington ptw at
Fri Apr 11 12:46:13 PDT 2008

Is there any way the value thrown in the 1-arg case could be the  
'text' of arg1?  It's so painful to get an assertion and not know what  
it is...

On 2008-04-11, at 13:16 EDT, Lars Hansen wrote:
> We talked about debugging information and an assertion form on
> es4-discuss a while ago, in a thread about the Error object.  As a
> result of that discussion, I'm sending out a draft for an "assert"
> expression form.  In addition, the Error object draft will be  
> updated to
> accomodate a new subclass AssertionExpression, and a simple standard  
> for
> debugging information will be added to the description of the Error
> classes.
> The last detail from that discussion, about providing a way for  
> programs
> to set the source origin and line numbers -- aiding translators -- is
> still open, but I am aware of how desirable this is for certain
> applications.
> Anyhow, here's the first draft spec for the assert expression.
> --lars
> <assert.html>_______________________________________________
> Es4-discuss mailing list
> Es4-discuss at

More information about the Es4-discuss mailing list