We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1461c7c commit 22b22f3Copy full SHA for 22b22f3
src/expression.js
@@ -531,6 +531,7 @@ pp.parseTemplate = function({isTagged = false} = {}) {
531
let curElt = this.parseTemplateElement({isTagged})
532
node.quasis = [curElt]
533
while (!curElt.tail) {
534
+ if (this.type === tt.eof) this.raise(this.pos, "Unterminated template literal")
535
this.expect(tt.dollarBraceL)
536
node.expressions.push(this.parseExpression())
537
this.expect(tt.braceR)
0 commit comments