Skip to content

Commit 4957615

Browse files
committed
Add Comment start dash state errors.
1 parent f30195a commit 4957615

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/tokenizer/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,7 @@ _[COMMENT_START_DASH_STATE] = function commentStartDashState(cp) {
15951595
this.state = COMMENT_END_STATE;
15961596

15971597
else if (cp === $.GREATER_THAN_SIGN) {
1598+
this._err(ERR.abruptComment);
15981599
this.state = DATA_STATE;
15991600
this._emitCurrentToken();
16001601
}

0 commit comments

Comments
 (0)