[Webkit-unassigned] [Bug 18774] SQUIRRELFISH: print meaningful error messages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 18 06:30:58 PDT 2008


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


oliver at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|webkit-                     |oliver at apple.com
                   |unassigned at lists.webkit.org |
  Attachment #22359|                            |review?
               Flag|                            |




------- Comment #7 from oliver at apple.com  2008-07-18 06:30 PDT -------
Created an attachment (id=22359)
 --> (https://bugs.webkit.org/attachment.cgi?id=22359&action=view)
Patch o' doom

Here we go, error messages that Do Not Suck (tm)

A few issues -- I haven't yet fixed all the error messages so some,
particularly syntax errors, still do not produce awe inspiring messages, but
hey have all the information required to do so.

All the standard errors are now good and wonderful, and all have the additional
character position information attached.

The error messages are currently of the form
> undefined.b++
TypeError: Result of expression 'undefined' [undefined] is not an object.
> undefined[0]
TypeError: Result of expression 'undefined' [undefined] is not an object.
> undefined()
TypeError: Result of expression 'undefined' [undefined] is not a function.
> new undefined()
TypeError: Result of expression 'undefined' [undefined] is not a constructor.
> 1 in undefined
TypeError: Result of expression 'undefined' [undefined] is not a valid argument
for 'in'.
> 1 instanceof undefined
TypeError: Result of expression 'undefined' [undefined] is not a valid argument
for 'instanceof'.
> 


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



More information about the webkit-unassigned mailing list