Skip to content

Commit 89290ae

Browse files
fix npm run bootstrap:debug
1 parent a98ec09 commit 89290ae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/parser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,8 @@ export class Parser extends DiagnosticEmitter {
959959

960960
/** Records a function type that has parameter or this-parameter decorators for post-transform validation. */
961961
private noteFunctionTypeParameterDecorators(signature: FunctionTypeNode): void {
962-
let hasDecorators = signature.explicitThisDecorators != null && signature.explicitThisDecorators.length > 0;
962+
let thisDecorators = signature.explicitThisDecorators;
963+
let hasDecorators = thisDecorators != null && thisDecorators.length > 0;
963964
if (!hasDecorators) {
964965
let params = signature.parameters;
965966
for (let i = 0, k = params.length; i < k; ++i) {

0 commit comments

Comments
 (0)