Files
test-repo/tests/format/js/_errors_/partial-template-strings.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
394 B
JavaScript
Raw Normal View History

2020-04-14 18:19:13 +08:00
// 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."