ES4 draft: Error classes

Garrett Smith dhtmlkitchen at gmail.com
Thu Mar 20 21:39:57 PDT 2008


On Tue, Mar 18, 2008 at 12:05 PM, Lars Hansen <lhansen at adobe.com> wrote:
> > -----Original Message-----
>  > From: Garrett Smith [mailto:dhtmlkitchen at gmail.com]
>  > Sent: 18. mars 2008 11:57
>  > To: Lars Hansen
>  > Cc: es4-discuss Discuss
>  > Subject: Re: ES4 draft: Error classes
>  >
>
>
> > On Mon, Mar 17, 2008 at 12:11 PM, Lars Hansen
>  > <lhansen at adobe.com> wrote:
>  > > (Didn't know who to follow up to so lamely following up to myself.)

>  > What does this have to do with getting a stack trace?
>
I see.

var color = el.style.color

where el is null, a ReferenceError would be thrown. It would be useful
to have a backwards-compatible way to get that stack trace. How can -
assert - be detected?

What about libraries that already have an assert() function?

"assert"in window?

Garrett

>  --lars
>



More information about the Es4-discuss mailing list