Skip to content

Commit 0b4b551

Browse files
authored
Merge pull request #113 from Microsoft/pgonzal/fix-stack-overflow
Fix stack overflow in DocFencedCode.language property getter
2 parents fa638bb + 6ac7207 commit 0b4b551

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/tsdoc",
5+
"comment": "Fix stack overflow in DocFencedCode.language property getter",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/tsdoc",
10+
"email": "pgonzal@users.noreply.github.com"
11+
}

tsdoc/src/nodes/DocFencedCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class DocFencedCode extends DocNode {
141141
this._language = '';
142142
}
143143
}
144-
return this.language;
144+
return this._language;
145145
}
146146

147147
/**

0 commit comments

Comments
 (0)