Skip to content

Commit

Permalink
chore: fix tests in older versions of node
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Feb 13, 2023
1 parent 02b0a82 commit 138b1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ for (const entry of fs.readdirSync(FIXTURES)) {
onOpenTagEnd(range) {
if (range.selfClosed) tagStack.pop();
else
switch (tagStack.at(-1)!.type) {
switch (tagStack[tagStack.length - 1]!.type) {
case TagType.statement:
case TagType.void:
tagStack.pop();
Expand Down

0 comments on commit 138b1c4

Please sign in to comment.