ES4 draft: Error classes
lhansen at adobe.com
Thu Mar 20 12:02:36 PDT 2008
> -----Original Message-----
> From: Mike Shaver [mailto:mike.shaver at gmail.com]
> Sent: 20. mars 2008 11:44
> To: Lars Hansen
> Cc: P T Withington; es4-discuss Discuss
> Subject: Re: ES4 draft: Error classes
> On Thu, Mar 20, 2008 at 12:52 PM, Lars Hansen
> <lhansen at adobe.com> wrote:
> > OK, that's good feedback. What's the SpiderMonkey syntax?
> > It would be better to go with something that is already in
> use, even
> > if I expect the proposal here is a little more elaborate.
> //@line 123 "awesomeLib.js"
> throw Error("ow");
> The error's line number is 123, file is "awesomeLib.js". We
> have some bits in there like a limit on the filename length
> (1024) and a cap on the line length (10x our "natural" line
> length, I think); eminently negotiable.
OK. We would need to accomodate other input sources than files at a
minimum, maybe an optional string at the end (the file name could be
> I'm not sure we turned it on for content, because of spoofing
> concerns, but I'm pretty sure we use it for our chrome.
If you could dig up a discussion thread or actual person to illuminate
that concern, it would probably be helpful. If nothing else, there
needs to be a note about it in the Standard to alert implementers and
More information about the Es4-discuss