[Webkit-unassigned] [Bug 77340] New: Unexpected syntax error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 30 08:24:22 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=77340
Summary: Unexpected syntax error
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sander at react.nl
A single line of JS triggers a syntax error which I wouldn't expect since the code within the function is correct and should not be executed at all.
> function a() { new x('x'+y).c = ''; }
Results in a syntax error:
> SyntaxError: Unexpected token '='
Upon removing variable y within this function, the syntax error magically disappears:
> function a() { new x('x').c = ''; }
Also reproducible in stable versions of Safari. Executing this code in Firefox / Chrome works just fine.
--
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