Bug 10207 - REGRESSION: function foo() { null.bar() = 1; } results in parse error (Google Web Toolkit)
Summary: REGRESSION: function foo() { null.bar() = 1; } results in parse error (Google...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: GoogleBug, Regression
Depends on:
Blocks:
 
Reported: 2006-08-02 05:11 PDT by Mark Rowe (bdash)
Modified: 2007-05-19 15:28 PDT (History)
0 users

See Also:


Attachments
Reduced test case (416 bytes, text/html)
2006-08-02 05:15 PDT, Mark Rowe (bdash)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rowe (bdash) 2006-08-02 05:11:24 PDT
function foo() { null.bar() = 1; } throws a parse error meaning that scripts around it are not executed, even though the null.bar() = 1; statement is only erroneous if executed.  This bug was pointed out by a user of the Google Web Toolkit, as for some strange reason it generates code of this style.

WebKit 418.8 parses the code fine, as does Firefox.
Comment 1 Mark Rowe (bdash) 2006-08-02 05:15:16 PDT
Created attachment 9817 [details]
Reduced test case
Comment 2 Kimmo Kinnunen 2007-05-19 12:25:36 PDT
This seems to work now (r21600).