Bug 10207

Summary: REGRESSION: function foo() { null.bar() = 1; } results in parse error (Google Web Toolkit)
Product: WebKit Reporter: Mark Rowe (bdash) <mrowe>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal Keywords: GoogleBug, Regression
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Reduced test case none

Mark Rowe (bdash)
Reported 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.
Attachments
Reduced test case (416 bytes, text/html)
2006-08-02 05:15 PDT, Mark Rowe (bdash)
no flags
Mark Rowe (bdash)
Comment 1 2006-08-02 05:15:16 PDT
Created attachment 9817 [details] Reduced test case
Kimmo Kinnunen
Comment 2 2007-05-19 12:25:36 PDT
This seems to work now (r21600).
Note You need to log in before you can comment on or make changes to this bug.