[Webkit-unassigned] [Bug 62897] Using "throw" doesn't result in url and line number being set in the exception.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 17 12:45:54 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62897





--- Comment #4 from Geoffrey Garen <ggaren at apple.com>  2011-06-17 12:45:54 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> > Seems like we could replace a thrown string with a string object, or a generic error object used to wrap primitive values.
> 
> That would be behavioural bug -- if you throw a string, the caught value remains a string.  We really just need to have an out of band mechanism for reporting where an exception came from.

We can distinguish between the value we pass to a catch block and the value we propagate as an exception. For example, in the generic error object design, we would unwrap the wrapped exception before running a catch block.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list