File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,8 @@ function plugin(options, Parser) {
140
140
case 125 : // '}'
141
141
this . raise (
142
142
this . pos ,
143
- `Unexpected token \`${
144
- this . input [ this . pos ]
145
- } \`. Did you mean \`${ ch === 125 ? "}" : ">" } \`, or \`{"${
146
- this . input [ this . pos ]
147
- } "}\`?`,
143
+ "Unexpected token `" + this . input [ this . pos ] + "`. Did you mean `" +
144
+ ( ch === 62 ? ">" : "}" ) + "` or " + "`{\"" + this . input [ this . pos ] + "\"}" + "`?"
148
145
) ;
149
146
150
147
default :
Original file line number Diff line number Diff line change @@ -3881,11 +3881,11 @@ for (var ns in fbTestFixture) {
3881
3881
}
3882
3882
}
3883
3883
3884
- testFail ( "<LeftRight left=<a /> right=<b>monkeys /> gorillas</b> />" , 'Unexpected token `>`. Did you mean `>`, or `{">"}`? (1:40)' )
3884
+ testFail ( "<LeftRight left=<a /> right=<b>monkeys /> gorillas</b> />" , 'Unexpected token `>`. Did you mean `>` or `{">"}`? (1:40)' )
3885
3885
testFail ( "<A>foo{</A>" , "Unexpected token (1:8)" )
3886
3886
testFail ( "<A>foo<</A>" , "Unexpected token (1:7)" )
3887
- testFail ( "<A>foo}</A>" , 'Unexpected token `}`. Did you mean `}`, or `{"}"}`? (1:6)' )
3888
- testFail ( "<A>foo></A>" , 'Unexpected token `>`. Did you mean `>`, or `{">"}`? (1:6)' )
3887
+ testFail ( "<A>foo}</A>" , 'Unexpected token `}`. Did you mean `}` or `{"}"}`? (1:6)' )
3888
+ testFail ( "<A>foo></A>" , 'Unexpected token `>`. Did you mean `>` or `{">"}`? (1:6)' )
3889
3889
test ( '<A>foo{"{"}</A>' , {
3890
3890
"type" : "Program" ,
3891
3891
"start" : 0 ,
You can’t perform that action at this time.
0 commit comments