Skip to content

Commit 0fcc63e

Browse files
committed
Disallow modifiers on rest parameters
1 parent cd64f2b commit 0fcc63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,8 +1979,8 @@ namespace ts {
19791979
function parseParameter(): ParameterDeclaration {
19801980
let node = <ParameterDeclaration>createNode(SyntaxKind.Parameter);
19811981
node.decorators = parseDecorators();
1982-
node.dotDotDotToken = parseOptionalToken(SyntaxKind.DotDotDotToken);
19831982
setModifiers(node, parseModifiers());
1983+
node.dotDotDotToken = parseOptionalToken(SyntaxKind.DotDotDotToken);
19841984

19851985
// FormalParameter [Yield,Await]:
19861986
// BindingElement[?Yield,?Await]

0 commit comments

Comments
 (0)