[Webkit-unassigned] [Bug 52079] Syntax errors should be early errors.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 7 15:02:02 PST 2011


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





--- Comment #1 from Gavin Barraclough <barraclough at apple.com>  2011-01-07 15:02:02 PST ---
Created an attachment (id=78277)
 --> (https://bugs.webkit.org/attachment.cgi?id=78277&action=review)
Work in progress

This patch may not be fully correct.
It makes most errors occur much earlier - which is good - but may still be leaving some slightly too late.
There should probably be no need to check for syntax errors at all during bytecode compilation - these should all be found by the parser.
In a number of cases (e.g. return) this can probably be trivially turned into an ASSERT.
In the case of breaks to labels we may need to move the checking that the target of the break is a valid breakTarget() up to the parser.

-- 
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