Files
test-repo/tests/format/js/_errors_/partial-template-strings.js
T
fisker Cheungandautofix-ci[bot] ed5bb0bf62 Refactor tests (#18743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-25 10:30:19 +08:00

10 lines
394 B
JavaScript

// partial template strings is not supported by babel yet
// If parsers supported, should remove this and open a issue about this
// Proposal: https://github.com/tc39/proposal-partial-application/blob/master/README.md#proposal
const Diagnostics = {
unexpected_token: `Unexpected token: ${?}`,
name_not_found: `'${?}' not found.`
};
Diagnostics.name_not_found("foo"); // "'foo' not found."