swc/ecmascript/codegen/tests/references/07bce073a241288b.js
강동윤 33d296af31
block scoped function and tagged template literal (#77)
swc_ecma_transforms:
 - implement es2015::block_scoped_functions
 - implement tagged template literal without escape handling
 - hygiene: rename to different number
 - scope: handle pattern by folding children


swc_ecma_ast:
 - use Str instead of String for template literal

swc_ecma_parser:
 - fix lexer tests
 - handle template literal correctly
template literals now have cooked field


swc_ecma_codegen:
 - escape newline character and backslash ('\')
2018-11-25 11:31:48 +09:00

5 lines
50 B
JavaScript

``;
`xx\x`;
`${a + 1}`;
` foo ${b + `baz ${c}`}`;