Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32056bc

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

File tree

5 files changed

+715
-3
lines changed
Filter options

5 files changed

+715
-3
lines changed

‎src/html/tokenizer.ts

Copy file name to clipboardExpand all lines: src/html/tokenizer.ts
+6-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.