Files
tsgo/testdata/baselines/reference/submodule/conformance/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.js

48 lines
1.8 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//// [tests/cases/conformance/es2019/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.ts] ////
//// [allowUnescapedParagraphAndLineSeparatorsInStringLiteral.ts]
// Strings containing unescaped line / paragraph separators
// Using both single quotes, double quotes and template literals
var stringContainingUnescapedLineSeparator1 = "
STRING_CONTENT
";
var stringContainingUnescapedParagraphSeparator1 = "
STRING_CONTENT
";
var stringContainingUnescapedLineSeparator2 = '
STRING_CONTENT
';
var stringContainingUnescapedParagraphSeparator2 = '
STRING_CONTENT
';
var stringContainingUnescapedLineSeparator3 = `
STRING_CONTENT
`;
var stringContainingUnescapedParagraphSeparator3 = `
STRING_CONTENT
`;
// Array of unescaped line / paragraph separators
var arr = [
"

STRING_CONTENT

",
"


STRING_CONTENT


",
"STRING_CONTENT
",
"
STRING_CONTENT",
`\
`,
'
'
];
//// [allowUnescapedParagraphAndLineSeparatorsInStringLiteral.js]
"use strict";
// Strings containing unescaped line / paragraph separators
// Using both single quotes, double quotes and template literals
var stringContainingUnescapedLineSeparator1 = "
STRING_CONTENT
";
var stringContainingUnescapedParagraphSeparator1 = "
STRING_CONTENT
";
var stringContainingUnescapedLineSeparator2 = '
STRING_CONTENT
';
var stringContainingUnescapedParagraphSeparator2 = '
STRING_CONTENT
';
var stringContainingUnescapedLineSeparator3 = `
STRING_CONTENT
`;
var stringContainingUnescapedParagraphSeparator3 = `
STRING_CONTENT
`;
// Array of unescaped line / paragraph separators
var arr = [
"

STRING_CONTENT

",
"


STRING_CONTENT


",
"STRING_CONTENT
",
"
STRING_CONTENT",
`\
`,
'
'
];