[Webkit-unassigned] [Bug 161408] New: [JSC] ArrowFormalParameters and MethodDefinition parameters do not use StrictFormalParameters restrictions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 30 14:51:07 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=161408
Bug ID: 161408
Summary: [JSC] ArrowFormalParameters and MethodDefinition
parameters do not use StrictFormalParameters
restrictions
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: caitp at igalia.com
ArrowFormalParameters and MethodDefinition parameters should be parsed according to the StrictFormalParameters production (https://tc39.github.io/ecma262/#sec-arrow-function-definitions, https://tc39.github.io/ecma262/#prod-MethodDefinition).
Per https://tc39.github.io/ecma262/#sec-function-definitions-static-semantics-early-errors, these functions should not parse successfully when there are duplicate formal parameters.
E.g.
var f = (a, a) => 1 /* should be SyntaxError */
var O = {
m(a, a) { return 1; } /* should be SyntaxError */
};
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160830/9c6ebfb2/attachment.html>
More information about the webkit-unassigned
mailing list