File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11446,7 +11446,7 @@ namespace ts {
11446
11446
11447
11447
function checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node: Node) {
11448
11448
if (node.modifiers) {
11449
- if (inBlockOrObjectLiteralExpression (node)) {
11449
+ if (inObjectLiteralExpression (node)) {
11450
11450
if (isAsyncFunctionLike(node)) {
11451
11451
if (node.modifiers.length > 1) {
11452
11452
return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here);
@@ -11459,9 +11459,9 @@ namespace ts {
11459
11459
}
11460
11460
}
11461
11461
11462
- function inBlockOrObjectLiteralExpression (node: Node) {
11462
+ function inObjectLiteralExpression (node: Node) {
11463
11463
while (node) {
11464
- if (node.kind === SyntaxKind.Block || node.kind === SyntaxKind. ObjectLiteralExpression) {
11464
+ if (node.kind === SyntaxKind.ObjectLiteralExpression) {
11465
11465
return true;
11466
11466
}
11467
11467
You can’t perform that action at this time.
0 commit comments