[Webkit-unassigned] [Bug 106176] New: Non-helpful SyntaxError message for duplicate parameters in strict mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 5 07:20:55 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106176
Summary: Non-helpful SyntaxError message for duplicate
parameters in strict mode
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: andre.bargull at gmail.com
The current SyntaxError message isn't really that helpful.
test cases:
---
> function f(a,a){'use strict'}
Exception: SyntaxError: Unexpected token '}'
> function f(a,a){'use strict'; ''}
Exception: SyntaxError: Unexpected string ''
> function f(a,a){'use strict'; return a}
Exception: SyntaxError: Return statements are only valid inside functions
---
--
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