diff --git a/src/compiler/core.ts b/src/compiler/core.ts index e27d3cb520740..2518b95d37ed0 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -623,29 +623,6 @@ module ts { "\u0085": "\\u0085" // nextLine }; - /** - * Based heavily on the abstract 'Quote'/ 'QuoteJSONString' operation from ECMA-262 (24.3.2.2), - * but augmented for a few select characters. - * Note that this doesn't actually wrap the input in double quotes. - */ - export function escapeString(s: string): string { - // Prioritize '"' and '\' - s = backslashOrDoubleQuote.test(s) ? s.replace(backslashOrDoubleQuote, getReplacement) : s; - s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, getReplacement) : s; - - return s; - - function getReplacement(c: string) { - return escapedCharsMap[c] || unicodeEscape(c); - } - - function unicodeEscape(c: string): string { - var hexCharCode = c.charCodeAt(0).toString(16); - var paddedHexCode = ("0000" + hexCharCode).slice(-4); - return "\\u" + paddedHexCode; - } - } - export function getDefaultLibFileName(options: CompilerOptions): string { return options.target === ScriptTarget.ES6 ? "lib.es6.d.ts" : "lib.d.ts"; } diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index 88ae6eda36160..74874ce1cc69f 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -155,6 +155,8 @@ module ts { Catch_clause_variable_name_must_be_an_identifier: { code: 1195, category: DiagnosticCategory.Error, key: "Catch clause variable name must be an identifier." }, Catch_clause_variable_cannot_have_a_type_annotation: { code: 1196, category: DiagnosticCategory.Error, key: "Catch clause variable cannot have a type annotation." }, Catch_clause_variable_cannot_have_an_initializer: { code: 1197, category: DiagnosticCategory.Error, key: "Catch clause variable cannot have an initializer." }, + An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { code: 1198, category: DiagnosticCategory.Error, key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." }, + Unterminated_Unicode_escape_sequence: { code: 1199, category: DiagnosticCategory.Error, key: "Unterminated Unicode escape sequence." }, Duplicate_identifier_0: { code: 2300, category: DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." }, Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." }, Static_members_cannot_reference_class_type_parameters: { code: 2302, category: DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index e78ae2dad27e8..f308c37f69450 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -611,7 +611,14 @@ "category": "Error", "code": 1197 }, - + "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive.": { + "category": "Error", + "code": 1198 + }, + "Unterminated Unicode escape sequence.": { + "category": "Error", + "code": 1199 + }, "Duplicate identifier '{0}'.": { "category": "Error", "code": 2300 diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index bc1bf0d260747..cfbab1af5c6ef 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -2178,36 +2178,70 @@ module ts { } } - function isBinaryOrOctalIntegerLiteral(text: string): boolean { - if (text.length <= 0) { - return false; - } - - if (text.charCodeAt(1) === CharacterCodes.B || text.charCodeAt(1) === CharacterCodes.b || - text.charCodeAt(1) === CharacterCodes.O || text.charCodeAt(1) === CharacterCodes.o) { - return true; + function isBinaryOrOctalIntegerLiteral(node: LiteralExpression, text: string): boolean { + if (node.kind === SyntaxKind.NumericLiteral && text.length > 1) { + switch (text.charCodeAt(1)) { + case CharacterCodes.b: + case CharacterCodes.B: + case CharacterCodes.o: + case CharacterCodes.O: + return true; + } } + return false; } function emitLiteral(node: LiteralExpression) { - var text = languageVersion < ScriptTarget.ES6 && isTemplateLiteralKind(node.kind) ? getTemplateLiteralAsStringLiteral(node) : - node.parent ? getSourceTextOfNodeFromSourceFile(currentSourceFile, node) : - node.text; + var text = getLiteralText(node); + if (compilerOptions.sourceMap && (node.kind === SyntaxKind.StringLiteral || isTemplateLiteralKind(node.kind))) { writer.writeLiteral(text); } - // For version below ES6, emit binary integer literal and octal integer literal in canonical form - else if (languageVersion < ScriptTarget.ES6 && node.kind === SyntaxKind.NumericLiteral && isBinaryOrOctalIntegerLiteral(text)) { + // For versions below ES6, emit binary & octal literals in their canonical decimal form. + else if (languageVersion < ScriptTarget.ES6 && isBinaryOrOctalIntegerLiteral(node, text)) { write(node.text); } else { write(text); } } - - function getTemplateLiteralAsStringLiteral(node: LiteralExpression): string { - return '"' + escapeString(node.text) + '"'; + + function getLiteralText(node: LiteralExpression) { + // Any template literal or string literal with an extended escape + // (e.g. "\u{0067}") will need to be downleveled as a escaped string literal. + if (languageVersion < ScriptTarget.ES6 && (isTemplateLiteralKind(node.kind) || node.hasExtendedUnicodeEscape)) { + return getQuotedEscapedLiteralText('"', node.text, '"'); + } + + // If we don't need to downlevel and we can reach the original source text using + // the node's parent reference, then simply get the text as it was originally written. + if (node.parent) { + return getSourceTextOfNodeFromSourceFile(currentSourceFile, node); + } + + // If we can't reach the original source text, use the canonical form if it's a number, + // or an escaped quoted form of the original text if it's string-like. + switch (node.kind) { + case SyntaxKind.StringLiteral: + return getQuotedEscapedLiteralText('"', node.text, '"'); + case SyntaxKind.NoSubstitutionTemplateLiteral: + return getQuotedEscapedLiteralText('`', node.text, '`'); + case SyntaxKind.TemplateHead: + return getQuotedEscapedLiteralText('`', node.text, '${'); + case SyntaxKind.TemplateMiddle: + return getQuotedEscapedLiteralText('}', node.text, '${'); + case SyntaxKind.TemplateTail: + return getQuotedEscapedLiteralText('}', node.text, '`'); + case SyntaxKind.NumericLiteral: + return node.text; + } + + Debug.fail(`Literal kind '${node.kind}' not accounted for.`); + } + + function getQuotedEscapedLiteralText(leftQuote: string, text: string, rightQuote: string) { + return leftQuote + escapeNonAsciiCharacters(escapeString(text)) + rightQuote; } function emitDownlevelRawTemplateLiteral(node: LiteralExpression) { diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index ff22f857cad01..0bb0933007053 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2163,6 +2163,10 @@ module ts { var text = scanner.getTokenValue(); node.text = internName ? internIdentifier(text) : text; + if (scanner.hasExtendedUnicodeEscape()) { + node.hasExtendedUnicodeEscape = true; + } + if (scanner.isUnterminated()) { node.isUnterminated = true; } diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 9536e2bf1f1ab..9bb66f10f4182 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -14,6 +14,7 @@ module ts { getTokenPos(): number; getTokenText(): string; getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; hasPrecedingLineBreak(): boolean; isIdentifier(): boolean; isReservedWord(): boolean; @@ -556,6 +557,7 @@ module ts { var token: SyntaxKind; var tokenValue: string; var precedingLineBreak: boolean; + var hasExtendedUnicodeEscape: boolean; var tokenIsUnterminated: boolean; function error(message: DiagnosticMessage, length?: number): void { @@ -606,11 +608,27 @@ module ts { } return +(text.substring(start, pos)); } + + /** + * Scans the given number of hexadecimal digits in the text, + * returning -1 if the given number is unavailable. + */ + function scanExactNumberOfHexDigits(count: number): number { + return scanHexDigits(/*minCount*/ count, /*scanAsManyAsPossible*/ false); + } + + /** + * Scans as many hexadecimal digits as are available in the text, + * returning -1 if the given number of digits was unavailable. + */ + function scanMinimumNumberOfHexDigits(count: number): number { + return scanHexDigits(/*minCount*/ count, /*scanAsManyAsPossible*/ true); + } - function scanHexDigits(count: number, mustMatchCount?: boolean): number { + function scanHexDigits(minCount: number, scanAsManyAsPossible: boolean): number { var digits = 0; var value = 0; - while (digits < count || !mustMatchCount) { + while (digits < minCount || scanAsManyAsPossible) { var ch = text.charCodeAt(pos); if (ch >= CharacterCodes._0 && ch <= CharacterCodes._9) { value = value * 16 + ch - CharacterCodes._0; @@ -627,7 +645,7 @@ module ts { pos++; digits++; } - if (digits < count) { + if (digits < minCount) { value = -1; } return value; @@ -764,16 +782,20 @@ module ts { return "\'"; case CharacterCodes.doubleQuote: return "\""; - case CharacterCodes.x: case CharacterCodes.u: - var ch = scanHexDigits(ch === CharacterCodes.x ? 2 : 4, /*mustMatchCount*/ true); - if (ch >= 0) { - return String.fromCharCode(ch); - } - else { - error(Diagnostics.Hexadecimal_digit_expected); - return "" + // '\u{DDDDDDDD}' + if (pos < len && text.charCodeAt(pos) === CharacterCodes.openBrace) { + hasExtendedUnicodeEscape = true; + pos++; + return scanExtendedUnicodeEscape(); } + + // '\uDDDD' + return scanHexadecimalEscape(/*numDigits*/ 4) + + case CharacterCodes.x: + // '\xDD' + return scanHexadecimalEscape(/*numDigits*/ 2) // when encountering a LineContinuation (i.e. a backslash and a line terminator sequence), // the line terminator is interpreted to be "the empty code unit sequence". @@ -790,6 +812,66 @@ module ts { return String.fromCharCode(ch); } } + + function scanHexadecimalEscape(numDigits: number): string { + var escapedValue = scanExactNumberOfHexDigits(numDigits); + + if (escapedValue >= 0) { + return String.fromCharCode(escapedValue); + } + else { + error(Diagnostics.Hexadecimal_digit_expected); + return "" + } + } + + function scanExtendedUnicodeEscape(): string { + var escapedValue = scanMinimumNumberOfHexDigits(1); + var isInvalidExtendedEscape = false; + + // Validate the value of the digit + if (escapedValue < 0) { + error(Diagnostics.Hexadecimal_digit_expected) + isInvalidExtendedEscape = true; + } + else if (escapedValue > 0x10FFFF) { + error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); + isInvalidExtendedEscape = true; + } + + if (pos >= len) { + error(Diagnostics.Unexpected_end_of_text); + isInvalidExtendedEscape = true; + } + else if (text.charCodeAt(pos) == CharacterCodes.closeBrace) { + // Only swallow the following character up if it's a '}'. + pos++; + } + else { + error(Diagnostics.Unterminated_Unicode_escape_sequence); + isInvalidExtendedEscape = true; + } + + if (isInvalidExtendedEscape) { + return ""; + } + + return utf16EncodeAsString(escapedValue); + } + + // Derived from the 10.1.1 UTF16Encoding of the ES6 Spec. + function utf16EncodeAsString(codePoint: number): string { + Debug.assert(0x0 <= codePoint && codePoint <= 0x10FFFF); + + if (codePoint <= 65535) { + return String.fromCharCode(codePoint); + } + + var codeUnit1 = Math.floor((codePoint - 65536) / 1024) + 0xD800; + var codeUnit2 = ((codePoint - 65536) % 1024) + 0xDC00; + + return String.fromCharCode(codeUnit1, codeUnit2); + } // Current character is known to be a backslash. Check for Unicode escape of the form '\uXXXX' // and return code point value if valid Unicode escape is found. Otherwise return -1. @@ -797,7 +879,7 @@ module ts { if (pos + 5 < len && text.charCodeAt(pos + 1) === CharacterCodes.u) { var start = pos; pos += 2; - var value = scanHexDigits(4, /*mustMatchCount*/ true); + var value = scanExactNumberOfHexDigits(4); pos = start; return value; } @@ -869,6 +951,7 @@ module ts { function scan(): SyntaxKind { startPos = pos; + hasExtendedUnicodeEscape = false; precedingLineBreak = false; tokenIsUnterminated = false; while (true) { @@ -1034,7 +1117,7 @@ module ts { case CharacterCodes._0: if (pos + 2 < len && (text.charCodeAt(pos + 1) === CharacterCodes.X || text.charCodeAt(pos + 1) === CharacterCodes.x)) { pos += 2; - var value = scanHexDigits(1, /*mustMatchCount*/ false); + var value = scanMinimumNumberOfHexDigits(1); if (value < 0) { error(Diagnostics.Hexadecimal_digit_expected); value = 0; @@ -1336,6 +1419,7 @@ module ts { getTokenPos: () => tokenPos, getTokenText: () => text.substring(tokenPos, pos), getTokenValue: () => tokenValue, + hasExtendedUnicodeEscape: () => hasExtendedUnicodeEscape, hasPrecedingLineBreak: () => precedingLineBreak, isIdentifier: () => token === SyntaxKind.Identifier || token > SyntaxKind.LastReservedWord, isReservedWord: () => token >= SyntaxKind.FirstReservedWord && token <= SyntaxKind.LastReservedWord, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index da8e1bdbe401e..dbcb83c25a924 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -655,6 +655,7 @@ module ts { export interface LiteralExpression extends PrimaryExpression { text: string; isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; } export interface StringLiteralExpression extends LiteralExpression { diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 01def791c0236..e6d2fffd06a83 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1130,7 +1130,7 @@ module ts { newEndN = Math.max(newEnd2, newEnd2 + (newEnd1 - oldEnd2)); } - return createTextChangeRange(createTextSpanFromBounds(oldStartN, oldEndN), /*newLength: */newEndN - oldStartN); + return createTextChangeRange(createTextSpanFromBounds(oldStartN, oldEndN), /*newLength:*/ newEndN - oldStartN); } // @internal @@ -1212,4 +1212,55 @@ module ts { } } } + + // This consists of the first 19 unprintable ASCII characters, canonical escapes, lineSeparator, + // paragraphSeparator, and nextLine. The latter three are just desirable to suppress new lines in + // the language service. These characters should be escaped when printing, and if any characters are added, + // the map below must be updated. Note that this regexp *does not* include the 'delete' character. + // There is no reason for this other than that JSON.stringify does not handle it either. + var escapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; + var escapedCharsMap: Map = { + "\0": "\\0", + "\t": "\\t", + "\v": "\\v", + "\f": "\\f", + "\b": "\\b", + "\r": "\\r", + "\n": "\\n", + "\\": "\\\\", + "\"": "\\\"", + "\u2028": "\\u2028", // lineSeparator + "\u2029": "\\u2029", // paragraphSeparator + "\u0085": "\\u0085" // nextLine + }; + + /** + * Based heavily on the abstract 'Quote'/'QuoteJSONString' operation from ECMA-262 (24.3.2.2), + * but augmented for a few select characters (e.g. lineSeparator, paragraphSeparator, nextLine) + * Note that this doesn't actually wrap the input in double quotes. + */ + export function escapeString(s: string): string { + s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, getReplacement) : s; + + return s; + + function getReplacement(c: string) { + return escapedCharsMap[c] || get16BitUnicodeEscapeSequence(c.charCodeAt(0)); + } + } + + function get16BitUnicodeEscapeSequence(charCode: number): string { + var hexCharCode = charCode.toString(16).toUpperCase(); + var paddedHexCode = ("0000" + hexCharCode).slice(-4); + return "\\u" + paddedHexCode; + } + + var nonAsciiCharacters = /[^\u0000-\u007F]/g; + export function escapeNonAsciiCharacters(s: string): string { + // Replace non-ASCII characters with '\uNNNN' escapes if any exist. + // Otherwise just return the original string. + return nonAsciiCharacters.test(s) ? + s.replace(nonAsciiCharacters, c => get16BitUnicodeEscapeSequence(c.charCodeAt(0))) : + s; + } } \ No newline at end of file diff --git a/tests/baselines/reference/APISample_compile.js b/tests/baselines/reference/APISample_compile.js index 7f5bc29906ae6..84a78bb60d739 100644 --- a/tests/baselines/reference/APISample_compile.js +++ b/tests/baselines/reference/APISample_compile.js @@ -552,6 +552,7 @@ declare module "typescript" { interface LiteralExpression extends PrimaryExpression { text: string; isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; } interface StringLiteralExpression extends LiteralExpression { _stringLiteralExpressionBrand: any; @@ -1420,6 +1421,7 @@ declare module "typescript" { getTokenPos(): number; getTokenText(): string; getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; hasPrecedingLineBreak(): boolean; isIdentifier(): boolean; isReservedWord(): boolean; diff --git a/tests/baselines/reference/APISample_compile.types b/tests/baselines/reference/APISample_compile.types index d93a48b7852e9..0438c89dd20a5 100644 --- a/tests/baselines/reference/APISample_compile.types +++ b/tests/baselines/reference/APISample_compile.types @@ -1664,6 +1664,9 @@ declare module "typescript" { isUnterminated?: boolean; >isUnterminated : boolean + + hasExtendedUnicodeEscape?: boolean; +>hasExtendedUnicodeEscape : boolean } interface StringLiteralExpression extends LiteralExpression { >StringLiteralExpression : StringLiteralExpression @@ -4477,6 +4480,9 @@ declare module "typescript" { getTokenValue(): string; >getTokenValue : () => string + hasExtendedUnicodeEscape(): boolean; +>hasExtendedUnicodeEscape : () => boolean + hasPrecedingLineBreak(): boolean; >hasPrecedingLineBreak : () => boolean diff --git a/tests/baselines/reference/APISample_linter.js b/tests/baselines/reference/APISample_linter.js index 36dd2421adda7..16c97f4d37a00 100644 --- a/tests/baselines/reference/APISample_linter.js +++ b/tests/baselines/reference/APISample_linter.js @@ -583,6 +583,7 @@ declare module "typescript" { interface LiteralExpression extends PrimaryExpression { text: string; isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; } interface StringLiteralExpression extends LiteralExpression { _stringLiteralExpressionBrand: any; @@ -1451,6 +1452,7 @@ declare module "typescript" { getTokenPos(): number; getTokenText(): string; getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; hasPrecedingLineBreak(): boolean; isIdentifier(): boolean; isReservedWord(): boolean; diff --git a/tests/baselines/reference/APISample_linter.types b/tests/baselines/reference/APISample_linter.types index 7a282b61f42c2..265ee04b0c3fd 100644 --- a/tests/baselines/reference/APISample_linter.types +++ b/tests/baselines/reference/APISample_linter.types @@ -1810,6 +1810,9 @@ declare module "typescript" { isUnterminated?: boolean; >isUnterminated : boolean + + hasExtendedUnicodeEscape?: boolean; +>hasExtendedUnicodeEscape : boolean } interface StringLiteralExpression extends LiteralExpression { >StringLiteralExpression : StringLiteralExpression @@ -4623,6 +4626,9 @@ declare module "typescript" { getTokenValue(): string; >getTokenValue : () => string + hasExtendedUnicodeEscape(): boolean; +>hasExtendedUnicodeEscape : () => boolean + hasPrecedingLineBreak(): boolean; >hasPrecedingLineBreak : () => boolean diff --git a/tests/baselines/reference/APISample_transform.js b/tests/baselines/reference/APISample_transform.js index 2ead514026192..4892999005829 100644 --- a/tests/baselines/reference/APISample_transform.js +++ b/tests/baselines/reference/APISample_transform.js @@ -584,6 +584,7 @@ declare module "typescript" { interface LiteralExpression extends PrimaryExpression { text: string; isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; } interface StringLiteralExpression extends LiteralExpression { _stringLiteralExpressionBrand: any; @@ -1452,6 +1453,7 @@ declare module "typescript" { getTokenPos(): number; getTokenText(): string; getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; hasPrecedingLineBreak(): boolean; isIdentifier(): boolean; isReservedWord(): boolean; diff --git a/tests/baselines/reference/APISample_transform.types b/tests/baselines/reference/APISample_transform.types index 7a9d0523653be..6511213ef7e96 100644 --- a/tests/baselines/reference/APISample_transform.types +++ b/tests/baselines/reference/APISample_transform.types @@ -1760,6 +1760,9 @@ declare module "typescript" { isUnterminated?: boolean; >isUnterminated : boolean + + hasExtendedUnicodeEscape?: boolean; +>hasExtendedUnicodeEscape : boolean } interface StringLiteralExpression extends LiteralExpression { >StringLiteralExpression : StringLiteralExpression @@ -4573,6 +4576,9 @@ declare module "typescript" { getTokenValue(): string; >getTokenValue : () => string + hasExtendedUnicodeEscape(): boolean; +>hasExtendedUnicodeEscape : () => boolean + hasPrecedingLineBreak(): boolean; >hasPrecedingLineBreak : () => boolean diff --git a/tests/baselines/reference/APISample_watcher.js b/tests/baselines/reference/APISample_watcher.js index 1d1f9f03d680f..f732732f154ea 100644 --- a/tests/baselines/reference/APISample_watcher.js +++ b/tests/baselines/reference/APISample_watcher.js @@ -621,6 +621,7 @@ declare module "typescript" { interface LiteralExpression extends PrimaryExpression { text: string; isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; } interface StringLiteralExpression extends LiteralExpression { _stringLiteralExpressionBrand: any; @@ -1489,6 +1490,7 @@ declare module "typescript" { getTokenPos(): number; getTokenText(): string; getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; hasPrecedingLineBreak(): boolean; isIdentifier(): boolean; isReservedWord(): boolean; diff --git a/tests/baselines/reference/APISample_watcher.types b/tests/baselines/reference/APISample_watcher.types index 55c48d1354bfc..2a71388ed501a 100644 --- a/tests/baselines/reference/APISample_watcher.types +++ b/tests/baselines/reference/APISample_watcher.types @@ -1933,6 +1933,9 @@ declare module "typescript" { isUnterminated?: boolean; >isUnterminated : boolean + + hasExtendedUnicodeEscape?: boolean; +>hasExtendedUnicodeEscape : boolean } interface StringLiteralExpression extends LiteralExpression { >StringLiteralExpression : StringLiteralExpression @@ -4746,6 +4749,9 @@ declare module "typescript" { getTokenValue(): string; >getTokenValue : () => string + hasExtendedUnicodeEscape(): boolean; +>hasExtendedUnicodeEscape : () => boolean + hasPrecedingLineBreak(): boolean; >hasPrecedingLineBreak : () => boolean diff --git a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.errors.txt b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.errors.txt deleted file mode 100644 index df3def2cb2229..0000000000000 --- a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -tests/cases/compiler/taggedTemplateStringsWithUnicodeEscapes.ts(4,7): error TS1125: Hexadecimal digit expected. - - -==== tests/cases/compiler/taggedTemplateStringsWithUnicodeEscapes.ts (1 errors) ==== - function f(...args: any[]) { - } - - f `'\u{1f4a9}'${ " should be converted to " }'\uD83D\uDCA9'`; - -!!! error TS1125: Hexadecimal digit expected. \ No newline at end of file diff --git a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js index bcf0732218ac7..ae73b0b227e58 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js +++ b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.js @@ -11,5 +11,5 @@ function f() { args[_i - 0] = arguments[_i]; } } -(_a = ["'{1f4a9}'", "'💩'"], _a.raw = ["'\\u{1f4a9}'", "'\\uD83D\\uDCA9'"], f(_a, " should be converted to ")); +(_a = ["'\uD83D\uDCA9'", "'\uD83D\uDCA9'"], _a.raw = ["'\\u{1f4a9}'", "'\\uD83D\\uDCA9'"], f(_a, " should be converted to ")); var _a; diff --git a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.types b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.types new file mode 100644 index 0000000000000..30c27d376d187 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapes.types @@ -0,0 +1,9 @@ +=== tests/cases/compiler/taggedTemplateStringsWithUnicodeEscapes.ts === +function f(...args: any[]) { +>f : (...args: any[]) => void +>args : any[] +} + +f `'\u{1f4a9}'${ " should be converted to " }'\uD83D\uDCA9'`; +>f : (...args: any[]) => void + diff --git a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapesES6.errors.txt b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapesES6.errors.txt deleted file mode 100644 index c48b43dc3ff88..0000000000000 --- a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapesES6.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -tests/cases/compiler/taggedTemplateStringsWithUnicodeEscapesES6.ts(4,7): error TS1125: Hexadecimal digit expected. - - -==== tests/cases/compiler/taggedTemplateStringsWithUnicodeEscapesES6.ts (1 errors) ==== - function f(...args: any[]) { - } - - f `'\u{1f4a9}'${ " should be converted to " }'\uD83D\uDCA9'`; - -!!! error TS1125: Hexadecimal digit expected. \ No newline at end of file diff --git a/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapesES6.types b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapesES6.types new file mode 100644 index 0000000000000..d3c9ad68c2181 --- /dev/null +++ b/tests/baselines/reference/taggedTemplateStringsWithUnicodeEscapesES6.types @@ -0,0 +1,9 @@ +=== tests/cases/compiler/taggedTemplateStringsWithUnicodeEscapesES6.ts === +function f(...args: any[]) { +>f : (...args: any[]) => void +>args : any[] +} + +f `'\u{1f4a9}'${ " should be converted to " }'\uD83D\uDCA9'`; +>f : (...args: any[]) => void + diff --git a/tests/baselines/reference/templateStringControlCharacterEscapes03.js b/tests/baselines/reference/templateStringControlCharacterEscapes03.js index ae9774d952a53..a0e87fc7e0ea4 100644 --- a/tests/baselines/reference/templateStringControlCharacterEscapes03.js +++ b/tests/baselines/reference/templateStringControlCharacterEscapes03.js @@ -4,4 +4,4 @@ var x = `\x1F\u001f 1F 1f`; //// [templateStringControlCharacterEscapes03.js] -var x = "\u001f\u001f 1F 1f"; +var x = "\u001F\u001F 1F 1f"; diff --git a/tests/baselines/reference/templateStringWhitespaceEscapes2.js b/tests/baselines/reference/templateStringWhitespaceEscapes2.js index 144b1e78b8bdc..1a46cc7f75079 100644 --- a/tests/baselines/reference/templateStringWhitespaceEscapes2.js +++ b/tests/baselines/reference/templateStringWhitespaceEscapes2.js @@ -6,4 +6,4 @@ //// [templateStringWhitespaceEscapes2.js] // , , , , , -"\t\v\f  "; +"\t\v\f \u00A0\uFEFF"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js new file mode 100644 index 0000000000000..49f4de1c5914e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions01_ES5.ts] + +var x = /\u{0}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions01_ES5.js] +var x = /\u{0}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types new file mode 100644 index 0000000000000..fa577bcfc1633 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts === + +var x = /\u{0}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js new file mode 100644 index 0000000000000..b31baaa63f25b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions01_ES6.ts] + +var x = /\u{0}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions01_ES6.js] +var x = /\u{0}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types new file mode 100644 index 0000000000000..81494521810d0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts === + +var x = /\u{0}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js new file mode 100644 index 0000000000000..27b81ecf8d809 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions02_ES5.ts] + +var x = /\u{00}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions02_ES5.js] +var x = /\u{00}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types new file mode 100644 index 0000000000000..f1d17df285096 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts === + +var x = /\u{00}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js new file mode 100644 index 0000000000000..af619137b6102 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions02_ES6.ts] + +var x = /\u{00}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions02_ES6.js] +var x = /\u{00}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types new file mode 100644 index 0000000000000..18e2f69f906f8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts === + +var x = /\u{00}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js new file mode 100644 index 0000000000000..02cb13ac329c6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions03_ES5.ts] + +var x = /\u{0000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions03_ES5.js] +var x = /\u{0000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types new file mode 100644 index 0000000000000..1b83317b11f1f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts === + +var x = /\u{0000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js new file mode 100644 index 0000000000000..b084737d9ccb3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions03_ES6.ts] + +var x = /\u{0000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions03_ES6.js] +var x = /\u{0000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types new file mode 100644 index 0000000000000..a3fba6321cb36 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts === + +var x = /\u{0000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js new file mode 100644 index 0000000000000..d42f08ff10bc2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions04_ES5.ts] + +var x = /\u{00000000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions04_ES5.js] +var x = /\u{00000000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types new file mode 100644 index 0000000000000..bd9473c5f7fd9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts === + +var x = /\u{00000000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js new file mode 100644 index 0000000000000..1226b4ca6c901 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions04_ES6.ts] + +var x = /\u{00000000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions04_ES6.js] +var x = /\u{00000000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types new file mode 100644 index 0000000000000..b7d166722b662 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts === + +var x = /\u{00000000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js new file mode 100644 index 0000000000000..35ff99573766b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions05_ES5.ts] + +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions05_ES5.js] +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types new file mode 100644 index 0000000000000..5b9630740c39c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts === + +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js new file mode 100644 index 0000000000000..21dd287a74568 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions05_ES6.ts] + +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions05_ES6.js] +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types new file mode 100644 index 0000000000000..5f9eff8356173 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts === + +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js new file mode 100644 index 0000000000000..4587d78452f35 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInRegularExpressions06_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions06_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types new file mode 100644 index 0000000000000..84a5459d0ac3e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js new file mode 100644 index 0000000000000..9460a59016018 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInRegularExpressions06_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions06_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types new file mode 100644 index 0000000000000..ec0af85e104e1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js new file mode 100644 index 0000000000000..b68eb48649427 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInRegularExpressions07_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions07_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types new file mode 100644 index 0000000000000..dc7e3ac471523 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js new file mode 100644 index 0000000000000..a1f3c6e3c0ebb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInRegularExpressions07_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions07_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types new file mode 100644 index 0000000000000..c21e0be727370 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js new file mode 100644 index 0000000000000..f0e3778d152a0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInRegularExpressions08_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions08_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types new file mode 100644 index 0000000000000..de3dda5fb60f8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js new file mode 100644 index 0000000000000..04fb9c5427be8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInRegularExpressions08_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions08_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types new file mode 100644 index 0000000000000..680433c431393 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js new file mode 100644 index 0000000000000..002e26ab49a24 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInRegularExpressions09_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions09_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types new file mode 100644 index 0000000000000..6041cde94198a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js new file mode 100644 index 0000000000000..0c44e6fc6bc12 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInRegularExpressions09_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions09_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types new file mode 100644 index 0000000000000..bb4286dd3a81d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js new file mode 100644 index 0000000000000..166c856cab1b4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInRegularExpressions10_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions10_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types new file mode 100644 index 0000000000000..151805012161f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js new file mode 100644 index 0000000000000..f15a4a92c964b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInRegularExpressions10_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions10_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types new file mode 100644 index 0000000000000..d7ebea7cd2975 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js new file mode 100644 index 0000000000000..39557fa969f5d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInRegularExpressions11_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions11_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types new file mode 100644 index 0000000000000..caacb94c1c3c4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.js new file mode 100644 index 0000000000000..b4ac426e201c0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInRegularExpressions11_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions11_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.types new file mode 100644 index 0000000000000..b690bd600df0d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js new file mode 100644 index 0000000000000..eeb36274721b3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions12_ES5.ts] + +var x = /\u{FFFFFFFF}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions12_ES5.js] +var x = /\u{FFFFFFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types new file mode 100644 index 0000000000000..e674a8f2e6540 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts === + +var x = /\u{FFFFFFFF}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js new file mode 100644 index 0000000000000..26b18dc4e825c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions12_ES6.ts] + +var x = /\u{FFFFFFFF}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions12_ES6.js] +var x = /\u{FFFFFFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types new file mode 100644 index 0000000000000..e68c99a8170f0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts === + +var x = /\u{FFFFFFFF}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js new file mode 100644 index 0000000000000..a67accc9698ab --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions13_ES5.ts] + +var x = /\u{DDDDD}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions13_ES5.js] +var x = /\u{DDDDD}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types new file mode 100644 index 0000000000000..fa4bb204a3982 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts === + +var x = /\u{DDDDD}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js new file mode 100644 index 0000000000000..5b15e6e967a96 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions13_ES6.ts] + +var x = /\u{DDDDD}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions13_ES6.js] +var x = /\u{DDDDD}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types new file mode 100644 index 0000000000000..6959dbc15d3f2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts === + +var x = /\u{DDDDD}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js new file mode 100644 index 0000000000000..71f00a1ecbaa0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js @@ -0,0 +1,9 @@ +//// [unicodeExtendedEscapesInRegularExpressions14_ES5.ts] + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions14_ES5.js] +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types new file mode 100644 index 0000000000000..a0b789ac51beb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts === + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js new file mode 100644 index 0000000000000..997f1c32158ea --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js @@ -0,0 +1,9 @@ +//// [unicodeExtendedEscapesInRegularExpressions14_ES6.ts] + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions14_ES6.js] +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types new file mode 100644 index 0000000000000..e727ad14f7027 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts === + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js new file mode 100644 index 0000000000000..cc30faab96244 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions15_ES5.ts] + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions15_ES5.js] +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types new file mode 100644 index 0000000000000..bb4abfc408cc3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts === + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js new file mode 100644 index 0000000000000..d0b8b824729d7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions15_ES6.ts] + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions15_ES6.js] +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types new file mode 100644 index 0000000000000..770e0bd129449 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts === + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js new file mode 100644 index 0000000000000..989925f6c4bf0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions16_ES5.ts] + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions16_ES5.js] +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types new file mode 100644 index 0000000000000..90e1b468f3345 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts === + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js new file mode 100644 index 0000000000000..5b1d1afb52dfb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions16_ES6.ts] + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions16_ES6.js] +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types new file mode 100644 index 0000000000000..4b04fc6b8fc59 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts === + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js new file mode 100644 index 0000000000000..4492af405d82d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions17_ES5.ts] + +var x = /\u{r}\u{n}\u{t}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions17_ES5.js] +var x = /\u{r}\u{n}\u{t}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types new file mode 100644 index 0000000000000..00cccc3ad5fa5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts === + +var x = /\u{r}\u{n}\u{t}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js new file mode 100644 index 0000000000000..2cd10594be29f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions17_ES6.ts] + +var x = /\u{r}\u{n}\u{t}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions17_ES6.js] +var x = /\u{r}\u{n}\u{t}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types new file mode 100644 index 0000000000000..c735927c8e009 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts === + +var x = /\u{r}\u{n}\u{t}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js new file mode 100644 index 0000000000000..0d1365fee69b7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions18_ES5.ts] + +var x = /\u{65}\u{65}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions18_ES5.js] +var x = /\u{65}\u{65}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types new file mode 100644 index 0000000000000..f8a2bf7b6e40b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts === + +var x = /\u{65}\u{65}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js new file mode 100644 index 0000000000000..f378f3be93a07 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions18_ES6.ts] + +var x = /\u{65}\u{65}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions18_ES6.js] +var x = /\u{65}\u{65}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types new file mode 100644 index 0000000000000..6cb0f54338c7b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts === + +var x = /\u{65}\u{65}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js new file mode 100644 index 0000000000000..2d52ad3568a31 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions19_ES5.ts] + +var x = /\u{}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions19_ES5.js] +var x = /\u{}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types new file mode 100644 index 0000000000000..78a855710fcb9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts === + +var x = /\u{}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js new file mode 100644 index 0000000000000..3414a314aba93 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInRegularExpressions19_ES6.ts] + +var x = /\u{}/g; + + +//// [unicodeExtendedEscapesInRegularExpressions19_ES6.js] +var x = /\u{}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types new file mode 100644 index 0000000000000..d5b59120147cd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts === + +var x = /\u{}/g; +>x : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js new file mode 100644 index 0000000000000..e1e1a0ef70547 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings01_ES5.ts] + +var x = "\u{0}"; + + +//// [unicodeExtendedEscapesInStrings01_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.types new file mode 100644 index 0000000000000..7dec031af28ad --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts === + +var x = "\u{0}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js new file mode 100644 index 0000000000000..1135d950dcbd7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings01_ES6.ts] + +var x = "\u{0}"; + + +//// [unicodeExtendedEscapesInStrings01_ES6.js] +var x = "\u{0}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.types new file mode 100644 index 0000000000000..77e507e0129cd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts === + +var x = "\u{0}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js new file mode 100644 index 0000000000000..f20a321f76687 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings02_ES5.ts] + +var x = "\u{00}"; + + +//// [unicodeExtendedEscapesInStrings02_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.types new file mode 100644 index 0000000000000..9ab14e5e1ad74 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts === + +var x = "\u{00}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js new file mode 100644 index 0000000000000..f8858a24b8e56 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings02_ES6.ts] + +var x = "\u{00}"; + + +//// [unicodeExtendedEscapesInStrings02_ES6.js] +var x = "\u{00}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.types new file mode 100644 index 0000000000000..37178d5c3902a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts === + +var x = "\u{00}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js new file mode 100644 index 0000000000000..8ef0ae23371b1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings03_ES5.ts] + +var x = "\u{0000}"; + + +//// [unicodeExtendedEscapesInStrings03_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.types new file mode 100644 index 0000000000000..1b601533fe18d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts === + +var x = "\u{0000}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js new file mode 100644 index 0000000000000..b9c7c0ea8d0a0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings03_ES6.ts] + +var x = "\u{0000}"; + + +//// [unicodeExtendedEscapesInStrings03_ES6.js] +var x = "\u{0000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.types new file mode 100644 index 0000000000000..b1ec28bfe0737 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts === + +var x = "\u{0000}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js new file mode 100644 index 0000000000000..15f91fdbc7e2e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings04_ES5.ts] + +var x = "\u{00000000}"; + + +//// [unicodeExtendedEscapesInStrings04_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.types new file mode 100644 index 0000000000000..c7d45d6b086b9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts === + +var x = "\u{00000000}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js new file mode 100644 index 0000000000000..4e9e05ae1a22e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings04_ES6.ts] + +var x = "\u{00000000}"; + + +//// [unicodeExtendedEscapesInStrings04_ES6.js] +var x = "\u{00000000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.types new file mode 100644 index 0000000000000..f1f2a2937deab --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts === + +var x = "\u{00000000}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.js new file mode 100644 index 0000000000000..51638c85ef418 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings05_ES5.ts] + +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; + + +//// [unicodeExtendedEscapesInStrings05_ES5.js] +var x = "Hello world"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.types new file mode 100644 index 0000000000000..9e09678415541 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts === + +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.js new file mode 100644 index 0000000000000..1d958566f725a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings05_ES6.ts] + +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; + + +//// [unicodeExtendedEscapesInStrings05_ES6.js] +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.types new file mode 100644 index 0000000000000..febfe78595c06 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts === + +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.js new file mode 100644 index 0000000000000..229b04ca7992e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInStrings06_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; + + +//// [unicodeExtendedEscapesInStrings06_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\uDBFF\uDFFF"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.types new file mode 100644 index 0000000000000..fb979e6b7baa7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.js new file mode 100644 index 0000000000000..ee7e4e1657d21 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInStrings06_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; + + +//// [unicodeExtendedEscapesInStrings06_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.types new file mode 100644 index 0000000000000..e61467ab47fb6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt new file mode 100644 index 0000000000000..c2239340c1616 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt @@ -0,0 +1,11 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts(4,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts (1 errors) ==== + + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = "\u{110000}"; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.js new file mode 100644 index 0000000000000..3deb60da74a3a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInStrings07_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{110000}"; + + +//// [unicodeExtendedEscapesInStrings07_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.errors.txt new file mode 100644 index 0000000000000..711ae0f4291c4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.errors.txt @@ -0,0 +1,11 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts(4,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts (1 errors) ==== + + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = "\u{110000}"; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.js new file mode 100644 index 0000000000000..4a93647f384f9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInStrings07_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{110000}"; + + +//// [unicodeExtendedEscapesInStrings07_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{110000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.js new file mode 100644 index 0000000000000..5ad677c2da21f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInStrings08_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; + + +//// [unicodeExtendedEscapesInStrings08_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\uFFFF"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.types new file mode 100644 index 0000000000000..31a6a586dffc0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.js new file mode 100644 index 0000000000000..76d16b18495d0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInStrings08_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; + + +//// [unicodeExtendedEscapesInStrings08_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.types new file mode 100644 index 0000000000000..5060bb11305b2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.js new file mode 100644 index 0000000000000..cebdd770262b6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInStrings09_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; + + +//// [unicodeExtendedEscapesInStrings09_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\uD800\uDC00"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.types new file mode 100644 index 0000000000000..ffc1bb7d67d13 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.js new file mode 100644 index 0000000000000..32d8dfdb13d0d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInStrings09_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; + + +//// [unicodeExtendedEscapesInStrings09_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.types new file mode 100644 index 0000000000000..e7a303a069977 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.js new file mode 100644 index 0000000000000..615ce361f0f12 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInStrings10_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; + + +//// [unicodeExtendedEscapesInStrings10_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\uD800"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.types new file mode 100644 index 0000000000000..bbe19a788a051 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.js new file mode 100644 index 0000000000000..abd041c8a18f6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInStrings10_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; + + +//// [unicodeExtendedEscapesInStrings10_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.types new file mode 100644 index 0000000000000..6ce1f692cece3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.js new file mode 100644 index 0000000000000..144ae140d0035 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInStrings11_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; + + +//// [unicodeExtendedEscapesInStrings11_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\uDC00"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.types new file mode 100644 index 0000000000000..b413a2a5509b2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.js new file mode 100644 index 0000000000000..7712a12e6f36e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInStrings11_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; + + +//// [unicodeExtendedEscapesInStrings11_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.types new file mode 100644 index 0000000000000..b07f9f0a35da2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt new file mode 100644 index 0000000000000..29a617e41b64c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts(2,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts (1 errors) ==== + + var x = "\u{FFFFFFFF}"; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.js new file mode 100644 index 0000000000000..53880789c26d1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings12_ES5.ts] + +var x = "\u{FFFFFFFF}"; + + +//// [unicodeExtendedEscapesInStrings12_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt new file mode 100644 index 0000000000000..e4ac95eda2a09 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts(2,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts (1 errors) ==== + + var x = "\u{FFFFFFFF}"; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.js new file mode 100644 index 0000000000000..7436bdcd326a5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings12_ES6.ts] + +var x = "\u{FFFFFFFF}"; + + +//// [unicodeExtendedEscapesInStrings12_ES6.js] +var x = "\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js new file mode 100644 index 0000000000000..2a54098d3c13e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings13_ES5.ts] + +var x = "\u{DDDDD}"; + + +//// [unicodeExtendedEscapesInStrings13_ES5.js] +var x = "\uDB37\uDDDD"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.types new file mode 100644 index 0000000000000..597e10ab6dcc5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts === + +var x = "\u{DDDDD}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js new file mode 100644 index 0000000000000..d3cc7a9673a61 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings13_ES6.ts] + +var x = "\u{DDDDD}"; + + +//// [unicodeExtendedEscapesInStrings13_ES6.js] +var x = "\u{DDDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.types new file mode 100644 index 0000000000000..c0092e04c5f3c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts === + +var x = "\u{DDDDD}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt new file mode 100644 index 0000000000000..76abc30d5eb4f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts(3,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts (1 errors) ==== + + // Shouldn't work, negatives are not allowed. + var x = "\u{-DDDD}"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.js new file mode 100644 index 0000000000000..592030c20aadb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.js @@ -0,0 +1,9 @@ +//// [unicodeExtendedEscapesInStrings14_ES5.ts] + +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; + + +//// [unicodeExtendedEscapesInStrings14_ES5.js] +// Shouldn't work, negatives are not allowed. +var x = "-DDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt new file mode 100644 index 0000000000000..4ccf4311b33e5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts(3,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts (1 errors) ==== + + // Shouldn't work, negatives are not allowed. + var x = "\u{-DDDD}"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.js new file mode 100644 index 0000000000000..3c68fde98bffb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.js @@ -0,0 +1,9 @@ +//// [unicodeExtendedEscapesInStrings14_ES6.ts] + +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; + + +//// [unicodeExtendedEscapesInStrings14_ES6.js] +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.js new file mode 100644 index 0000000000000..7811342a6994d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings15_ES5.ts] + +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; + + +//// [unicodeExtendedEscapesInStrings15_ES5.js] +var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.types new file mode 100644 index 0000000000000..449bd7d2bdcbc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts === + +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.js new file mode 100644 index 0000000000000..7b9d78f4a7d21 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings15_ES6.ts] + +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; + + +//// [unicodeExtendedEscapesInStrings15_ES6.js] +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.types new file mode 100644 index 0000000000000..c4352dd72e0c9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts === + +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.js new file mode 100644 index 0000000000000..33bbcdbba3b99 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings16_ES5.ts] + +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; + + +//// [unicodeExtendedEscapesInStrings16_ES5.js] +var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.types new file mode 100644 index 0000000000000..cd295c842537c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts === + +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.js new file mode 100644 index 0000000000000..7e97f6aa1cb55 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings16_ES6.ts] + +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; + + +//// [unicodeExtendedEscapesInStrings16_ES6.js] +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.types new file mode 100644 index 0000000000000..f63afc17b1cc4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts === + +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt new file mode 100644 index 0000000000000..ddf4b8dba7a36 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt @@ -0,0 +1,15 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts(2,18): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts(2,23): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts (3 errors) ==== + + var x = "\u{r}\u{n}\u{t}"; + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.js new file mode 100644 index 0000000000000..810c129dad15f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings17_ES5.ts] + +var x = "\u{r}\u{n}\u{t}"; + + +//// [unicodeExtendedEscapesInStrings17_ES5.js] +var x = "r}n}t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt new file mode 100644 index 0000000000000..b338efb03e545 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt @@ -0,0 +1,15 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts(2,18): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts(2,23): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts (3 errors) ==== + + var x = "\u{r}\u{n}\u{t}"; + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.js new file mode 100644 index 0000000000000..cfc8592e998b2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings17_ES6.ts] + +var x = "\u{r}\u{n}\u{t}"; + + +//// [unicodeExtendedEscapesInStrings17_ES6.js] +var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js new file mode 100644 index 0000000000000..0eee224c3079d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings18_ES5.ts] + +var x = "\u{65}\u{65}"; + + +//// [unicodeExtendedEscapesInStrings18_ES5.js] +var x = "ee"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.types new file mode 100644 index 0000000000000..34343989c5b69 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts === + +var x = "\u{65}\u{65}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js new file mode 100644 index 0000000000000..6e3508c13f986 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings18_ES6.ts] + +var x = "\u{65}\u{65}"; + + +//// [unicodeExtendedEscapesInStrings18_ES6.js] +var x = "\u{65}\u{65}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.types new file mode 100644 index 0000000000000..615682a283aa9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts === + +var x = "\u{65}\u{65}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt new file mode 100644 index 0000000000000..b670f28fe6923 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts (1 errors) ==== + + var x = "\u{}"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.js new file mode 100644 index 0000000000000..f7841e67463ad --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings19_ES5.ts] + +var x = "\u{}"; + + +//// [unicodeExtendedEscapesInStrings19_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt new file mode 100644 index 0000000000000..9ddc49eff1b55 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts (1 errors) ==== + + var x = "\u{}"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.js new file mode 100644 index 0000000000000..17370710a9d3d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings19_ES6.ts] + +var x = "\u{}"; + + +//// [unicodeExtendedEscapesInStrings19_ES6.js] +var x = "\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt new file mode 100644 index 0000000000000..949d0a95ae75f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts (1 errors) ==== + + var x = "\u{"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.js new file mode 100644 index 0000000000000..74e664ccb9986 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings20_ES5.ts] + +var x = "\u{"; + + +//// [unicodeExtendedEscapesInStrings20_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt new file mode 100644 index 0000000000000..94297328683cc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts (1 errors) ==== + + var x = "\u{"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.js new file mode 100644 index 0000000000000..a06b6d9f81fb7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings20_ES6.ts] + +var x = "\u{"; + + +//// [unicodeExtendedEscapesInStrings20_ES6.js] +var x = "\u{"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt new file mode 100644 index 0000000000000..d722dc8ed067d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts(2,15): error TS1199: Unterminated Unicode escape sequence. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts (1 errors) ==== + + var x = "\u{67"; + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.js new file mode 100644 index 0000000000000..d72651ea7527e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings21_ES5.ts] + +var x = "\u{67"; + + +//// [unicodeExtendedEscapesInStrings21_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt new file mode 100644 index 0000000000000..48353fb19e319 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts(2,15): error TS1199: Unterminated Unicode escape sequence. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts (1 errors) ==== + + var x = "\u{67"; + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.js new file mode 100644 index 0000000000000..66c5e879841e9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings21_ES6.ts] + +var x = "\u{67"; + + +//// [unicodeExtendedEscapesInStrings21_ES6.js] +var x = "\u{67"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt new file mode 100644 index 0000000000000..1b24e491ad714 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts(2,27): error TS1199: Unterminated Unicode escape sequence. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts (1 errors) ==== + + var x = "\u{00000000000067"; + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.js new file mode 100644 index 0000000000000..b1a9ef3ec1908 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings22_ES5.ts] + +var x = "\u{00000000000067"; + + +//// [unicodeExtendedEscapesInStrings22_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt new file mode 100644 index 0000000000000..9627d4aadbcb3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts(2,27): error TS1199: Unterminated Unicode escape sequence. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts (1 errors) ==== + + var x = "\u{00000000000067"; + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.js new file mode 100644 index 0000000000000..7d778bec55a7d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings22_ES6.ts] + +var x = "\u{00000000000067"; + + +//// [unicodeExtendedEscapesInStrings22_ES6.js] +var x = "\u{00000000000067"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js new file mode 100644 index 0000000000000..fd993a100a4bb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings23_ES5.ts] + +var x = "\u{00000000000067}"; + + +//// [unicodeExtendedEscapesInStrings23_ES5.js] +var x = "g"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.types new file mode 100644 index 0000000000000..63bcf37051627 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts === + +var x = "\u{00000000000067}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js new file mode 100644 index 0000000000000..105ddbbb23323 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings23_ES6.ts] + +var x = "\u{00000000000067}"; + + +//// [unicodeExtendedEscapesInStrings23_ES6.js] +var x = "\u{00000000000067}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.types new file mode 100644 index 0000000000000..2601f6028693f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts === + +var x = "\u{00000000000067}"; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt new file mode 100644 index 0000000000000..ef70987871437 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts(2,27): error TS1199: Unterminated Unicode escape sequence. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts (1 errors) ==== + + var x = "\u{00000000000067 + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.js new file mode 100644 index 0000000000000..6656129b4d565 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings24_ES5.ts] + +var x = "\u{00000000000067 + + +//// [unicodeExtendedEscapesInStrings24_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt new file mode 100644 index 0000000000000..8ddc365aa9405 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts(2,27): error TS1199: Unterminated Unicode escape sequence. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts (1 errors) ==== + + var x = "\u{00000000000067 + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.js new file mode 100644 index 0000000000000..0a7a35d861ae7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings24_ES6.ts] + +var x = "\u{00000000000067 + + +//// [unicodeExtendedEscapesInStrings24_ES6.js] +var x = "\u{00000000000067; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt new file mode 100644 index 0000000000000..afa8fa143c0f9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts(2,28): error TS1002: Unterminated string literal. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts (1 errors) ==== + + var x = "\u{00000000000067} + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.js new file mode 100644 index 0000000000000..bc84bb4211360 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings25_ES5.ts] + +var x = "\u{00000000000067} + + +//// [unicodeExtendedEscapesInStrings25_ES5.js] +var x = "g"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt new file mode 100644 index 0000000000000..7118024206e43 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts(2,28): error TS1002: Unterminated string literal. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts (1 errors) ==== + + var x = "\u{00000000000067} + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.js new file mode 100644 index 0000000000000..3aee74d99b20d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInStrings25_ES6.ts] + +var x = "\u{00000000000067} + + +//// [unicodeExtendedEscapesInStrings25_ES6.js] +var x = "\u{00000000000067}; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js new file mode 100644 index 0000000000000..1b312d2431dd4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates01_ES5.ts] + +var x = `\u{0}`; + + +//// [unicodeExtendedEscapesInTemplates01_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.types new file mode 100644 index 0000000000000..e0108da56965b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts === + +var x = `\u{0}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js new file mode 100644 index 0000000000000..1311521fa54c6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates01_ES6.ts] + +var x = `\u{0}`; + + +//// [unicodeExtendedEscapesInTemplates01_ES6.js] +var x = `\u{0}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.types new file mode 100644 index 0000000000000..f8aed1df46486 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts === + +var x = `\u{0}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js new file mode 100644 index 0000000000000..05bb8d6eaec64 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates02_ES5.ts] + +var x = `\u{00}`; + + +//// [unicodeExtendedEscapesInTemplates02_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.types new file mode 100644 index 0000000000000..da23666c4f7a9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts === + +var x = `\u{00}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js new file mode 100644 index 0000000000000..7b4483dfb4fcd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates02_ES6.ts] + +var x = `\u{00}`; + + +//// [unicodeExtendedEscapesInTemplates02_ES6.js] +var x = `\u{00}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.types new file mode 100644 index 0000000000000..008d41b6793c9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts === + +var x = `\u{00}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js new file mode 100644 index 0000000000000..0ded955b074f8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates03_ES5.ts] + +var x = `\u{0000}`; + + +//// [unicodeExtendedEscapesInTemplates03_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.types new file mode 100644 index 0000000000000..3465eeedae3b1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts === + +var x = `\u{0000}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js new file mode 100644 index 0000000000000..25cd8e4b1229a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates03_ES6.ts] + +var x = `\u{0000}`; + + +//// [unicodeExtendedEscapesInTemplates03_ES6.js] +var x = `\u{0000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.types new file mode 100644 index 0000000000000..f47d8b6f8de8d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts === + +var x = `\u{0000}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js new file mode 100644 index 0000000000000..01d86e88a02ea --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates04_ES5.ts] + +var x = `\u{00000000}`; + + +//// [unicodeExtendedEscapesInTemplates04_ES5.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.types new file mode 100644 index 0000000000000..ed85074ce7b87 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts === + +var x = `\u{00000000}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js new file mode 100644 index 0000000000000..ef79d6750c731 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates04_ES6.ts] + +var x = `\u{00000000}`; + + +//// [unicodeExtendedEscapesInTemplates04_ES6.js] +var x = `\u{00000000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.types new file mode 100644 index 0000000000000..134d7e74d97f8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts === + +var x = `\u{00000000}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.js new file mode 100644 index 0000000000000..58372d69e9cfa --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates05_ES5.ts] + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; + + +//// [unicodeExtendedEscapesInTemplates05_ES5.js] +var x = "Hello world"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.types new file mode 100644 index 0000000000000..4c2d3bcaabd86 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts === + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.js new file mode 100644 index 0000000000000..8befdcac07887 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates05_ES6.ts] + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; + + +//// [unicodeExtendedEscapesInTemplates05_ES6.js] +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.types new file mode 100644 index 0000000000000..b7ea9bdacb79e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts === + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.js new file mode 100644 index 0000000000000..5eb89de178b91 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInTemplates06_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; + + +//// [unicodeExtendedEscapesInTemplates06_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\uDBFF\uDFFF"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.types new file mode 100644 index 0000000000000..7df17768955e2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.js new file mode 100644 index 0000000000000..a00c0c8759403 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInTemplates06_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; + + +//// [unicodeExtendedEscapesInTemplates06_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.types new file mode 100644 index 0000000000000..c1c62840534ee --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.types @@ -0,0 +1,7 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt new file mode 100644 index 0000000000000..ec10a5434f2cd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt @@ -0,0 +1,11 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts(4,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts (1 errors) ==== + + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = `\u{110000}`; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.js new file mode 100644 index 0000000000000..53ac3eec30c96 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInTemplates07_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{110000}`; + + +//// [unicodeExtendedEscapesInTemplates07_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.errors.txt new file mode 100644 index 0000000000000..a8989363939b3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.errors.txt @@ -0,0 +1,11 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts(4,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts (1 errors) ==== + + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = `\u{110000}`; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.js new file mode 100644 index 0000000000000..95f6989adf4e9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.js @@ -0,0 +1,11 @@ +//// [unicodeExtendedEscapesInTemplates07_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{110000}`; + + +//// [unicodeExtendedEscapesInTemplates07_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{110000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.js new file mode 100644 index 0000000000000..955007898596c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInTemplates08_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; + + +//// [unicodeExtendedEscapesInTemplates08_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\uFFFF"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.types new file mode 100644 index 0000000000000..f889bd268e895 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.js new file mode 100644 index 0000000000000..e4611073f8f74 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInTemplates08_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; + + +//// [unicodeExtendedEscapesInTemplates08_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.types new file mode 100644 index 0000000000000..76bb7148e6dc1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.js new file mode 100644 index 0000000000000..9bb44e7b246b4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInTemplates09_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; + + +//// [unicodeExtendedEscapesInTemplates09_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\uD800\uDC00"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.types new file mode 100644 index 0000000000000..d821032140137 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.js new file mode 100644 index 0000000000000..940cdccb24790 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.js @@ -0,0 +1,13 @@ +//// [unicodeExtendedEscapesInTemplates09_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; + + +//// [unicodeExtendedEscapesInTemplates09_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.types new file mode 100644 index 0000000000000..3b6edb2f91bbd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.js new file mode 100644 index 0000000000000..affe915c0dd82 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInTemplates10_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; + + +//// [unicodeExtendedEscapesInTemplates10_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\uD800"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.types new file mode 100644 index 0000000000000..e8a47efe0cde7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.js new file mode 100644 index 0000000000000..8e4458e620840 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInTemplates10_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; + + +//// [unicodeExtendedEscapesInTemplates10_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.types new file mode 100644 index 0000000000000..77f9bd420f20a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.js new file mode 100644 index 0000000000000..576d732849023 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInTemplates11_ES5.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; + + +//// [unicodeExtendedEscapesInTemplates11_ES5.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\uDC00"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.types new file mode 100644 index 0000000000000..d6dce3dbfc623 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.js new file mode 100644 index 0000000000000..cf4ee38d765d4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.js @@ -0,0 +1,15 @@ +//// [unicodeExtendedEscapesInTemplates11_ES6.ts] + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; + + +//// [unicodeExtendedEscapesInTemplates11_ES6.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.types new file mode 100644 index 0000000000000..213f009c53d03 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts === + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt new file mode 100644 index 0000000000000..d786d97772c5b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts(2,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts (1 errors) ==== + + var x = `\u{FFFFFFFF}`; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.js new file mode 100644 index 0000000000000..2b0bc3a06503d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates12_ES5.ts] + +var x = `\u{FFFFFFFF}`; + + +//// [unicodeExtendedEscapesInTemplates12_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt new file mode 100644 index 0000000000000..555f212fbe2ef --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts(2,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts (1 errors) ==== + + var x = `\u{FFFFFFFF}`; + +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.js new file mode 100644 index 0000000000000..5d3610d8714ee --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates12_ES6.ts] + +var x = `\u{FFFFFFFF}`; + + +//// [unicodeExtendedEscapesInTemplates12_ES6.js] +var x = `\u{FFFFFFFF}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js new file mode 100644 index 0000000000000..ce151783523ff --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates13_ES5.ts] + +var x = `\u{DDDDD}`; + + +//// [unicodeExtendedEscapesInTemplates13_ES5.js] +var x = "\uDB37\uDDDD"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.types new file mode 100644 index 0000000000000..70b0f580f021f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts === + +var x = `\u{DDDDD}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js new file mode 100644 index 0000000000000..3ebe144e9e6d2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates13_ES6.ts] + +var x = `\u{DDDDD}`; + + +//// [unicodeExtendedEscapesInTemplates13_ES6.js] +var x = `\u{DDDDD}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.types new file mode 100644 index 0000000000000..c0be97ce558e1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts === + +var x = `\u{DDDDD}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt new file mode 100644 index 0000000000000..6179a41b3476e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts(3,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts (1 errors) ==== + + // Shouldn't work, negatives are not allowed. + var x = `\u{-DDDD}`; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.js new file mode 100644 index 0000000000000..cc2c1c1158e02 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.js @@ -0,0 +1,9 @@ +//// [unicodeExtendedEscapesInTemplates14_ES5.ts] + +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; + + +//// [unicodeExtendedEscapesInTemplates14_ES5.js] +// Shouldn't work, negatives are not allowed. +var x = "-DDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt new file mode 100644 index 0000000000000..86a956159a7bc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts(3,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts (1 errors) ==== + + // Shouldn't work, negatives are not allowed. + var x = `\u{-DDDD}`; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.js new file mode 100644 index 0000000000000..d5bbd8dc66031 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.js @@ -0,0 +1,9 @@ +//// [unicodeExtendedEscapesInTemplates14_ES6.ts] + +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; + + +//// [unicodeExtendedEscapesInTemplates14_ES6.js] +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js new file mode 100644 index 0000000000000..a383fd516bb1f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates15_ES5.ts] + +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; + + +//// [unicodeExtendedEscapesInTemplates15_ES5.js] +var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.types new file mode 100644 index 0000000000000..95eb2a2f75c15 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts === + +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.js new file mode 100644 index 0000000000000..52d016f826db5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates15_ES6.ts] + +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; + + +//// [unicodeExtendedEscapesInTemplates15_ES6.js] +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.types new file mode 100644 index 0000000000000..d7a42b3ff2475 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts === + +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js new file mode 100644 index 0000000000000..1a47acc902737 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates16_ES5.ts] + +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; + + +//// [unicodeExtendedEscapesInTemplates16_ES5.js] +var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.types new file mode 100644 index 0000000000000..9eb8ed1e645e2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts === + +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.js new file mode 100644 index 0000000000000..cd1c62db2144e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates16_ES6.ts] + +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; + + +//// [unicodeExtendedEscapesInTemplates16_ES6.js] +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.types new file mode 100644 index 0000000000000..c5413c44c9224 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts === + +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt new file mode 100644 index 0000000000000..006a455963c7c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt @@ -0,0 +1,15 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts(2,18): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts(2,23): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts (3 errors) ==== + + var x = `\u{r}\u{n}\u{t}`; + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.js new file mode 100644 index 0000000000000..fbab1ea1149f5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates17_ES5.ts] + +var x = `\u{r}\u{n}\u{t}`; + + +//// [unicodeExtendedEscapesInTemplates17_ES5.js] +var x = "r}n}t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt new file mode 100644 index 0000000000000..88dca427b67e6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt @@ -0,0 +1,15 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts(2,18): error TS1125: Hexadecimal digit expected. +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts(2,23): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts (3 errors) ==== + + var x = `\u{r}\u{n}\u{t}`; + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.js new file mode 100644 index 0000000000000..16bae560521a6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates17_ES6.ts] + +var x = `\u{r}\u{n}\u{t}`; + + +//// [unicodeExtendedEscapesInTemplates17_ES6.js] +var x = `\u{r}\u{n}\u{t}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js new file mode 100644 index 0000000000000..62df3ca631ac9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates18_ES5.ts] + +var x = `\u{65}\u{65}`; + + +//// [unicodeExtendedEscapesInTemplates18_ES5.js] +var x = "ee"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.types new file mode 100644 index 0000000000000..84cd31b0dc0d2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts === + +var x = `\u{65}\u{65}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js new file mode 100644 index 0000000000000..5f3da7837bd1b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates18_ES6.ts] + +var x = `\u{65}\u{65}`; + + +//// [unicodeExtendedEscapesInTemplates18_ES6.js] +var x = `\u{65}\u{65}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.types new file mode 100644 index 0000000000000..b7390bb9b68e0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts === + +var x = `\u{65}\u{65}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt new file mode 100644 index 0000000000000..47d3880a7618a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts (1 errors) ==== + + var x = `\u{}`; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.js new file mode 100644 index 0000000000000..03e9f1e405625 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates19_ES5.ts] + +var x = `\u{}`; + + +//// [unicodeExtendedEscapesInTemplates19_ES5.js] +var x = ""; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt new file mode 100644 index 0000000000000..d22bab8d28fa8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt @@ -0,0 +1,9 @@ +tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts (1 errors) ==== + + var x = `\u{}`; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.js new file mode 100644 index 0000000000000..9833fd84ba865 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates19_ES6.ts] + +var x = `\u{}`; + + +//// [unicodeExtendedEscapesInTemplates19_ES6.js] +var x = `\u{}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.js new file mode 100644 index 0000000000000..cbc5319d89700 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates20_ES5.ts] + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; + + +//// [unicodeExtendedEscapesInTemplates20_ES5.js] +var x = "Hello" + " " + "world"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.types new file mode 100644 index 0000000000000..cd29759d49e41 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts === + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; +>x : string + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.js new file mode 100644 index 0000000000000..c2b98f755339c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.js @@ -0,0 +1,7 @@ +//// [unicodeExtendedEscapesInTemplates20_ES6.ts] + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; + + +//// [unicodeExtendedEscapesInTemplates20_ES6.js] +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.types new file mode 100644 index 0000000000000..92722ab2df5d8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.types @@ -0,0 +1,5 @@ +=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts === + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; +>x : string + diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts new file mode 100644 index 0000000000000..eb02cf47018db --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{0}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts new file mode 100644 index 0000000000000..c287f529b0f0c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{0}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts new file mode 100644 index 0000000000000..7885e4449acfa --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{00}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts new file mode 100644 index 0000000000000..45affc888b388 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{00}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts new file mode 100644 index 0000000000000..22d2a1588c72d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{0000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts new file mode 100644 index 0000000000000..a66cfd534c716 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{0000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts new file mode 100644 index 0000000000000..5359adbf8ccf8 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{00000000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts new file mode 100644 index 0000000000000..1b897565ef42e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{00000000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts new file mode 100644 index 0000000000000..2bee2de87a0ba --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts new file mode 100644 index 0000000000000..77c98f28853eb --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts new file mode 100644 index 0000000000000..1af6018179845 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts @@ -0,0 +1,5 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts new file mode 100644 index 0000000000000..9f77ab0646d0c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts @@ -0,0 +1,5 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts new file mode 100644 index 0000000000000..4a0b3d6bda61e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts @@ -0,0 +1,5 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts new file mode 100644 index 0000000000000..0d1a3b57dd285 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts @@ -0,0 +1,5 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts new file mode 100644 index 0000000000000..b8c863126533d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts @@ -0,0 +1,6 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts new file mode 100644 index 0000000000000..94ad08e6edfff --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts @@ -0,0 +1,6 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts new file mode 100644 index 0000000000000..cc92efd69161d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts @@ -0,0 +1,6 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts new file mode 100644 index 0000000000000..a1f2f2a74bbce --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts @@ -0,0 +1,6 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts new file mode 100644 index 0000000000000..921f17b009cd5 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts @@ -0,0 +1,7 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts new file mode 100644 index 0000000000000..ade4d57ae0954 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts @@ -0,0 +1,7 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = /\u{D800}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts new file mode 100644 index 0000000000000..136bb692826e9 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts @@ -0,0 +1,7 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts new file mode 100644 index 0000000000000..ecfd43a36b29e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts @@ -0,0 +1,7 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = /\u{DC00}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts new file mode 100644 index 0000000000000..43b8ac377594e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{FFFFFFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts new file mode 100644 index 0000000000000..c01c8f41d1e69 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{FFFFFFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts new file mode 100644 index 0000000000000..535ae033765e7 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{DDDDD}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts new file mode 100644 index 0000000000000..812e90be12054 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{DDDDD}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts new file mode 100644 index 0000000000000..0594590af5e9d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts @@ -0,0 +1,4 @@ +// @target: es5 + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts new file mode 100644 index 0000000000000..a48e688b2094f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts @@ -0,0 +1,4 @@ +// @target: es6 + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts new file mode 100644 index 0000000000000..b616bf1b24d99 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts new file mode 100644 index 0000000000000..b586d3098069a --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts new file mode 100644 index 0000000000000..cd246e7413713 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts new file mode 100644 index 0000000000000..4a22da6847ea0 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts new file mode 100644 index 0000000000000..14cb600474bff --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{r}\u{n}\u{t}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts new file mode 100644 index 0000000000000..5231cf6be36be --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{r}\u{n}\u{t}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts new file mode 100644 index 0000000000000..38fe89ac3b240 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{65}\u{65}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts new file mode 100644 index 0000000000000..f3977bdd9c7f3 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{65}\u{65}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts new file mode 100644 index 0000000000000..0bc5643a43c38 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = /\u{}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts new file mode 100644 index 0000000000000..2a34f16ceefa6 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = /\u{}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts new file mode 100644 index 0000000000000..45ee21b10995d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{0}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts new file mode 100644 index 0000000000000..e6406ac6a7280 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{0}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts new file mode 100644 index 0000000000000..2e32741b6ee19 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{00}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts new file mode 100644 index 0000000000000..c98efca58a3ff --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{00}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts new file mode 100644 index 0000000000000..928ed3a665281 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{0000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts new file mode 100644 index 0000000000000..b67eedd889624 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{0000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts new file mode 100644 index 0000000000000..2bac49c8aeb43 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{00000000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts new file mode 100644 index 0000000000000..2d53d9883b42c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{00000000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts new file mode 100644 index 0000000000000..f006c0bee8909 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts new file mode 100644 index 0000000000000..890e60c770ec9 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts new file mode 100644 index 0000000000000..b456e35a76bf6 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts @@ -0,0 +1,5 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts new file mode 100644 index 0000000000000..33a7e72ef5315 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts @@ -0,0 +1,5 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{10FFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts new file mode 100644 index 0000000000000..717212da028f3 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts @@ -0,0 +1,5 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{110000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts new file mode 100644 index 0000000000000..aa98d80a70543 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts @@ -0,0 +1,5 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = "\u{110000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts new file mode 100644 index 0000000000000..eba3f3b085b22 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts @@ -0,0 +1,6 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts new file mode 100644 index 0000000000000..08e217bc8ad96 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts @@ -0,0 +1,6 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = "\u{FFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts new file mode 100644 index 0000000000000..5b3c175be0e0a --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts @@ -0,0 +1,6 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts new file mode 100644 index 0000000000000..2a756d9aaa2c3 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts @@ -0,0 +1,6 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = "\u{10000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts new file mode 100644 index 0000000000000..9f5bafe85f4f7 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts @@ -0,0 +1,7 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts new file mode 100644 index 0000000000000..f4198c989b5f4 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts @@ -0,0 +1,7 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = "\u{D800}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts new file mode 100644 index 0000000000000..ff2af662767c2 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts @@ -0,0 +1,7 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts new file mode 100644 index 0000000000000..4a99f8ab9ef6f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts @@ -0,0 +1,7 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = "\u{DC00}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts new file mode 100644 index 0000000000000..f8ec9e605f669 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{FFFFFFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts new file mode 100644 index 0000000000000..c1b4119fdf375 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{FFFFFFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts new file mode 100644 index 0000000000000..d1d8c6d3eee30 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{DDDDD}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts new file mode 100644 index 0000000000000..9d359562d40bc --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{DDDDD}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts new file mode 100644 index 0000000000000..b122578014c9d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts @@ -0,0 +1,4 @@ +// @target: es5 + +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts new file mode 100644 index 0000000000000..9b8786417db17 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts @@ -0,0 +1,4 @@ +// @target: es6 + +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts new file mode 100644 index 0000000000000..4418e2d69e2cb --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts new file mode 100644 index 0000000000000..eba0d1969cabd --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts new file mode 100644 index 0000000000000..4f34e96a1a34f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts new file mode 100644 index 0000000000000..9cb17be1132a1 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts new file mode 100644 index 0000000000000..047a74240d48c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts new file mode 100644 index 0000000000000..6adcc7ff543d3 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts new file mode 100644 index 0000000000000..1ce7990ca67c9 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{65}\u{65}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts new file mode 100644 index 0000000000000..b6f8025a66388 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{65}\u{65}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts new file mode 100644 index 0000000000000..84c23026e525f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts new file mode 100644 index 0000000000000..6cc35d178bcb3 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts new file mode 100644 index 0000000000000..0044877f223f2 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts new file mode 100644 index 0000000000000..26fb00fa4058e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts new file mode 100644 index 0000000000000..1956008e439c2 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{67"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts new file mode 100644 index 0000000000000..318ca43a93a3d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{67"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts new file mode 100644 index 0000000000000..fa2521ef6d787 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{00000000000067"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts new file mode 100644 index 0000000000000..11d5f011763dc --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{00000000000067"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts new file mode 100644 index 0000000000000..d78a62132a60a --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{00000000000067}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts new file mode 100644 index 0000000000000..f47e18a60e909 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{00000000000067}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts new file mode 100644 index 0000000000000..44933c03864db --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{00000000000067 diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts new file mode 100644 index 0000000000000..dd89512753cf5 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{00000000000067 diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts new file mode 100644 index 0000000000000..c2e1b8c4ee531 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = "\u{00000000000067} diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts new file mode 100644 index 0000000000000..21915aafccab7 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = "\u{00000000000067} diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts new file mode 100644 index 0000000000000..a3f5ca04e9912 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{0}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts new file mode 100644 index 0000000000000..c70a5406d19e5 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{0}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts new file mode 100644 index 0000000000000..408913fb44408 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{00}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts new file mode 100644 index 0000000000000..3337977619c80 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{00}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts new file mode 100644 index 0000000000000..006d51b5618c2 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{0000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts new file mode 100644 index 0000000000000..88605749bb6f1 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{0000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts new file mode 100644 index 0000000000000..aa24d50d8f3f5 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{00000000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts new file mode 100644 index 0000000000000..b9cd247ebf349 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{00000000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts new file mode 100644 index 0000000000000..fce22dd9fbd4b --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts new file mode 100644 index 0000000000000..02c9596ebfade --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts new file mode 100644 index 0000000000000..f64e434813575 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts @@ -0,0 +1,5 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts new file mode 100644 index 0000000000000..fbd9f33ed5a8d --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts @@ -0,0 +1,5 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{10FFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts new file mode 100644 index 0000000000000..f5ee893a5da82 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts @@ -0,0 +1,5 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{110000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts new file mode 100644 index 0000000000000..9a7d2d08ba72b --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts @@ -0,0 +1,5 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = `\u{110000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts new file mode 100644 index 0000000000000..8196cc5425782 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts @@ -0,0 +1,6 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts new file mode 100644 index 0000000000000..cbecb8db2b870 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts @@ -0,0 +1,6 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = `\u{FFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts new file mode 100644 index 0000000000000..e298707289351 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts @@ -0,0 +1,6 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts new file mode 100644 index 0000000000000..e1fbd90adbac1 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts @@ -0,0 +1,6 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = `\u{10000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts new file mode 100644 index 0000000000000..cdaaacc605d0c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts @@ -0,0 +1,7 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts new file mode 100644 index 0000000000000..3e803853fecf6 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts @@ -0,0 +1,7 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. +// Although we should just get back a single code point value of 0xD800, +// this is a useful edge-case test. +var x = `\u{D800}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts new file mode 100644 index 0000000000000..8cc530143f0d4 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts @@ -0,0 +1,7 @@ +// @target: es5 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts new file mode 100644 index 0000000000000..bdaf39469d46b --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts @@ -0,0 +1,7 @@ +// @target: es6 + +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. +// Although we should just get back a single code point value of 0xDC00, +// this is a useful edge-case test. +var x = `\u{DC00}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts new file mode 100644 index 0000000000000..c6208320d6ea3 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{FFFFFFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts new file mode 100644 index 0000000000000..de05ff15bc68f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{FFFFFFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts new file mode 100644 index 0000000000000..af7cf18db1543 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{DDDDD}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts new file mode 100644 index 0000000000000..cf4dc13951eae --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{DDDDD}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts new file mode 100644 index 0000000000000..dbdbfc7167359 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts @@ -0,0 +1,4 @@ +// @target: es5 + +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts new file mode 100644 index 0000000000000..ede4fa3b16d21 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts @@ -0,0 +1,4 @@ +// @target: es6 + +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts new file mode 100644 index 0000000000000..f338a79458ced --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts new file mode 100644 index 0000000000000..260f3efa00a0c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts new file mode 100644 index 0000000000000..c1cddec50d491 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts new file mode 100644 index 0000000000000..c7dd77e3cb018 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts new file mode 100644 index 0000000000000..9b1a60569db44 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{r}\u{n}\u{t}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts new file mode 100644 index 0000000000000..47585de2acbe9 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{r}\u{n}\u{t}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts new file mode 100644 index 0000000000000..1babc2a3035e4 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{65}\u{65}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts new file mode 100644 index 0000000000000..8ef16ef38bcb0 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{65}\u{65}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts new file mode 100644 index 0000000000000..cf55400a03388 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts new file mode 100644 index 0000000000000..957a0c68105ae --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts new file mode 100644 index 0000000000000..1a258ffbf2076 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts @@ -0,0 +1,3 @@ +// @target: es5 + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts new file mode 100644 index 0000000000000..55d87dbfed74a --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts @@ -0,0 +1,3 @@ +// @target: es6 + +var x = `\u{48}\u{65}\u{6c}\u{6c}\u{6f}${`\u{20}\u{020}\u{0020}\u{000020}`}\u{77}\u{6f}\u{72}\u{6c}\u{64}`;