+ {{ x }} {{ yy }} {{ x$y }}
+
+ `)
// x: used in interpolation
// y: should not be matched by {{ yy }} or 'y' in binding exps
// x$y: #4274 should escape special chars when creating Regex
- // VAR & VAR3: #4340 interpolations in tempalte strings
- expect(content).toMatch(
- `return { fooBar, FooBaz, FooQux, vMyDir, x, z, x$y, VAR, VAR3, Last }`
- )
+ expect(content).toMatch(`return { x, z, x$y }`)
+ assertCode(content)
+ })
+
+ // #4340 interpolations in tempalte strings
+ test('js template string interpolations', () => {
+ const { content } = compile(`
+
+