ES4 draft: Error classes

liorean liorean at gmail.com
Sun Mar 9 07:45:30 PDT 2008


On 09/03/2008, Michael Daumling <mdaeumli at adobe.com> wrote:
>  What I would suggest is something along the following lines. It should
>  be made clear that these properties must be present, but that the actual
>  value of these properties are implementation dependent. This creates a
>  reliable framework for returning extended error information to be used
>  in error logging or error display.
>
>  fileName
>
>  The initial value of the fileName prototype property is an
>  implementation-defined string that reflects the name of the source file
>  containing the script that created the Error instance.
>
>  The implementation of this property is optional. If not implemented, the
>  value of this property is the empty string.
>
>  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.
>
>  The implementation of this property is optional. If not implemented,
>  than value of this property is zero.

How about javascript: urls; javascript in data: urls; javascript from
eval, setTimeout with string, setInterval with string, Function
constructor; javascript written directly into the page using DOM;
javascript written directly into the page using innerHTML?
-- 
David "liorean" Andersson



More information about the Es4-discuss mailing list