mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
8a8db58f1c
swc_ecma_ast: - Add `Str.kind`. swc_ecma_transforms: - Fix quotes in template literals. (#1280) swc_ecma_codegen: - Fix escape of single quotes. (#1259) - Fix codegen of wrong escapes. (#1276) swc: - Ensure that #1271 is about napi's deserialization.
21 lines
454 B
JavaScript
21 lines
454 B
JavaScript
function _taggedTemplateLiteral(strings, raw) {
|
|
if (!raw) {
|
|
raw = strings.slice(0);
|
|
}
|
|
return Object.freeze(Object.defineProperties(strings, {
|
|
raw: {
|
|
value: Object.freeze(raw)
|
|
}
|
|
}));
|
|
}
|
|
function _templateObject() {
|
|
var data = _taggedTemplateLiteral([
|
|
"'#ERROR'"
|
|
]);
|
|
_templateObject = function _templateObject() {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
sql(_templateObject());
|