ES4 draft: Error classes

liorean liorean at gmail.com
Sun Mar 9 11:01:31 PDT 2008


> On Mar 9, 2008, at 3:31 AM, Michael Daumling wrote:
>  > line
>  >
>  > The initial value of the line prototype property is the line number of
>  > the executing code that created the Error instance. This is an integer
>  > value, starting with the number 1.

On 09/03/2008, Brendan Eich <brendan at mozilla.org> wrote:
> FYI, this property is named lineNumber in SpiderMonkey -- consonant
>  with fileName, if a bit verbose to match.

I remember writing an error handler that provided cross browser
as-much-information-as-the-browser-provides data about errors. (The
code is sadly gone together with the domain I used it on, however, so
I can't look it up.)

I recall there was some engine that used the name lineNo for that
(together with a property for getting the column number I think,
though I can't recall the name). There was also some engine using the
name source for the file name.
-- 
David "liorean" Andersson



More information about the Es4-discuss mailing list