Skip to content

Commit 32056bc

Browse files
woongsikchoiws807
andauthored
fix: reset vExpressionScriptState when ending mustache (#256)
Co-authored-by: Woongsik Choi <ws807.choi@samsung.com>
1 parent 5712b7f commit 32056bc

File tree

5 files changed

+715
-3
lines changed

5 files changed

+715
-3
lines changed

src/html/tokenizer.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,9 +1942,12 @@ export class Tokenizer {
19421942
this.startToken("VExpressionEnd")
19431943
this.appendTokenValue(RIGHT_CURLY_BRACKET, null)
19441944
this.appendTokenValue(RIGHT_CURLY_BRACKET, null)
1945-
return this.vExpressionScriptState
1946-
? this.vExpressionScriptState.state
1947-
: this.returnState
1945+
if (this.vExpressionScriptState) {
1946+
const state = this.vExpressionScriptState.state
1947+
this.vExpressionScriptState = null
1948+
return state
1949+
}
1950+
return this.returnState
19481951
}
19491952

19501953
this.appendTokenValue(RIGHT_CURLY_BRACKET, null)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy