From 3b16d7461adfaf8563f0ae3ac3295b37e3ab2129 Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Fri, 1 Sep 2023 16:21:45 +0800 Subject: [PATCH 01/10] Provide Syntax Checking for Regular Expressions --- src/compiler/diagnosticMessages.json | 148 ++ src/compiler/scanner.ts | 1187 +++++++++++++++-- src/compiler/types.ts | 19 +- src/testRunner/unittests/incrementalParser.ts | 2 +- tests/baselines/reference/api/typescript.d.ts | 15 + ...angeYourTargetLibraryES2016Plus.errors.txt | 20 +- ...manyCompilerErrorsInTheTwoFiles.errors.txt | 16 +- ...numericSeparators.unicodeEscape.errors.txt | 62 +- .../parser.numericSeparators.unicodeEscape.js | 24 +- .../reference/parser579071.errors.txt | 7 + .../parserRegularExpression1.errors.txt | 6 +- ...gularExpressionDivideAmbiguity3.errors.txt | 5 +- ...gularExpressionDivideAmbiguity4.errors.txt | 7 +- ...parserRegularExpressionDivideAmbiguity4.js | 2 +- ...serRegularExpressionDivideAmbiguity4.types | 4 +- ...pressionScanning(target=es2015).errors.txt | 719 ++++++++++ ...egularExpressionScanning(target=es2015).js | 92 ++ ...rExpressionScanning(target=es2015).symbols | 50 + ...larExpressionScanning(target=es2015).types | 118 ++ ...rExpressionScanning(target=es3).errors.txt | 742 +++++++++++ .../regularExpressionScanning(target=es3).js | 92 ++ ...ularExpressionScanning(target=es3).symbols | 50 + ...egularExpressionScanning(target=es3).types | 118 ++ ...rExpressionScanning(target=es5).errors.txt | 740 ++++++++++ .../regularExpressionScanning(target=es5).js | 92 ++ ...ularExpressionScanning(target=es5).symbols | 50 + ...egularExpressionScanning(target=es5).types | 118 ++ ...pressionScanning(target=esnext).errors.txt | 641 +++++++++ ...egularExpressionScanning(target=esnext).js | 92 ++ ...rExpressionScanning(target=esnext).symbols | 50 + ...larExpressionScanning(target=esnext).types | 118 ++ .../reference/shebangError.errors.txt | 10 +- .../templateLiteralEscapeSequence.errors.txt | 16 +- ...egularExpressions01(target=es5).errors.txt | 8 + ...capesInRegularExpressions01(target=es5).js | 8 + ...InRegularExpressions01(target=es5).symbols | 6 + ...esInRegularExpressions01(target=es5).types | 7 + ...capesInRegularExpressions01(target=es6).js | 8 + ...InRegularExpressions01(target=es6).symbols | 6 + ...esInRegularExpressions01(target=es6).types | 7 + ...tendedEscapesInRegularExpressions01_ES5.js | 8 - ...dEscapesInRegularExpressions01_ES5.symbols | 6 - ...dedEscapesInRegularExpressions01_ES5.types | 7 - ...tendedEscapesInRegularExpressions01_ES6.js | 8 - ...dEscapesInRegularExpressions01_ES6.symbols | 6 - ...dedEscapesInRegularExpressions01_ES6.types | 7 - ...egularExpressions02(target=es5).errors.txt | 8 + ...capesInRegularExpressions02(target=es5).js | 8 + ...InRegularExpressions02(target=es5).symbols | 6 + ...esInRegularExpressions02(target=es5).types | 7 + ...capesInRegularExpressions02(target=es6).js | 8 + ...InRegularExpressions02(target=es6).symbols | 6 + ...esInRegularExpressions02(target=es6).types | 7 + ...tendedEscapesInRegularExpressions02_ES5.js | 8 - ...dEscapesInRegularExpressions02_ES5.symbols | 6 - ...dedEscapesInRegularExpressions02_ES5.types | 7 - ...tendedEscapesInRegularExpressions02_ES6.js | 8 - ...dEscapesInRegularExpressions02_ES6.symbols | 6 - ...dedEscapesInRegularExpressions02_ES6.types | 7 - ...egularExpressions03(target=es5).errors.txt | 8 + ...capesInRegularExpressions03(target=es5).js | 8 + ...InRegularExpressions03(target=es5).symbols | 6 + ...esInRegularExpressions03(target=es5).types | 7 + ...capesInRegularExpressions03(target=es6).js | 8 + ...InRegularExpressions03(target=es6).symbols | 6 + ...esInRegularExpressions03(target=es6).types | 7 + ...tendedEscapesInRegularExpressions03_ES5.js | 8 - ...dEscapesInRegularExpressions03_ES5.symbols | 6 - ...dedEscapesInRegularExpressions03_ES5.types | 7 - ...tendedEscapesInRegularExpressions03_ES6.js | 8 - ...dEscapesInRegularExpressions03_ES6.symbols | 6 - ...dedEscapesInRegularExpressions03_ES6.types | 7 - ...egularExpressions04(target=es5).errors.txt | 8 + ...capesInRegularExpressions04(target=es5).js | 8 + ...InRegularExpressions04(target=es5).symbols | 6 + ...esInRegularExpressions04(target=es5).types | 7 + ...capesInRegularExpressions04(target=es6).js | 8 + ...InRegularExpressions04(target=es6).symbols | 6 + ...esInRegularExpressions04(target=es6).types | 7 + ...tendedEscapesInRegularExpressions04_ES5.js | 8 - ...dEscapesInRegularExpressions04_ES5.symbols | 6 - ...dedEscapesInRegularExpressions04_ES5.types | 7 - ...tendedEscapesInRegularExpressions04_ES6.js | 8 - ...dEscapesInRegularExpressions04_ES6.symbols | 6 - ...dedEscapesInRegularExpressions04_ES6.types | 7 - ...egularExpressions05(target=es5).errors.txt | 8 + ...capesInRegularExpressions05(target=es5).js | 8 + ...nRegularExpressions05(target=es5).symbols} | 8 +- ...sInRegularExpressions05(target=es5).types} | 8 +- ...capesInRegularExpressions05(target=es6).js | 8 + ...nRegularExpressions05(target=es6).symbols} | 8 +- ...sInRegularExpressions05(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions05_ES5.js | 8 - ...tendedEscapesInRegularExpressions05_ES6.js | 8 - ...egularExpressions06(target=es5).errors.txt | 10 + ...capesInRegularExpressions06(target=es5).js | 12 + ...nRegularExpressions06(target=es5).symbols} | 8 +- ...sInRegularExpressions06(target=es5).types} | 8 +- ...capesInRegularExpressions06(target=es6).js | 12 + ...nRegularExpressions06(target=es6).symbols} | 8 +- ...sInRegularExpressions06(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions06_ES5.js | 12 - ...tendedEscapesInRegularExpressions06_ES6.js | 12 - ...egularExpressions07(target=es5).errors.txt | 13 + ...capesInRegularExpressions07(target=es5).js | 12 + ...nRegularExpressions07(target=es5).symbols} | 8 +- ...sInRegularExpressions07(target=es5).types} | 8 +- ...egularExpressions07(target=es6).errors.txt | 10 + ...capesInRegularExpressions07(target=es6).js | 12 + ...nRegularExpressions07(target=es6).symbols} | 8 +- ...sInRegularExpressions07(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions07_ES5.js | 12 - ...tendedEscapesInRegularExpressions07_ES6.js | 12 - ...egularExpressions08(target=es5).errors.txt | 11 + ...capesInRegularExpressions08(target=es5).js | 14 + ...nRegularExpressions08(target=es5).symbols} | 8 +- ...sInRegularExpressions08(target=es5).types} | 8 +- ...capesInRegularExpressions08(target=es6).js | 14 + ...nRegularExpressions08(target=es6).symbols} | 8 +- ...sInRegularExpressions08(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions08_ES5.js | 14 - ...tendedEscapesInRegularExpressions08_ES6.js | 14 - ...egularExpressions09(target=es5).errors.txt | 11 + ...capesInRegularExpressions09(target=es5).js | 14 + ...nRegularExpressions09(target=es5).symbols} | 8 +- ...sInRegularExpressions09(target=es5).types} | 8 +- ...capesInRegularExpressions09(target=es6).js | 14 + ...nRegularExpressions09(target=es6).symbols} | 8 +- ...sInRegularExpressions09(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions09_ES5.js | 14 - ...tendedEscapesInRegularExpressions09_ES6.js | 14 - ...egularExpressions10(target=es5).errors.txt | 12 + ...capesInRegularExpressions10(target=es5).js | 16 + ...nRegularExpressions10(target=es5).symbols} | 8 +- ...sInRegularExpressions10(target=es5).types} | 8 +- ...capesInRegularExpressions10(target=es6).js | 16 + ...nRegularExpressions10(target=es6).symbols} | 8 +- ...sInRegularExpressions10(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions10_ES5.js | 16 - ...tendedEscapesInRegularExpressions10_ES6.js | 16 - ...egularExpressions11(target=es5).errors.txt | 12 + ...capesInRegularExpressions11(target=es5).js | 16 + ...nRegularExpressions11(target=es5).symbols} | 8 +- ...sInRegularExpressions11(target=es5).types} | 8 +- ...capesInRegularExpressions11(target=es6).js | 16 + ...nRegularExpressions11(target=es6).symbols} | 8 +- ...sInRegularExpressions11(target=es6).types} | 8 +- ...tendedEscapesInRegularExpressions11_ES5.js | 16 - ...tendedEscapesInRegularExpressions11_ES6.js | 16 - ...egularExpressions12(target=es5).errors.txt | 11 + ...capesInRegularExpressions12(target=es5).js | 8 + ...InRegularExpressions12(target=es5).symbols | 6 + ...esInRegularExpressions12(target=es5).types | 7 + ...egularExpressions12(target=es6).errors.txt | 8 + ...capesInRegularExpressions12(target=es6).js | 8 + ...InRegularExpressions12(target=es6).symbols | 6 + ...esInRegularExpressions12(target=es6).types | 7 + ...tendedEscapesInRegularExpressions12_ES5.js | 8 - ...dEscapesInRegularExpressions12_ES5.symbols | 6 - ...dedEscapesInRegularExpressions12_ES5.types | 7 - ...tendedEscapesInRegularExpressions12_ES6.js | 8 - ...dEscapesInRegularExpressions12_ES6.symbols | 6 - ...dedEscapesInRegularExpressions12_ES6.types | 7 - ...egularExpressions13(target=es5).errors.txt | 8 + ...capesInRegularExpressions13(target=es5).js | 8 + ...InRegularExpressions13(target=es5).symbols | 6 + ...esInRegularExpressions13(target=es5).types | 7 + ...capesInRegularExpressions13(target=es6).js | 8 + ...InRegularExpressions13(target=es6).symbols | 6 + ...esInRegularExpressions13(target=es6).types | 7 + ...tendedEscapesInRegularExpressions13_ES5.js | 8 - ...dEscapesInRegularExpressions13_ES5.symbols | 6 - ...dedEscapesInRegularExpressions13_ES5.types | 7 - ...tendedEscapesInRegularExpressions13_ES6.js | 8 - ...dEscapesInRegularExpressions13_ES6.symbols | 6 - ...dedEscapesInRegularExpressions13_ES6.types | 7 - ...egularExpressions14(target=es5).errors.txt | 15 + ...capesInRegularExpressions14(target=es5).js | 10 + ...nRegularExpressions14(target=es5).symbols} | 8 +- ...esInRegularExpressions14(target=es5).types | 8 + ...egularExpressions14(target=es6).errors.txt | 12 + ...capesInRegularExpressions14(target=es6).js | 10 + ...nRegularExpressions14(target=es6).symbols} | 8 +- ...esInRegularExpressions14(target=es6).types | 8 + ...tendedEscapesInRegularExpressions14_ES5.js | 10 - ...dedEscapesInRegularExpressions14_ES5.types | 8 - ...tendedEscapesInRegularExpressions14_ES6.js | 10 - ...dedEscapesInRegularExpressions14_ES6.types | 8 - ...egularExpressions15(target=es5).errors.txt | 8 + ...capesInRegularExpressions15(target=es5).js | 8 + ...InRegularExpressions15(target=es5).symbols | 6 + ...esInRegularExpressions15(target=es5).types | 7 + ...capesInRegularExpressions15(target=es6).js | 8 + ...InRegularExpressions15(target=es6).symbols | 6 + ...esInRegularExpressions15(target=es6).types | 7 + ...tendedEscapesInRegularExpressions15_ES5.js | 8 - ...dEscapesInRegularExpressions15_ES5.symbols | 6 - ...dedEscapesInRegularExpressions15_ES5.types | 7 - ...tendedEscapesInRegularExpressions15_ES6.js | 8 - ...dEscapesInRegularExpressions15_ES6.symbols | 6 - ...dedEscapesInRegularExpressions15_ES6.types | 7 - ...egularExpressions16(target=es5).errors.txt | 8 + ...capesInRegularExpressions16(target=es5).js | 8 + ...InRegularExpressions16(target=es5).symbols | 6 + ...esInRegularExpressions16(target=es5).types | 7 + ...capesInRegularExpressions16(target=es6).js | 8 + ...InRegularExpressions16(target=es6).symbols | 6 + ...esInRegularExpressions16(target=es6).types | 7 + ...tendedEscapesInRegularExpressions16_ES5.js | 8 - ...dEscapesInRegularExpressions16_ES5.symbols | 6 - ...dedEscapesInRegularExpressions16_ES5.types | 7 - ...tendedEscapesInRegularExpressions16_ES6.js | 8 - ...dEscapesInRegularExpressions16_ES6.symbols | 6 - ...dedEscapesInRegularExpressions16_ES6.types | 7 - ...egularExpressions17(target=es5).errors.txt | 26 + ...capesInRegularExpressions17(target=es5).js | 8 + ...InRegularExpressions17(target=es5).symbols | 6 + ...esInRegularExpressions17(target=es5).types | 7 + ...egularExpressions17(target=es6).errors.txt | 23 + ...capesInRegularExpressions17(target=es6).js | 8 + ...InRegularExpressions17(target=es6).symbols | 6 + ...esInRegularExpressions17(target=es6).types | 7 + ...tendedEscapesInRegularExpressions17_ES5.js | 8 - ...dEscapesInRegularExpressions17_ES5.symbols | 6 - ...dedEscapesInRegularExpressions17_ES5.types | 7 - ...tendedEscapesInRegularExpressions17_ES6.js | 8 - ...dEscapesInRegularExpressions17_ES6.symbols | 6 - ...dedEscapesInRegularExpressions17_ES6.types | 7 - ...egularExpressions18(target=es5).errors.txt | 8 + ...capesInRegularExpressions18(target=es5).js | 8 + ...InRegularExpressions18(target=es5).symbols | 6 + ...esInRegularExpressions18(target=es5).types | 7 + ...capesInRegularExpressions18(target=es6).js | 8 + ...InRegularExpressions18(target=es6).symbols | 6 + ...esInRegularExpressions18(target=es6).types | 7 + ...tendedEscapesInRegularExpressions18_ES5.js | 8 - ...dEscapesInRegularExpressions18_ES5.symbols | 6 - ...dedEscapesInRegularExpressions18_ES5.types | 7 - ...tendedEscapesInRegularExpressions18_ES6.js | 8 - ...dEscapesInRegularExpressions18_ES6.symbols | 6 - ...dedEscapesInRegularExpressions18_ES6.types | 7 - ...egularExpressions19(target=es5).errors.txt | 11 + ...capesInRegularExpressions19(target=es5).js | 8 + ...InRegularExpressions19(target=es5).symbols | 6 + ...esInRegularExpressions19(target=es5).types | 7 + ...egularExpressions19(target=es6).errors.txt | 8 + ...capesInRegularExpressions19(target=es6).js | 8 + ...InRegularExpressions19(target=es6).symbols | 6 + ...esInRegularExpressions19(target=es6).types | 7 + ...tendedEscapesInRegularExpressions19_ES5.js | 8 - ...dEscapesInRegularExpressions19_ES5.symbols | 6 - ...dedEscapesInRegularExpressions19_ES5.types | 7 - ...tendedEscapesInRegularExpressions19_ES6.js | 8 - ...dEscapesInRegularExpressions19_ES6.symbols | 6 - ...dedEscapesInRegularExpressions19_ES6.types | 7 - ...eExtendedEscapesInStrings01(target=es5).js | 8 + ...ndedEscapesInStrings01(target=es5).symbols | 6 + ...endedEscapesInStrings01(target=es5).types} | 4 +- ...eExtendedEscapesInStrings01(target=es6).js | 8 + ...ndedEscapesInStrings01(target=es6).symbols | 6 + ...endedEscapesInStrings01(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings01_ES5.js | 8 - ...codeExtendedEscapesInStrings01_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings01_ES6.js | 8 - ...codeExtendedEscapesInStrings01_ES6.symbols | 6 - ...eExtendedEscapesInStrings02(target=es5).js | 8 + ...ndedEscapesInStrings02(target=es5).symbols | 6 + ...endedEscapesInStrings02(target=es5).types} | 4 +- ...eExtendedEscapesInStrings02(target=es6).js | 8 + ...ndedEscapesInStrings02(target=es6).symbols | 6 + ...endedEscapesInStrings02(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings02_ES5.js | 8 - ...codeExtendedEscapesInStrings02_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings02_ES6.js | 8 - ...codeExtendedEscapesInStrings02_ES6.symbols | 6 - ...eExtendedEscapesInStrings03(target=es5).js | 8 + ...ndedEscapesInStrings03(target=es5).symbols | 6 + ...endedEscapesInStrings03(target=es5).types} | 4 +- ...eExtendedEscapesInStrings03(target=es6).js | 8 + ...ndedEscapesInStrings03(target=es6).symbols | 6 + ...endedEscapesInStrings03(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings03_ES5.js | 8 - ...codeExtendedEscapesInStrings03_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings03_ES6.js | 8 - ...codeExtendedEscapesInStrings03_ES6.symbols | 6 - ...eExtendedEscapesInStrings04(target=es5).js | 8 + ...ndedEscapesInStrings04(target=es5).symbols | 6 + ...endedEscapesInStrings04(target=es5).types} | 4 +- ...eExtendedEscapesInStrings04(target=es6).js | 8 + ...ndedEscapesInStrings04(target=es6).symbols | 6 + ...endedEscapesInStrings04(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings04_ES5.js | 8 - ...codeExtendedEscapesInStrings04_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings04_ES6.js | 8 - ...codeExtendedEscapesInStrings04_ES6.symbols | 6 - ...ExtendedEscapesInStrings05(target=es5).js} | 6 +- ...ndedEscapesInStrings05(target=es5).symbols | 6 + ...endedEscapesInStrings05(target=es5).types} | 4 +- ...ExtendedEscapesInStrings05(target=es6).js} | 6 +- ...ndedEscapesInStrings05(target=es6).symbols | 6 + ...endedEscapesInStrings05(target=es6).types} | 4 +- ...codeExtendedEscapesInStrings05_ES5.symbols | 6 - ...codeExtendedEscapesInStrings05_ES6.symbols | 6 - ...ExtendedEscapesInStrings06(target=es5).js} | 6 +- ...dedEscapesInStrings06(target=es5).symbols} | 6 +- ...endedEscapesInStrings06(target=es5).types} | 4 +- ...ExtendedEscapesInStrings06(target=es6).js} | 6 +- ...dedEscapesInStrings06(target=es6).symbols} | 6 +- ...endedEscapesInStrings06(target=es6).types} | 4 +- ...dEscapesInStrings07(target=es5).errors.txt | 10 + ...ExtendedEscapesInStrings07(target=es5).js} | 6 +- ...dedEscapesInStrings07(target=es5).symbols} | 6 +- ...endedEscapesInStrings07(target=es5).types} | 4 +- ...dEscapesInStrings07(target=es6).errors.txt | 10 + ...ExtendedEscapesInStrings07(target=es6).js} | 6 +- ...dedEscapesInStrings07(target=es6).symbols} | 6 +- ...endedEscapesInStrings07(target=es6).types} | 4 +- ...eExtendedEscapesInStrings07_ES5.errors.txt | 10 - ...eExtendedEscapesInStrings07_ES6.errors.txt | 10 - ...ExtendedEscapesInStrings08(target=es5).js} | 6 +- ...dedEscapesInStrings08(target=es5).symbols} | 6 +- ...endedEscapesInStrings08(target=es5).types} | 4 +- ...ExtendedEscapesInStrings08(target=es6).js} | 6 +- ...dedEscapesInStrings08(target=es6).symbols} | 6 +- ...endedEscapesInStrings08(target=es6).types} | 4 +- ...ExtendedEscapesInStrings09(target=es5).js} | 6 +- ...dedEscapesInStrings09(target=es5).symbols} | 6 +- ...endedEscapesInStrings09(target=es5).types} | 4 +- ...ExtendedEscapesInStrings09(target=es6).js} | 6 +- ...dedEscapesInStrings09(target=es6).symbols} | 6 +- ...endedEscapesInStrings09(target=es6).types} | 4 +- ...ExtendedEscapesInStrings10(target=es5).js} | 6 +- ...dedEscapesInStrings10(target=es5).symbols} | 6 +- ...endedEscapesInStrings10(target=es5).types} | 4 +- ...ExtendedEscapesInStrings10(target=es6).js} | 6 +- ...dedEscapesInStrings10(target=es6).symbols} | 6 +- ...endedEscapesInStrings10(target=es6).types} | 4 +- ...ExtendedEscapesInStrings11(target=es5).js} | 6 +- ...dedEscapesInStrings11(target=es5).symbols} | 6 +- ...endedEscapesInStrings11(target=es5).types} | 4 +- ...ExtendedEscapesInStrings11(target=es6).js} | 6 +- ...dedEscapesInStrings11(target=es6).symbols} | 6 +- ...endedEscapesInStrings11(target=es6).types} | 4 +- ...dEscapesInStrings12(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings12(target=es5).js | 8 + ...ndedEscapesInStrings12(target=es5).symbols | 6 + ...endedEscapesInStrings12(target=es5).types} | 4 +- ...dEscapesInStrings12(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings12(target=es6).js | 8 + ...ndedEscapesInStrings12(target=es6).symbols | 6 + ...endedEscapesInStrings12(target=es6).types} | 4 +- ...eExtendedEscapesInStrings12_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings12_ES5.js | 8 - ...codeExtendedEscapesInStrings12_ES5.symbols | 6 - ...eExtendedEscapesInStrings12_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings12_ES6.js | 8 - ...codeExtendedEscapesInStrings12_ES6.symbols | 6 - ...eExtendedEscapesInStrings13(target=es5).js | 8 + ...ndedEscapesInStrings13(target=es5).symbols | 6 + ...endedEscapesInStrings13(target=es5).types} | 4 +- ...eExtendedEscapesInStrings13(target=es6).js | 8 + ...ndedEscapesInStrings13(target=es6).symbols | 6 + ...endedEscapesInStrings13(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings13_ES5.js | 8 - ...codeExtendedEscapesInStrings13_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings13_ES6.js | 8 - ...codeExtendedEscapesInStrings13_ES6.symbols | 6 - ...dEscapesInStrings14(target=es5).errors.txt | 9 + ...ExtendedEscapesInStrings14(target=es5).js} | 6 +- ...ndedEscapesInStrings14(target=es5).symbols | 7 + ...endedEscapesInStrings14(target=es5).types} | 4 +- ...dEscapesInStrings14(target=es6).errors.txt | 9 + ...ExtendedEscapesInStrings14(target=es6).js} | 6 +- ...ndedEscapesInStrings14(target=es6).symbols | 7 + ...endedEscapesInStrings14(target=es6).types} | 4 +- ...eExtendedEscapesInStrings14_ES5.errors.txt | 9 - ...codeExtendedEscapesInStrings14_ES5.symbols | 7 - ...eExtendedEscapesInStrings14_ES6.errors.txt | 9 - ...codeExtendedEscapesInStrings14_ES6.symbols | 7 - ...ExtendedEscapesInStrings15(target=es5).js} | 6 +- ...ndedEscapesInStrings15(target=es5).symbols | 6 + ...endedEscapesInStrings15(target=es5).types} | 4 +- ...ExtendedEscapesInStrings15(target=es6).js} | 6 +- ...ndedEscapesInStrings15(target=es6).symbols | 6 + ...endedEscapesInStrings15(target=es6).types} | 4 +- ...codeExtendedEscapesInStrings15_ES5.symbols | 6 - ...codeExtendedEscapesInStrings15_ES6.symbols | 6 - ...ExtendedEscapesInStrings16(target=es5).js} | 6 +- ...ndedEscapesInStrings16(target=es5).symbols | 6 + ...endedEscapesInStrings16(target=es5).types} | 4 +- ...ExtendedEscapesInStrings16(target=es6).js} | 6 +- ...ndedEscapesInStrings16(target=es6).symbols | 6 + ...endedEscapesInStrings16(target=es6).types} | 4 +- ...codeExtendedEscapesInStrings16_ES5.symbols | 6 - ...codeExtendedEscapesInStrings16_ES6.symbols | 6 - ...dEscapesInStrings17(target=es5).errors.txt | 14 + ...eExtendedEscapesInStrings17(target=es5).js | 8 + ...ndedEscapesInStrings17(target=es5).symbols | 6 + ...endedEscapesInStrings17(target=es5).types} | 4 +- ...dEscapesInStrings17(target=es6).errors.txt | 14 + ...eExtendedEscapesInStrings17(target=es6).js | 8 + ...ndedEscapesInStrings17(target=es6).symbols | 6 + ...endedEscapesInStrings17(target=es6).types} | 4 +- ...eExtendedEscapesInStrings17_ES5.errors.txt | 14 - .../unicodeExtendedEscapesInStrings17_ES5.js | 8 - ...codeExtendedEscapesInStrings17_ES5.symbols | 6 - ...eExtendedEscapesInStrings17_ES6.errors.txt | 14 - .../unicodeExtendedEscapesInStrings17_ES6.js | 8 - ...codeExtendedEscapesInStrings17_ES6.symbols | 6 - ...eExtendedEscapesInStrings18(target=es5).js | 8 + ...ndedEscapesInStrings18(target=es5).symbols | 6 + ...endedEscapesInStrings18(target=es5).types} | 4 +- ...eExtendedEscapesInStrings18(target=es6).js | 8 + ...ndedEscapesInStrings18(target=es6).symbols | 6 + ...endedEscapesInStrings18(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings18_ES5.js | 8 - ...codeExtendedEscapesInStrings18_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings18_ES6.js | 8 - ...codeExtendedEscapesInStrings18_ES6.symbols | 6 - ...dEscapesInStrings19(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings19(target=es5).js | 8 + ...ndedEscapesInStrings19(target=es5).symbols | 6 + ...endedEscapesInStrings19(target=es5).types} | 4 +- ...dEscapesInStrings19(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings19(target=es6).js | 8 + ...ndedEscapesInStrings19(target=es6).symbols | 6 + ...endedEscapesInStrings19(target=es6).types} | 4 +- ...eExtendedEscapesInStrings19_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings19_ES5.js | 8 - ...codeExtendedEscapesInStrings19_ES5.symbols | 6 - ...eExtendedEscapesInStrings19_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings19_ES6.js | 8 - ...codeExtendedEscapesInStrings19_ES6.symbols | 6 - ...dEscapesInStrings20(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings20(target=es5).js | 8 + ...ndedEscapesInStrings20(target=es5).symbols | 6 + ...endedEscapesInStrings20(target=es5).types} | 4 +- ...dEscapesInStrings20(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings20(target=es6).js | 8 + ...ndedEscapesInStrings20(target=es6).symbols | 6 + ...endedEscapesInStrings20(target=es6).types} | 4 +- ...eExtendedEscapesInStrings20_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings20_ES5.js | 8 - ...codeExtendedEscapesInStrings20_ES5.symbols | 6 - ...eExtendedEscapesInStrings20_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings20_ES6.js | 8 - ...codeExtendedEscapesInStrings20_ES6.symbols | 6 - ...dEscapesInStrings21(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings21(target=es5).js | 8 + ...ndedEscapesInStrings21(target=es5).symbols | 6 + ...endedEscapesInStrings21(target=es5).types} | 4 +- ...dEscapesInStrings21(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings21(target=es6).js | 8 + ...ndedEscapesInStrings21(target=es6).symbols | 6 + ...endedEscapesInStrings21(target=es6).types} | 4 +- ...eExtendedEscapesInStrings21_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings21_ES5.js | 8 - ...codeExtendedEscapesInStrings21_ES5.symbols | 6 - ...eExtendedEscapesInStrings21_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings21_ES6.js | 8 - ...codeExtendedEscapesInStrings21_ES6.symbols | 6 - ...dEscapesInStrings22(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings22(target=es5).js | 8 + ...ndedEscapesInStrings22(target=es5).symbols | 6 + ...endedEscapesInStrings22(target=es5).types} | 4 +- ...dEscapesInStrings22(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings22(target=es6).js | 8 + ...ndedEscapesInStrings22(target=es6).symbols | 6 + ...endedEscapesInStrings22(target=es6).types} | 4 +- ...eExtendedEscapesInStrings22_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings22_ES5.js | 8 - ...codeExtendedEscapesInStrings22_ES5.symbols | 6 - ...eExtendedEscapesInStrings22_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings22_ES6.js | 8 - ...codeExtendedEscapesInStrings22_ES6.symbols | 6 - ...eExtendedEscapesInStrings23(target=es5).js | 8 + ...ndedEscapesInStrings23(target=es5).symbols | 6 + ...endedEscapesInStrings23(target=es5).types} | 4 +- ...eExtendedEscapesInStrings23(target=es6).js | 8 + ...ndedEscapesInStrings23(target=es6).symbols | 6 + ...endedEscapesInStrings23(target=es6).types} | 4 +- .../unicodeExtendedEscapesInStrings23_ES5.js | 8 - ...codeExtendedEscapesInStrings23_ES5.symbols | 6 - .../unicodeExtendedEscapesInStrings23_ES6.js | 8 - ...codeExtendedEscapesInStrings23_ES6.symbols | 6 - ...dEscapesInStrings24(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings24(target=es5).js | 8 + ...ndedEscapesInStrings24(target=es5).symbols | 6 + ...endedEscapesInStrings24(target=es5).types} | 4 +- ...dEscapesInStrings24(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings24(target=es6).js | 8 + ...ndedEscapesInStrings24(target=es6).symbols | 6 + ...endedEscapesInStrings24(target=es6).types} | 4 +- ...eExtendedEscapesInStrings24_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings24_ES5.js | 8 - ...codeExtendedEscapesInStrings24_ES5.symbols | 6 - ...eExtendedEscapesInStrings24_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings24_ES6.js | 8 - ...codeExtendedEscapesInStrings24_ES6.symbols | 6 - ...dEscapesInStrings25(target=es5).errors.txt | 8 + ...eExtendedEscapesInStrings25(target=es5).js | 8 + ...ndedEscapesInStrings25(target=es5).symbols | 6 + ...endedEscapesInStrings25(target=es5).types} | 4 +- ...dEscapesInStrings25(target=es6).errors.txt | 8 + ...eExtendedEscapesInStrings25(target=es6).js | 8 + ...ndedEscapesInStrings25(target=es6).symbols | 6 + ...endedEscapesInStrings25(target=es6).types} | 4 +- ...eExtendedEscapesInStrings25_ES5.errors.txt | 8 - .../unicodeExtendedEscapesInStrings25_ES5.js | 8 - ...codeExtendedEscapesInStrings25_ES5.symbols | 6 - ...eExtendedEscapesInStrings25_ES6.errors.txt | 8 - .../unicodeExtendedEscapesInStrings25_ES6.js | 8 - ...codeExtendedEscapesInStrings25_ES6.symbols | 6 - ...xtendedEscapesInTemplates01(target=es5).js | 8 + ...edEscapesInTemplates01(target=es5).symbols | 6 + ...dedEscapesInTemplates01(target=es5).types} | 4 +- ...xtendedEscapesInTemplates01(target=es6).js | 8 + ...edEscapesInTemplates01(target=es6).symbols | 6 + ...dedEscapesInTemplates01(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates01_ES5.js | 8 - ...deExtendedEscapesInTemplates01_ES5.symbols | 6 - ...unicodeExtendedEscapesInTemplates01_ES6.js | 8 - ...deExtendedEscapesInTemplates01_ES6.symbols | 6 - ...xtendedEscapesInTemplates02(target=es5).js | 8 + ...edEscapesInTemplates02(target=es5).symbols | 6 + ...dedEscapesInTemplates02(target=es5).types} | 4 +- ...xtendedEscapesInTemplates02(target=es6).js | 8 + ...edEscapesInTemplates02(target=es6).symbols | 6 + ...dedEscapesInTemplates02(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates02_ES5.js | 8 - ...deExtendedEscapesInTemplates02_ES5.symbols | 6 - ...unicodeExtendedEscapesInTemplates02_ES6.js | 8 - ...deExtendedEscapesInTemplates02_ES6.symbols | 6 - ...xtendedEscapesInTemplates03(target=es5).js | 8 + ...edEscapesInTemplates03(target=es5).symbols | 6 + ...dedEscapesInTemplates03(target=es5).types} | 4 +- ...xtendedEscapesInTemplates03(target=es6).js | 8 + ...edEscapesInTemplates03(target=es6).symbols | 6 + ...dedEscapesInTemplates03(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates03_ES5.js | 8 - ...deExtendedEscapesInTemplates03_ES5.symbols | 6 - ...unicodeExtendedEscapesInTemplates03_ES6.js | 8 - ...deExtendedEscapesInTemplates03_ES6.symbols | 6 - ...xtendedEscapesInTemplates04(target=es5).js | 8 + ...edEscapesInTemplates04(target=es5).symbols | 6 + ...dedEscapesInTemplates04(target=es5).types} | 4 +- ...xtendedEscapesInTemplates04(target=es6).js | 8 + ...edEscapesInTemplates04(target=es6).symbols | 6 + ...dedEscapesInTemplates04(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates04_ES5.js | 8 - ...deExtendedEscapesInTemplates04_ES5.symbols | 6 - ...unicodeExtendedEscapesInTemplates04_ES6.js | 8 - ...deExtendedEscapesInTemplates04_ES6.symbols | 6 - ...tendedEscapesInTemplates05(target=es5).js} | 6 +- ...edEscapesInTemplates05(target=es5).symbols | 6 + ...dedEscapesInTemplates05(target=es5).types} | 4 +- ...tendedEscapesInTemplates05(target=es6).js} | 6 +- ...edEscapesInTemplates05(target=es6).symbols | 6 + ...dedEscapesInTemplates05(target=es6).types} | 4 +- ...deExtendedEscapesInTemplates05_ES5.symbols | 6 - ...deExtendedEscapesInTemplates05_ES6.symbols | 6 - ...tendedEscapesInTemplates06(target=es5).js} | 6 +- ...dEscapesInTemplates06(target=es5).symbols} | 6 +- ...dedEscapesInTemplates06(target=es5).types} | 4 +- ...tendedEscapesInTemplates06(target=es6).js} | 6 +- ...dEscapesInTemplates06(target=es6).symbols} | 6 +- ...dedEscapesInTemplates06(target=es6).types} | 4 +- ...scapesInTemplates07(target=es5).errors.txt | 10 + ...tendedEscapesInTemplates07(target=es5).js} | 6 +- ...dEscapesInTemplates07(target=es5).symbols} | 6 +- ...dedEscapesInTemplates07(target=es5).types} | 4 +- ...scapesInTemplates07(target=es6).errors.txt | 10 + ...tendedEscapesInTemplates07(target=es6).js} | 6 +- ...dEscapesInTemplates07(target=es6).symbols} | 6 +- ...dedEscapesInTemplates07(target=es6).types} | 4 +- ...xtendedEscapesInTemplates07_ES5.errors.txt | 10 - ...xtendedEscapesInTemplates07_ES6.errors.txt | 10 - ...tendedEscapesInTemplates08(target=es5).js} | 6 +- ...dEscapesInTemplates08(target=es5).symbols} | 6 +- ...dedEscapesInTemplates08(target=es5).types} | 4 +- ...tendedEscapesInTemplates08(target=es6).js} | 6 +- ...dEscapesInTemplates08(target=es6).symbols} | 6 +- ...dedEscapesInTemplates08(target=es6).types} | 4 +- ...tendedEscapesInTemplates09(target=es5).js} | 6 +- ...dEscapesInTemplates09(target=es5).symbols} | 6 +- ...dedEscapesInTemplates09(target=es5).types} | 4 +- ...tendedEscapesInTemplates09(target=es6).js} | 6 +- ...dEscapesInTemplates09(target=es6).symbols} | 6 +- ...dedEscapesInTemplates09(target=es6).types} | 4 +- ...tendedEscapesInTemplates10(target=es5).js} | 6 +- ...dEscapesInTemplates10(target=es5).symbols} | 6 +- ...dedEscapesInTemplates10(target=es5).types} | 4 +- ...tendedEscapesInTemplates10(target=es6).js} | 6 +- ...dEscapesInTemplates10(target=es6).symbols} | 6 +- ...dedEscapesInTemplates10(target=es6).types} | 4 +- ...tendedEscapesInTemplates11(target=es5).js} | 6 +- ...dEscapesInTemplates11(target=es5).symbols} | 6 +- ...dedEscapesInTemplates11(target=es5).types} | 4 +- ...tendedEscapesInTemplates11(target=es6).js} | 6 +- ...dEscapesInTemplates11(target=es6).symbols} | 6 +- ...dedEscapesInTemplates11(target=es6).types} | 4 +- ...scapesInTemplates12(target=es5).errors.txt | 8 + ...xtendedEscapesInTemplates12(target=es5).js | 8 + ...edEscapesInTemplates12(target=es5).symbols | 6 + ...dedEscapesInTemplates12(target=es5).types} | 4 +- ...scapesInTemplates12(target=es6).errors.txt | 8 + ...xtendedEscapesInTemplates12(target=es6).js | 8 + ...edEscapesInTemplates12(target=es6).symbols | 6 + ...dedEscapesInTemplates12(target=es6).types} | 4 +- ...xtendedEscapesInTemplates12_ES5.errors.txt | 8 - ...unicodeExtendedEscapesInTemplates12_ES5.js | 8 - ...deExtendedEscapesInTemplates12_ES5.symbols | 6 - ...xtendedEscapesInTemplates12_ES6.errors.txt | 8 - ...unicodeExtendedEscapesInTemplates12_ES6.js | 8 - ...deExtendedEscapesInTemplates12_ES6.symbols | 6 - ...xtendedEscapesInTemplates13(target=es5).js | 8 + ...edEscapesInTemplates13(target=es5).symbols | 6 + ...dedEscapesInTemplates13(target=es5).types} | 4 +- ...xtendedEscapesInTemplates13(target=es6).js | 8 + ...edEscapesInTemplates13(target=es6).symbols | 6 + ...dedEscapesInTemplates13(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates13_ES5.js | 8 - ...deExtendedEscapesInTemplates13_ES5.symbols | 6 - ...unicodeExtendedEscapesInTemplates13_ES6.js | 8 - ...deExtendedEscapesInTemplates13_ES6.symbols | 6 - ...scapesInTemplates14(target=es5).errors.txt | 9 + ...tendedEscapesInTemplates14(target=es5).js} | 6 +- ...edEscapesInTemplates14(target=es5).symbols | 7 + ...dedEscapesInTemplates14(target=es5).types} | 4 +- ...scapesInTemplates14(target=es6).errors.txt | 9 + ...tendedEscapesInTemplates14(target=es6).js} | 6 +- ...edEscapesInTemplates14(target=es6).symbols | 7 + ...dedEscapesInTemplates14(target=es6).types} | 4 +- ...xtendedEscapesInTemplates14_ES5.errors.txt | 9 - ...deExtendedEscapesInTemplates14_ES5.symbols | 7 - ...xtendedEscapesInTemplates14_ES6.errors.txt | 9 - ...deExtendedEscapesInTemplates14_ES6.symbols | 7 - ...xtendedEscapesInTemplates15(target=es5).js | 8 + ...edEscapesInTemplates15(target=es5).symbols | 6 + ...dedEscapesInTemplates15(target=es5).types} | 4 +- ...tendedEscapesInTemplates15(target=es6).js} | 6 +- ...edEscapesInTemplates15(target=es6).symbols | 6 + ...dedEscapesInTemplates15(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates15_ES5.js | 8 - ...deExtendedEscapesInTemplates15_ES5.symbols | 6 - ...deExtendedEscapesInTemplates15_ES6.symbols | 6 - ...xtendedEscapesInTemplates16(target=es5).js | 8 + ...edEscapesInTemplates16(target=es5).symbols | 6 + ...dedEscapesInTemplates16(target=es5).types} | 4 +- ...tendedEscapesInTemplates16(target=es6).js} | 6 +- ...edEscapesInTemplates16(target=es6).symbols | 6 + ...dedEscapesInTemplates16(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates16_ES5.js | 8 - ...deExtendedEscapesInTemplates16_ES5.symbols | 6 - ...deExtendedEscapesInTemplates16_ES6.symbols | 6 - ...scapesInTemplates17(target=es5).errors.txt | 14 + ...xtendedEscapesInTemplates17(target=es5).js | 8 + ...edEscapesInTemplates17(target=es5).symbols | 6 + ...dedEscapesInTemplates17(target=es5).types} | 4 +- ...scapesInTemplates17(target=es6).errors.txt | 14 + ...xtendedEscapesInTemplates17(target=es6).js | 8 + ...edEscapesInTemplates17(target=es6).symbols | 6 + ...dedEscapesInTemplates17(target=es6).types} | 4 +- ...xtendedEscapesInTemplates17_ES5.errors.txt | 14 - ...unicodeExtendedEscapesInTemplates17_ES5.js | 8 - ...deExtendedEscapesInTemplates17_ES5.symbols | 6 - ...xtendedEscapesInTemplates17_ES6.errors.txt | 14 - ...unicodeExtendedEscapesInTemplates17_ES6.js | 8 - ...deExtendedEscapesInTemplates17_ES6.symbols | 6 - ...xtendedEscapesInTemplates18(target=es5).js | 8 + ...edEscapesInTemplates18(target=es5).symbols | 6 + ...dedEscapesInTemplates18(target=es5).types} | 4 +- ...xtendedEscapesInTemplates18(target=es6).js | 8 + ...edEscapesInTemplates18(target=es6).symbols | 6 + ...dedEscapesInTemplates18(target=es6).types} | 4 +- ...unicodeExtendedEscapesInTemplates18_ES5.js | 8 - ...deExtendedEscapesInTemplates18_ES5.symbols | 6 - ...unicodeExtendedEscapesInTemplates18_ES6.js | 8 - ...deExtendedEscapesInTemplates18_ES6.symbols | 6 - ...scapesInTemplates19(target=es5).errors.txt | 8 + ...xtendedEscapesInTemplates19(target=es5).js | 8 + ...edEscapesInTemplates19(target=es5).symbols | 6 + ...dedEscapesInTemplates19(target=es5).types} | 4 +- ...scapesInTemplates19(target=es6).errors.txt | 8 + ...xtendedEscapesInTemplates19(target=es6).js | 8 + ...edEscapesInTemplates19(target=es6).symbols | 6 + ...dedEscapesInTemplates19(target=es6).types} | 4 +- ...xtendedEscapesInTemplates19_ES5.errors.txt | 8 - ...unicodeExtendedEscapesInTemplates19_ES5.js | 8 - ...deExtendedEscapesInTemplates19_ES5.symbols | 6 - ...xtendedEscapesInTemplates19_ES6.errors.txt | 8 - ...unicodeExtendedEscapesInTemplates19_ES6.js | 8 - ...deExtendedEscapesInTemplates19_ES6.symbols | 6 - ...tendedEscapesInTemplates20(target=es5).js} | 6 +- ...dEscapesInTemplates20(target=es5).symbols} | 6 +- ...dedEscapesInTemplates20(target=es5).types} | 4 +- ...tendedEscapesInTemplates20(target=es6).js} | 6 +- ...dEscapesInTemplates20(target=es6).symbols} | 6 +- ...dedEscapesInTemplates20(target=es6).types} | 4 +- tests/baselines/reference/useRegexpGroups.js | 20 +- .../compiler/regularExpressionScanning.ts | 45 + .../conformance/es2018/useRegexpGroups.ts | 2 +- ...deExtendedEscapesInRegularExpressions01.ts | 3 + ...tendedEscapesInRegularExpressions01_ES5.ts | 3 - ...tendedEscapesInRegularExpressions01_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions02.ts | 3 + ...tendedEscapesInRegularExpressions02_ES5.ts | 3 - ...tendedEscapesInRegularExpressions02_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions03.ts | 3 + ...tendedEscapesInRegularExpressions03_ES5.ts | 3 - ...tendedEscapesInRegularExpressions03_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions04.ts | 3 + ...tendedEscapesInRegularExpressions04_ES5.ts | 3 - ...tendedEscapesInRegularExpressions04_ES6.ts | 3 - ...eExtendedEscapesInRegularExpressions05.ts} | 4 +- ...tendedEscapesInRegularExpressions05_ES6.ts | 3 - ...eExtendedEscapesInRegularExpressions06.ts} | 4 +- ...tendedEscapesInRegularExpressions06_ES6.ts | 5 - ...eExtendedEscapesInRegularExpressions07.ts} | 4 +- ...tendedEscapesInRegularExpressions07_ES6.ts | 5 - ...eExtendedEscapesInRegularExpressions08.ts} | 4 +- ...tendedEscapesInRegularExpressions08_ES6.ts | 6 - ...eExtendedEscapesInRegularExpressions09.ts} | 4 +- ...tendedEscapesInRegularExpressions09_ES5.ts | 6 - ...tendedEscapesInRegularExpressions09_ES6.ts | 6 - ...eExtendedEscapesInRegularExpressions10.ts} | 4 +- ...tendedEscapesInRegularExpressions10_ES6.ts | 7 - ...eExtendedEscapesInRegularExpressions11.ts} | 4 +- ...tendedEscapesInRegularExpressions11_ES6.ts | 7 - ...deExtendedEscapesInRegularExpressions12.ts | 3 + ...tendedEscapesInRegularExpressions12_ES5.ts | 3 - ...tendedEscapesInRegularExpressions12_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions13.ts | 3 + ...tendedEscapesInRegularExpressions13_ES5.ts | 3 - ...tendedEscapesInRegularExpressions13_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions14.ts | 4 + ...tendedEscapesInRegularExpressions14_ES5.ts | 4 - ...tendedEscapesInRegularExpressions14_ES6.ts | 4 - ...deExtendedEscapesInRegularExpressions15.ts | 3 + ...tendedEscapesInRegularExpressions15_ES5.ts | 3 - ...tendedEscapesInRegularExpressions15_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions16.ts | 3 + ...tendedEscapesInRegularExpressions16_ES5.ts | 3 - ...tendedEscapesInRegularExpressions16_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions17.ts | 3 + ...tendedEscapesInRegularExpressions17_ES5.ts | 3 - ...tendedEscapesInRegularExpressions17_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions18.ts | 3 + ...tendedEscapesInRegularExpressions18_ES5.ts | 3 - ...tendedEscapesInRegularExpressions18_ES6.ts | 3 - ...deExtendedEscapesInRegularExpressions19.ts | 3 + ...tendedEscapesInRegularExpressions19_ES5.ts | 3 - ...tendedEscapesInRegularExpressions19_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings01.ts | 3 + .../unicodeExtendedEscapesInStrings01_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings01_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings02.ts | 3 + .../unicodeExtendedEscapesInStrings02_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings02_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings03.ts | 3 + .../unicodeExtendedEscapesInStrings03_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings03_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings04.ts | 3 + .../unicodeExtendedEscapesInStrings04_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings04_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings05.ts} | 2 +- .../unicodeExtendedEscapesInStrings05_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings06.ts} | 2 +- .../unicodeExtendedEscapesInStrings06_ES6.ts | 5 - ...s => unicodeExtendedEscapesInStrings07.ts} | 2 +- .../unicodeExtendedEscapesInStrings07_ES6.ts | 5 - ...s => unicodeExtendedEscapesInStrings08.ts} | 2 +- .../unicodeExtendedEscapesInStrings08_ES6.ts | 6 - ...s => unicodeExtendedEscapesInStrings09.ts} | 2 +- ...s => unicodeExtendedEscapesInStrings10.ts} | 2 +- .../unicodeExtendedEscapesInStrings10_ES6.ts | 7 - ...s => unicodeExtendedEscapesInStrings11.ts} | 2 +- .../unicodeExtendedEscapesInStrings11_ES6.ts | 7 - .../unicodeExtendedEscapesInStrings12.ts | 3 + .../unicodeExtendedEscapesInStrings12_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings12_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings13.ts | 3 + .../unicodeExtendedEscapesInStrings13_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings13_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings14.ts} | 2 +- .../unicodeExtendedEscapesInStrings14_ES6.ts | 4 - ...s => unicodeExtendedEscapesInStrings15.ts} | 2 +- .../unicodeExtendedEscapesInStrings15_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings16.ts} | 2 +- .../unicodeExtendedEscapesInStrings16_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings17.ts} | 2 +- .../unicodeExtendedEscapesInStrings17_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings18.ts | 3 + .../unicodeExtendedEscapesInStrings18_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings18_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings19.ts | 3 + .../unicodeExtendedEscapesInStrings19_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings19_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings20.ts | 3 + .../unicodeExtendedEscapesInStrings20_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings20_ES6.ts | 3 - .../unicodeExtendedEscapesInStrings21.ts | 3 + .../unicodeExtendedEscapesInStrings21_ES5.ts | 3 - .../unicodeExtendedEscapesInStrings21_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings22.ts} | 2 +- .../unicodeExtendedEscapesInStrings22_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings23.ts} | 2 +- .../unicodeExtendedEscapesInStrings23_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings24.ts} | 2 +- .../unicodeExtendedEscapesInStrings24_ES6.ts | 3 - ...s => unicodeExtendedEscapesInStrings25.ts} | 2 +- .../unicodeExtendedEscapesInStrings25_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates01.ts | 3 + ...unicodeExtendedEscapesInTemplates01_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates01_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates02.ts | 3 + ...unicodeExtendedEscapesInTemplates02_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates02_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates03.ts | 3 + ...unicodeExtendedEscapesInTemplates03_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates03_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates04.ts | 3 + ...unicodeExtendedEscapesInTemplates04_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates04_ES6.ts | 3 - ...=> unicodeExtendedEscapesInTemplates05.ts} | 2 +- ...unicodeExtendedEscapesInTemplates05_ES6.ts | 3 - ...=> unicodeExtendedEscapesInTemplates06.ts} | 2 +- ...unicodeExtendedEscapesInTemplates06_ES6.ts | 5 - ...=> unicodeExtendedEscapesInTemplates07.ts} | 2 +- ...unicodeExtendedEscapesInTemplates07_ES6.ts | 5 - ...=> unicodeExtendedEscapesInTemplates08.ts} | 2 +- ...unicodeExtendedEscapesInTemplates08_ES6.ts | 6 - ...=> unicodeExtendedEscapesInTemplates09.ts} | 2 +- ...unicodeExtendedEscapesInTemplates09_ES6.ts | 6 - ...=> unicodeExtendedEscapesInTemplates10.ts} | 2 +- ...unicodeExtendedEscapesInTemplates10_ES6.ts | 7 - ...=> unicodeExtendedEscapesInTemplates11.ts} | 2 +- ...unicodeExtendedEscapesInTemplates11_ES6.ts | 7 - .../unicodeExtendedEscapesInTemplates12.ts | 3 + ...unicodeExtendedEscapesInTemplates12_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates12_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates13.ts | 3 + ...unicodeExtendedEscapesInTemplates13_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates13_ES6.ts | 3 - ...=> unicodeExtendedEscapesInTemplates14.ts} | 2 +- ...unicodeExtendedEscapesInTemplates14_ES6.ts | 4 - ...=> unicodeExtendedEscapesInTemplates15.ts} | 2 +- ...unicodeExtendedEscapesInTemplates15_ES6.ts | 3 - ...=> unicodeExtendedEscapesInTemplates16.ts} | 2 +- ...unicodeExtendedEscapesInTemplates16_ES6.ts | 3 - ...=> unicodeExtendedEscapesInTemplates17.ts} | 2 +- ...unicodeExtendedEscapesInTemplates17_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates18.ts | 3 + ...unicodeExtendedEscapesInTemplates18_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates18_ES6.ts | 3 - .../unicodeExtendedEscapesInTemplates19.ts | 3 + ...unicodeExtendedEscapesInTemplates19_ES5.ts | 3 - ...unicodeExtendedEscapesInTemplates19_ES6.ts | 3 - ...=> unicodeExtendedEscapesInTemplates20.ts} | 2 +- ...unicodeExtendedEscapesInTemplates20_ES6.ts | 3 - .../parser.numericSeparators.unicodeEscape.ts | 2 + 861 files changed, 8001 insertions(+), 2766 deletions(-) create mode 100644 tests/baselines/reference/parser579071.errors.txt create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es2015).js create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es2015).symbols create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es2015).types create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).js create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).symbols create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).types create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es5).js create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es5).symbols create mode 100644 tests/baselines/reference/regularExpressionScanning(target=es5).types create mode 100644 tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt create mode 100644 tests/baselines/reference/regularExpressionScanning(target=esnext).js create mode 100644 tests/baselines/reference/regularExpressionScanning(target=esnext).symbols create mode 100644 tests/baselines/reference/regularExpressionScanning(target=esnext).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions05_ES6.symbols => unicodeExtendedEscapesInRegularExpressions05(target=es5).symbols} (56%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions05_ES5.types => unicodeExtendedEscapesInRegularExpressions05(target=es5).types} (58%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions05_ES5.symbols => unicodeExtendedEscapesInRegularExpressions05(target=es6).symbols} (56%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions05_ES6.types => unicodeExtendedEscapesInRegularExpressions05(target=es6).types} (58%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions06_ES6.symbols => unicodeExtendedEscapesInRegularExpressions06(target=es5).symbols} (58%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions07_ES5.types => unicodeExtendedEscapesInRegularExpressions06(target=es5).types} (51%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions06_ES5.symbols => unicodeExtendedEscapesInRegularExpressions06(target=es6).symbols} (58%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions07_ES6.types => unicodeExtendedEscapesInRegularExpressions06(target=es6).types} (51%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions07_ES5.symbols => unicodeExtendedEscapesInRegularExpressions07(target=es5).symbols} (58%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions06_ES5.types => unicodeExtendedEscapesInRegularExpressions07(target=es5).types} (51%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions07_ES6.symbols => unicodeExtendedEscapesInRegularExpressions07(target=es6).symbols} (58%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions06_ES6.types => unicodeExtendedEscapesInRegularExpressions07(target=es6).types} (51%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions08_ES6.symbols => unicodeExtendedEscapesInRegularExpressions08(target=es5).symbols} (60%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions08_ES5.types => unicodeExtendedEscapesInRegularExpressions08(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions08_ES5.symbols => unicodeExtendedEscapesInRegularExpressions08(target=es6).symbols} (60%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions08_ES6.types => unicodeExtendedEscapesInRegularExpressions08(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions09_ES5.symbols => unicodeExtendedEscapesInRegularExpressions09(target=es5).symbols} (60%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions09_ES6.types => unicodeExtendedEscapesInRegularExpressions09(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions09_ES6.symbols => unicodeExtendedEscapesInRegularExpressions09(target=es6).symbols} (60%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions09_ES5.types => unicodeExtendedEscapesInRegularExpressions09(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions10_ES6.symbols => unicodeExtendedEscapesInRegularExpressions10(target=es5).symbols} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions10_ES5.types => unicodeExtendedEscapesInRegularExpressions10(target=es5).types} (64%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions10_ES5.symbols => unicodeExtendedEscapesInRegularExpressions10(target=es6).symbols} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions10_ES6.types => unicodeExtendedEscapesInRegularExpressions10(target=es6).types} (64%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions11_ES5.symbols => unicodeExtendedEscapesInRegularExpressions11(target=es5).symbols} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions11_ES5.types => unicodeExtendedEscapesInRegularExpressions11(target=es5).types} (64%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions11_ES6.symbols => unicodeExtendedEscapesInRegularExpressions11(target=es6).symbols} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions11_ES6.types => unicodeExtendedEscapesInRegularExpressions11(target=es6).types} (64%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions14_ES6.symbols => unicodeExtendedEscapesInRegularExpressions14(target=es5).symbols} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).js rename tests/baselines/reference/{unicodeExtendedEscapesInRegularExpressions14_ES5.symbols => unicodeExtendedEscapesInRegularExpressions14(target=es6).symbols} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings01_ES5.types => unicodeExtendedEscapesInStrings01(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings01_ES6.types => unicodeExtendedEscapesInStrings01(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings02_ES6.types => unicodeExtendedEscapesInStrings02(target=es5).types} (54%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings02_ES5.types => unicodeExtendedEscapesInStrings02(target=es6).types} (54%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings03_ES5.types => unicodeExtendedEscapesInStrings03(target=es5).types} (54%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings03_ES6.types => unicodeExtendedEscapesInStrings03(target=es6).types} (54%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings04_ES5.types => unicodeExtendedEscapesInStrings04(target=es5).types} (56%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings04_ES6.types => unicodeExtendedEscapesInStrings04(target=es6).types} (56%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings05_ES5.js => unicodeExtendedEscapesInStrings05(target=es5).js} (54%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings05_ES6.types => unicodeExtendedEscapesInStrings05(target=es5).types} (71%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings05_ES6.js => unicodeExtendedEscapesInStrings05(target=es6).js} (60%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings05_ES5.types => unicodeExtendedEscapesInStrings05(target=es6).types} (71%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings06_ES5.js => unicodeExtendedEscapesInStrings06(target=es5).js} (67%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings06_ES5.symbols => unicodeExtendedEscapesInStrings06(target=es5).symbols} (52%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings06_ES5.types => unicodeExtendedEscapesInStrings06(target=es5).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings06_ES6.js => unicodeExtendedEscapesInStrings06(target=es6).js} (67%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings06_ES6.symbols => unicodeExtendedEscapesInStrings06(target=es6).symbols} (52%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings06_ES6.types => unicodeExtendedEscapesInStrings06(target=es6).types} (69%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInStrings07_ES5.js => unicodeExtendedEscapesInStrings07(target=es5).js} (67%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings07_ES6.symbols => unicodeExtendedEscapesInStrings07(target=es5).symbols} (52%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings07_ES6.types => unicodeExtendedEscapesInStrings07(target=es5).types} (69%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInStrings07_ES6.js => unicodeExtendedEscapesInStrings07(target=es6).js} (67%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings07_ES5.symbols => unicodeExtendedEscapesInStrings07(target=es6).symbols} (52%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings07_ES5.types => unicodeExtendedEscapesInStrings07(target=es6).types} (69%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInStrings08_ES5.js => unicodeExtendedEscapesInStrings08(target=es5).js} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings08_ES5.symbols => unicodeExtendedEscapesInStrings08(target=es5).symbols} (54%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings08_ES5.types => unicodeExtendedEscapesInStrings08(target=es5).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings08_ES6.js => unicodeExtendedEscapesInStrings08(target=es6).js} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings08_ES6.symbols => unicodeExtendedEscapesInStrings08(target=es6).symbols} (54%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings08_ES6.types => unicodeExtendedEscapesInStrings08(target=es6).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings09_ES5.js => unicodeExtendedEscapesInStrings09(target=es5).js} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings09_ES6.symbols => unicodeExtendedEscapesInStrings09(target=es5).symbols} (54%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings09_ES5.types => unicodeExtendedEscapesInStrings09(target=es5).types} (70%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings09_ES6.js => unicodeExtendedEscapesInStrings09(target=es6).js} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings09_ES5.symbols => unicodeExtendedEscapesInStrings09(target=es6).symbols} (54%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings09_ES6.types => unicodeExtendedEscapesInStrings09(target=es6).types} (70%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings10_ES5.js => unicodeExtendedEscapesInStrings10(target=es5).js} (79%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings10_ES5.symbols => unicodeExtendedEscapesInStrings10(target=es5).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings10_ES5.types => unicodeExtendedEscapesInStrings10(target=es5).types} (77%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings10_ES6.js => unicodeExtendedEscapesInStrings10(target=es6).js} (79%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings10_ES6.symbols => unicodeExtendedEscapesInStrings10(target=es6).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings10_ES6.types => unicodeExtendedEscapesInStrings10(target=es6).types} (77%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings11_ES5.js => unicodeExtendedEscapesInStrings11(target=es5).js} (79%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings11_ES5.symbols => unicodeExtendedEscapesInStrings11(target=es5).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings11_ES5.types => unicodeExtendedEscapesInStrings11(target=es5).types} (77%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings11_ES6.js => unicodeExtendedEscapesInStrings11(target=es6).js} (79%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings11_ES6.symbols => unicodeExtendedEscapesInStrings11(target=es6).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings11_ES6.types => unicodeExtendedEscapesInStrings11(target=es6).types} (77%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings12_ES5.types => unicodeExtendedEscapesInStrings12(target=es5).types} (58%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings12_ES6.types => unicodeExtendedEscapesInStrings12(target=es6).types} (58%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings13_ES5.types => unicodeExtendedEscapesInStrings13(target=es5).types} (55%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings13_ES6.types => unicodeExtendedEscapesInStrings13(target=es6).types} (55%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInStrings14_ES5.js => unicodeExtendedEscapesInStrings14(target=es5).js} (58%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings14_ES5.types => unicodeExtendedEscapesInStrings14(target=es5).types} (64%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInStrings14_ES6.js => unicodeExtendedEscapesInStrings14(target=es6).js} (58%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings14_ES6.types => unicodeExtendedEscapesInStrings14(target=es6).types} (64%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings15_ES5.js => unicodeExtendedEscapesInStrings15(target=es5).js} (50%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings15_ES6.types => unicodeExtendedEscapesInStrings15(target=es5).types} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings15_ES6.js => unicodeExtendedEscapesInStrings15(target=es6).js} (52%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings15_ES5.types => unicodeExtendedEscapesInStrings15(target=es6).types} (64%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings16_ES5.js => unicodeExtendedEscapesInStrings16(target=es5).js} (50%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings16_ES6.types => unicodeExtendedEscapesInStrings16(target=es5).types} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInStrings16_ES6.js => unicodeExtendedEscapesInStrings16(target=es6).js} (52%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings16_ES5.types => unicodeExtendedEscapesInStrings16(target=es6).types} (64%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings17_ES5.types => unicodeExtendedEscapesInStrings17(target=es5).types} (60%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings17_ES6.types => unicodeExtendedEscapesInStrings17(target=es6).types} (60%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings18_ES5.types => unicodeExtendedEscapesInStrings18(target=es5).types} (56%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings18_ES6.types => unicodeExtendedEscapesInStrings18(target=es6).types} (56%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings19_ES5.types => unicodeExtendedEscapesInStrings19(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings19_ES6.types => unicodeExtendedEscapesInStrings19(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings20_ES5.types => unicodeExtendedEscapesInStrings20(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings20_ES6.types => unicodeExtendedEscapesInStrings20(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings21_ES5.types => unicodeExtendedEscapesInStrings21(target=es5).types} (54%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings21_ES6.types => unicodeExtendedEscapesInStrings21(target=es6).types} (54%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings22_ES5.types => unicodeExtendedEscapesInStrings22(target=es5).types} (61%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings22_ES6.types => unicodeExtendedEscapesInStrings22(target=es6).types} (61%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings23_ES6.types => unicodeExtendedEscapesInStrings23(target=es5).types} (58%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings23_ES5.types => unicodeExtendedEscapesInStrings23(target=es6).types} (58%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings24_ES5.types => unicodeExtendedEscapesInStrings24(target=es5).types} (60%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings24_ES6.types => unicodeExtendedEscapesInStrings24(target=es6).types} (60%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings25_ES6.types => unicodeExtendedEscapesInStrings25(target=es5).types} (58%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInStrings25_ES5.types => unicodeExtendedEscapesInStrings25(target=es6).types} (58%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates01_ES5.types => unicodeExtendedEscapesInTemplates01(target=es5).types} (52%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates01_ES6.types => unicodeExtendedEscapesInTemplates01(target=es6).types} (52%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates02_ES5.types => unicodeExtendedEscapesInTemplates02(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates02_ES6.types => unicodeExtendedEscapesInTemplates02(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates03_ES5.types => unicodeExtendedEscapesInTemplates03(target=es5).types} (53%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates03_ES6.types => unicodeExtendedEscapesInTemplates03(target=es6).types} (53%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates04_ES5.types => unicodeExtendedEscapesInTemplates04(target=es5).types} (55%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates04_ES6.types => unicodeExtendedEscapesInTemplates04(target=es6).types} (55%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates05_ES5.js => unicodeExtendedEscapesInTemplates05(target=es5).js} (52%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates05_ES6.types => unicodeExtendedEscapesInTemplates05(target=es5).types} (70%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates05_ES6.js => unicodeExtendedEscapesInTemplates05(target=es6).js} (59%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates05_ES5.types => unicodeExtendedEscapesInTemplates05(target=es6).types} (70%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates06_ES5.js => unicodeExtendedEscapesInTemplates06(target=es5).js} (66%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates06_ES5.symbols => unicodeExtendedEscapesInTemplates06(target=es5).symbols} (51%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates06_ES5.types => unicodeExtendedEscapesInTemplates06(target=es5).types} (68%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates06_ES6.js => unicodeExtendedEscapesInTemplates06(target=es6).js} (66%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates06_ES6.symbols => unicodeExtendedEscapesInTemplates06(target=es6).symbols} (51%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates06_ES6.types => unicodeExtendedEscapesInTemplates06(target=es6).types} (68%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates07_ES5.js => unicodeExtendedEscapesInTemplates07(target=es5).js} (66%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates07_ES5.symbols => unicodeExtendedEscapesInTemplates07(target=es5).symbols} (51%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates07_ES5.types => unicodeExtendedEscapesInTemplates07(target=es5).types} (68%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates07_ES6.js => unicodeExtendedEscapesInTemplates07(target=es6).js} (66%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates07_ES6.symbols => unicodeExtendedEscapesInTemplates07(target=es6).symbols} (51%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates07_ES6.types => unicodeExtendedEscapesInTemplates07(target=es6).types} (68%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates08_ES5.js => unicodeExtendedEscapesInTemplates08(target=es5).js} (68%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates08_ES5.symbols => unicodeExtendedEscapesInTemplates08(target=es5).symbols} (53%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates08_ES6.types => unicodeExtendedEscapesInTemplates08(target=es5).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates08_ES6.js => unicodeExtendedEscapesInTemplates08(target=es6).js} (68%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates08_ES6.symbols => unicodeExtendedEscapesInTemplates08(target=es6).symbols} (53%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates08_ES5.types => unicodeExtendedEscapesInTemplates08(target=es6).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates09_ES5.js => unicodeExtendedEscapesInTemplates09(target=es5).js} (68%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates09_ES5.symbols => unicodeExtendedEscapesInTemplates09(target=es5).symbols} (53%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates09_ES6.types => unicodeExtendedEscapesInTemplates09(target=es5).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates09_ES6.js => unicodeExtendedEscapesInTemplates09(target=es6).js} (68%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates09_ES6.symbols => unicodeExtendedEscapesInTemplates09(target=es6).symbols} (53%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates09_ES5.types => unicodeExtendedEscapesInTemplates09(target=es6).types} (69%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates10_ES5.js => unicodeExtendedEscapesInTemplates10(target=es5).js} (78%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates10_ES5.symbols => unicodeExtendedEscapesInTemplates10(target=es5).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates10_ES6.types => unicodeExtendedEscapesInTemplates10(target=es5).types} (76%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates10_ES6.js => unicodeExtendedEscapesInTemplates10(target=es6).js} (78%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates10_ES6.symbols => unicodeExtendedEscapesInTemplates10(target=es6).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates10_ES5.types => unicodeExtendedEscapesInTemplates10(target=es6).types} (76%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates11_ES5.js => unicodeExtendedEscapesInTemplates11(target=es5).js} (78%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates11_ES5.symbols => unicodeExtendedEscapesInTemplates11(target=es5).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates11_ES6.types => unicodeExtendedEscapesInTemplates11(target=es5).types} (76%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates11_ES6.js => unicodeExtendedEscapesInTemplates11(target=es6).js} (78%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates11_ES6.symbols => unicodeExtendedEscapesInTemplates11(target=es6).symbols} (64%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates11_ES5.types => unicodeExtendedEscapesInTemplates11(target=es6).types} (76%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates12_ES5.types => unicodeExtendedEscapesInTemplates12(target=es5).types} (57%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates12_ES6.types => unicodeExtendedEscapesInTemplates12(target=es6).types} (57%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates13_ES5.types => unicodeExtendedEscapesInTemplates13(target=es5).types} (54%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates13_ES6.types => unicodeExtendedEscapesInTemplates13(target=es6).types} (54%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates14_ES5.js => unicodeExtendedEscapesInTemplates14(target=es5).js} (57%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates14_ES6.types => unicodeExtendedEscapesInTemplates14(target=es5).types} (63%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).errors.txt rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates14_ES6.js => unicodeExtendedEscapesInTemplates14(target=es6).js} (57%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates14_ES5.types => unicodeExtendedEscapesInTemplates14(target=es6).types} (63%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates15_ES6.types => unicodeExtendedEscapesInTemplates15(target=es5).types} (63%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates15_ES6.js => unicodeExtendedEscapesInTemplates15(target=es6).js} (50%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates15_ES5.types => unicodeExtendedEscapesInTemplates15(target=es6).types} (63%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates16_ES6.types => unicodeExtendedEscapesInTemplates16(target=es5).types} (63%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates16_ES6.js => unicodeExtendedEscapesInTemplates16(target=es6).js} (50%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates16_ES5.types => unicodeExtendedEscapesInTemplates16(target=es6).types} (63%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates17_ES5.types => unicodeExtendedEscapesInTemplates17(target=es5).types} (59%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates17_ES6.types => unicodeExtendedEscapesInTemplates17(target=es6).types} (59%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates18_ES5.types => unicodeExtendedEscapesInTemplates18(target=es5).types} (55%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates18_ES6.types => unicodeExtendedEscapesInTemplates18(target=es6).types} (55%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.symbols create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates19_ES5.types => unicodeExtendedEscapesInTemplates19(target=es5).types} (52%) create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).errors.txt create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).js create mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates19_ES6.types => unicodeExtendedEscapesInTemplates19(target=es6).types} (52%) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.symbols delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.js delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.symbols rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates20_ES5.js => unicodeExtendedEscapesInTemplates20(target=es5).js} (59%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates20_ES5.symbols => unicodeExtendedEscapesInTemplates20(target=es5).symbols} (50%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates20_ES6.types => unicodeExtendedEscapesInTemplates20(target=es5).types} (77%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates20_ES6.js => unicodeExtendedEscapesInTemplates20(target=es6).js} (65%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates20_ES6.symbols => unicodeExtendedEscapesInTemplates20(target=es6).symbols} (50%) rename tests/baselines/reference/{unicodeExtendedEscapesInTemplates20_ES5.types => unicodeExtendedEscapesInTemplates20(target=es6).types} (77%) create mode 100644 tests/cases/compiler/regularExpressionScanning.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInRegularExpressions05_ES5.ts => unicodeExtendedEscapesInRegularExpressions05.ts} (60%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInRegularExpressions06_ES5.ts => unicodeExtendedEscapesInRegularExpressions06.ts} (65%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInRegularExpressions07_ES5.ts => unicodeExtendedEscapesInRegularExpressions07.ts} (65%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInRegularExpressions08_ES5.ts => unicodeExtendedEscapesInRegularExpressions08.ts} (68%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings09_ES6.ts => unicodeExtendedEscapesInRegularExpressions09.ts} (68%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInRegularExpressions10_ES5.ts => unicodeExtendedEscapesInRegularExpressions10.ts} (81%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInRegularExpressions11_ES5.ts => unicodeExtendedEscapesInRegularExpressions11.ts} (81%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings05_ES5.ts => unicodeExtendedEscapesInStrings05.ts} (75%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings06_ES5.ts => unicodeExtendedEscapesInStrings06.ts} (80%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings07_ES5.ts => unicodeExtendedEscapesInStrings07.ts} (80%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings08_ES5.ts => unicodeExtendedEscapesInStrings08.ts} (82%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings09_ES5.ts => unicodeExtendedEscapesInStrings09.ts} (82%) rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings10_ES5.ts => unicodeExtendedEscapesInStrings10.ts} (89%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings11_ES5.ts => unicodeExtendedEscapesInStrings11.ts} (89%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings14_ES5.ts => unicodeExtendedEscapesInStrings14.ts} (71%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings15_ES5.ts => unicodeExtendedEscapesInStrings15.ts} (63%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings16_ES5.ts => unicodeExtendedEscapesInStrings16.ts} (63%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings17_ES5.ts => unicodeExtendedEscapesInStrings17.ts} (51%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings22_ES5.ts => unicodeExtendedEscapesInStrings22.ts} (53%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings23_ES5.ts => unicodeExtendedEscapesInStrings23.ts} (54%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings24_ES5.ts => unicodeExtendedEscapesInStrings24.ts} (51%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInStrings25_ES5.ts => unicodeExtendedEscapesInStrings25.ts} (52%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates05_ES5.ts => unicodeExtendedEscapesInTemplates05.ts} (75%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates06_ES5.ts => unicodeExtendedEscapesInTemplates06.ts} (80%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates07_ES5.ts => unicodeExtendedEscapesInTemplates07.ts} (80%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates08_ES5.ts => unicodeExtendedEscapesInTemplates08.ts} (82%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates09_ES5.ts => unicodeExtendedEscapesInTemplates09.ts} (82%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates10_ES5.ts => unicodeExtendedEscapesInTemplates10.ts} (89%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates11_ES5.ts => unicodeExtendedEscapesInTemplates11.ts} (89%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates14_ES5.ts => unicodeExtendedEscapesInTemplates14.ts} (71%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates15_ES5.ts => unicodeExtendedEscapesInTemplates15.ts} (63%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates16_ES5.ts => unicodeExtendedEscapesInTemplates16.ts} (63%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates17_ES5.ts => unicodeExtendedEscapesInTemplates17.ts} (51%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts create mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts rename tests/cases/conformance/es6/unicodeExtendedEscapes/{unicodeExtendedEscapesInTemplates20_ES5.ts => unicodeExtendedEscapesInTemplates20.ts} (80%) delete mode 100644 tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 117f52a8e2c84..18cad0d40adb1 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1625,6 +1625,154 @@ "category": "Error", "code": 1495 }, + "'\\{0}' is not a valid character escape.": { + "category": "Error", + "code": 1496 + }, + "Unknown regular expression flag.": { + "category": "Error", + "code": 1497 + }, + "Duplicate regular expression flag.": { + "category": "Error", + "code": 1498 + }, + "This regular expression flag is only available when targeting '{0}' or later.": { + "category": "Error", + "code": 1499 + }, + "The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously.": { + "category": "Error", + "code": 1500 + }, + "Named capturing groups are only available when targeting 'ES2018' or later.": { + "category": "Error", + "code": 1501 + }, + "Subpattern flags must be present when there is a minus sign.": { + "category": "Error", + "code": 1502 + }, + "Incomplete quantifier. Digit expected.": { + "category": "Error", + "code": 1503 + }, + "Numbers out of order in quantifier.": { + "category": "Error", + "code": 1504 + }, + "There is nothing available for repetition.": { + "category": "Error", + "code": 1505 + }, + "Unexpected '{0}'. Did you mean to escape it with backslash?": { + "category": "Error", + "code": 1506 + }, + "This regular expression flag cannot be toggled within a subpattern.": { + "category": "Error", + "code": 1507 + }, + "'\\k' must be followed by a capturing group name enclosed in angle brackets.": { + "category": "Error", + "code": 1508 + }, + "'\\q' is only available inside character class.": { + "category": "Error", + "code": 1509 + }, + "'\\c' must be followed by an ASCII letter.": { + "category": "Error", + "code": 1510 + }, + "Undetermined character escape.": { + "category": "Error", + "code": 1511 + }, + "Expected a capturing group name.": { + "category": "Error", + "code": 1512 + }, + "Named capturing groups with the same name must be mutually exclusive to each other.": { + "category": "Error", + "code": 1513 + }, + "A character class range must not be bounded by another character class.": { + "category": "Error", + "code": 1514 + }, + "Range out of order in character class.": { + "category": "Error", + "code": 1515 + }, + "Anything that would possibly match more than a single character is invalid inside a negated character class.": { + "category": "Error", + "code": 1516 + }, + "Operators must not be mixed within a character class. Wrap it in a nested class instead.": { + "category": "Error", + "code": 1517 + }, + "Expected a class set oprand.": { + "category": "Error", + "code": 1518 + }, + "'\\q' must be followed by string alternatives enclosed in braces.": { + "category": "Error", + "code": 1519 + }, + "A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?": { + "category": "Error", + "code": 1520 + }, + "Expected a Unicode property name.": { + "category": "Error", + "code": 1521 + }, + "Unknown Unicode property name.": { + "category": "Error", + "code": 1522 + }, + "Expected a Unicode property value.": { + "category": "Error", + "code": 1523 + }, + "Unknown Unicode property value.": { + "category": "Error", + "code": 1524 + }, + "Expected a Unicode property name or value.": { + "category": "Error", + "code": 1525 + }, + "Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set.": { + "category": "Error", + "code": 1526 + }, + "Unknown Unicode property name or value.": { + "category": "Error", + "code": 1527 + }, + "Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.": { + "category": "Error", + "code": 1528 + }, + "'\\{0}' must be followed by a Unicode property value expression enclosed in braces.": { + "category": "Error", + "code": 1529 + }, + "There is no capturing group named '{0}' in this regular expression.": { + "category": "Error", + "code": 1530 + }, + "A decimal escape must refer to an existent capturing group. There are only {0} capturing groups in this regular expression.": { + "category": "Error", + "code": 1531 + }, + "Decimal escapes are invalid when there are no capturing groups in a regular expression.": { + "category": "Error", + "code": 1532 + }, "The types of '{0}' are incompatible between these types.": { "category": "Error", diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 5a519dc79dcfb..35d50a89161f7 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -11,19 +11,23 @@ import { Debug, DiagnosticMessage, Diagnostics, + forEach, identity, JSDocSyntaxKind, JsxTokenSyntaxKind, KeywordSyntaxKind, LanguageVariant, + last, LineAndCharacter, MapLike, parsePseudoBigInt, positionIsSynthesized, PunctuationOrKeywordSyntaxKind, + RegularExpressionFlags, ScriptTarget, SourceFileLike, SyntaxKind, + TextRange, TokenFlags, } from "./_namespaces/ts"; @@ -270,6 +274,28 @@ const textToToken = new Map(Object.entries({ "`": SyntaxKind.BacktickToken, })); +const charToRegExpFlag = new Map(Object.entries({ + d: RegularExpressionFlags.HasIndices, + g: RegularExpressionFlags.Global, + i: RegularExpressionFlags.IgnoreCase, + m: RegularExpressionFlags.Multiline, + s: RegularExpressionFlags.DotAll, + u: RegularExpressionFlags.Unicode, + v: RegularExpressionFlags.UnicodeSets, + y: RegularExpressionFlags.Sticky, +})); + +const regExpFlagToFirstAvailableLanguageVersion = new Map([ + [RegularExpressionFlags.HasIndices, ScriptTarget.ES2022], + [RegularExpressionFlags.Global, ScriptTarget.ES3], + [RegularExpressionFlags.IgnoreCase, ScriptTarget.ES3], + [RegularExpressionFlags.Multiline, ScriptTarget.ES3], + [RegularExpressionFlags.DotAll, ScriptTarget.ES2018], + [RegularExpressionFlags.Unicode, ScriptTarget.ES2015], + [RegularExpressionFlags.UnicodeSets, ScriptTarget.ES2024], + [RegularExpressionFlags.Sticky, ScriptTarget.ES2015], +]); + /* As per ECMAScript Language Specification 3th Edition, Section 7.6: Identifiers IdentifierStart :: @@ -373,7 +399,8 @@ function lookupInUnicodeMap(code: number, map: readonly number[]): boolean { return false; } -/** @internal */ export function isUnicodeIdentifierStart(code: number, languageVersion: ScriptTarget | undefined) { +/** @internal */ +export function isUnicodeIdentifierStart(code: number, languageVersion: ScriptTarget | undefined) { return languageVersion! >= ScriptTarget.ES2015 ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : languageVersion === ScriptTarget.ES5 ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : @@ -409,6 +436,22 @@ export function stringToToken(s: string): SyntaxKind | undefined { return textToToken.get(s); } +const regExpFlagChars = makeReverseMap(charToRegExpFlag); + +/** @internal */ +export function regularExpressionFlagToCharacter(f: RegularExpressionFlags): string | undefined { + return regExpFlagChars[f]; +} + +/** @internal */ +export function characterToRegularExpressionFlag(c: string): RegularExpressionFlags | undefined { + return charToRegExpFlag.get(c); +} + +function regularExpressionFlagToFirstAvailableLanguageVersion(f: RegularExpressionFlags): ScriptTarget | undefined { + return regExpFlagToFirstAvailableLanguageVersion.get(f); +} + /** @internal */ export function computeLineStarts(text: string): number[] { const result: number[] = []; @@ -574,8 +617,13 @@ function isHexDigit(ch: number): boolean { return isDigit(ch) || ch >= CharacterCodes.A && ch <= CharacterCodes.F || ch >= CharacterCodes.a && ch <= CharacterCodes.f; } -function isCodePoint(code: number): boolean { - return code <= 0x10FFFF; +function isASCIILetter(ch: number): boolean { + return ch >= CharacterCodes.A && ch <= CharacterCodes.Z || ch >= CharacterCodes.a && ch <= CharacterCodes.z; +} + +// Section 6.1.4 +function isWordCharacter(ch: number): boolean { + return isASCIILetter(ch) || isDigit(ch) || ch === CharacterCodes._; } /** @internal */ @@ -946,14 +994,12 @@ export function getShebang(text: string): string | undefined { } export function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean { - return ch >= CharacterCodes.A && ch <= CharacterCodes.Z || ch >= CharacterCodes.a && ch <= CharacterCodes.z || - ch === CharacterCodes.$ || ch === CharacterCodes._ || + return isASCIILetter(ch) || ch === CharacterCodes.$ || ch === CharacterCodes._ || ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierStart(ch, languageVersion); } export function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined, identifierVariant?: LanguageVariant): boolean { - return ch >= CharacterCodes.A && ch <= CharacterCodes.Z || ch >= CharacterCodes.a && ch <= CharacterCodes.z || - ch >= CharacterCodes._0 && ch <= CharacterCodes._9 || ch === CharacterCodes.$ || ch === CharacterCodes._ || + return isWordCharacter(ch) || ch === CharacterCodes.$ || // "-" and ":" are valid in JSX Identifiers (identifierVariant === LanguageVariant.JSX ? (ch === CharacterCodes.minus || ch === CharacterCodes.colon) : false) || ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierPart(ch, languageVersion); @@ -975,6 +1021,13 @@ export function isIdentifierText(name: string, languageVersion: ScriptTarget | u return true; } +const enum ClassSetExpressionType { + Unknown, + ClassUnion, + ClassIntersection, + ClassSubtraction, +} + // Creates a scanner over a (possibly unspecified) range of a piece of text. export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant = LanguageVariant.Standard, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner { // Why var? It avoids TDZ checks in the runtime which can be costly. @@ -1130,7 +1183,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean // | [1-9] DecimalDigits? 'n' // | [1-9] '_' DecimalDigits 'n' // DecimalLiteral ::= - // | DecimalIntegerLiteral? '.' DecimalDigits? ExponentPart? + // | DecimalIntegerLiteral '.' DecimalDigits? ExponentPart? // | '.' DecimalDigits ExponentPart? // | DecimalIntegerLiteral ExponentPart? // DecimalIntegerLiteral ::= @@ -1348,7 +1401,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } if (ch === CharacterCodes.backslash && !jsxAttributeString) { result += text.substring(start, pos); - result += scanEscapeSequence(/*shouldEmitInvalidEscapeError*/ true); + result += scanEscapeSequence(/*shouldEmitInvalidEscapeError*/ true, /*isRegularExpression*/ false); start = pos; continue; } @@ -1405,7 +1458,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean // Escape character if (currChar === CharacterCodes.backslash) { contents += text.substring(start, pos); - contents += scanEscapeSequence(shouldEmitInvalidEscapeError); + contents += scanEscapeSequence(shouldEmitInvalidEscapeError, /*isRegularExpression*/ false); start = pos; continue; } @@ -1435,7 +1488,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } // Extract from Section A.1 - // EscapeSequence :: + // EscapeSequence ::= // | CharacterEscapeSequence // | 0 (?![0-9]) // | LegacyOctalEscapeSequence @@ -1445,11 +1498,10 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean // LegacyOctalEscapeSequence ::= // | '0' (?=[89]) // | [1-7] (?![0-7]) - // | [0-3] [0-7] (?![0-7]) + // | [0-3] [0-7] [0-7]? // | [4-7] [0-7] - // | [0-3] [0-7] [0-7] // NonOctalDecimalEscapeSequence ::= [89] - function scanEscapeSequence(shouldEmitInvalidEscapeError?: boolean): string { + function scanEscapeSequence(shouldEmitInvalidEscapeError: boolean, isRegularExpression: boolean): string { const start = pos; pos++; if (pos >= end) { @@ -1486,7 +1538,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } // '\47' tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { + if (isRegularExpression || shouldEmitInvalidEscapeError) { const code = parseInt(text.substring(start + 1, pos), 8); error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start, pos - start, "\\x" + code.toString(16).padStart(2, "0")); return String.fromCharCode(code); @@ -1496,7 +1548,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean case CharacterCodes._9: // the invalid '\8' and '\9' tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { + if (isRegularExpression || shouldEmitInvalidEscapeError) { error(Diagnostics.Escape_sequence_0_is_not_allowed, start, pos - start, text.substring(start, pos)); return String.fromCharCode(ch); } @@ -1518,63 +1570,56 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean case CharacterCodes.doubleQuote: return '"'; case CharacterCodes.u: - if (pos < end && text.charCodeAt(pos) === CharacterCodes.openBrace) { - // '\u{DDDDDDDD}' - pos++; - const escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false); - const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; - // '\u{Not Code Point' or '\u{CodePoint' - if (escapedValue < 0) { - tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); - } - return text.substring(start, pos); - } - if (!isCodePoint(escapedValue)) { - tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive); - } - return text.substring(start, pos); - } - if (pos >= end) { - tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unexpected_end_of_text); - } - return text.substring(start, pos); - } - if (text.charCodeAt(pos) !== CharacterCodes.closeBrace) { - tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unterminated_Unicode_escape_sequence); - } - return text.substring(start, pos); - } - pos++; - tokenFlags |= TokenFlags.ExtendedUnicodeEscape; - return utf16EncodeAsString(escapedValue); + if ( + (!isRegularExpression || shouldEmitInvalidEscapeError) && + pos < end && text.charCodeAt(pos) === CharacterCodes.openBrace + ) { + // '\u{DDDDDD}' + pos -= 2; + return scanExtendedUnicodeEscape(isRegularExpression || shouldEmitInvalidEscapeError); } // '\uDDDD' for (; pos < start + 6; pos++) { if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { + if (isRegularExpression || shouldEmitInvalidEscapeError) { error(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start, pos); } } tokenFlags |= TokenFlags.UnicodeEscape; - return String.fromCharCode(parseInt(text.substring(start + 2, pos), 16)); + const escapedValue = parseInt(text.substring(start + 2, pos), 16); + const escapedValueString = String.fromCharCode(escapedValue); + if ( + isRegularExpression && shouldEmitInvalidEscapeError && escapedValue >= 0xD800 && escapedValue <= 0xDBFF && + pos + 6 < end && text.substring(pos, pos + 2) === "\\u" && text.charCodeAt(pos + 2) !== CharacterCodes.openBrace + ) { + // For regular expressions in Unicode mode, \u HexLeadSurrogate \u HexTrailSurrogate is treated as a single character + // for the purpose of determining whether a character class range is out of order + // https://tc39.es/ecma262/#prod-RegExpUnicodeEscapeSequence + const nextStart = pos; + let nextPos = pos + 2; + for (; nextPos < nextStart + 6; nextPos++) { + if (!isHexDigit(text.charCodeAt(pos))) { + // leave the error to the next call + return escapedValueString; + } + } + const nextEscapedValue = parseInt(text.substring(nextStart + 2, nextPos), 16); + if (nextEscapedValue >= 0xDC00 && nextEscapedValue <= 0xDFFF) { + pos = nextPos; + return escapedValueString + String.fromCharCode(nextEscapedValue); + } + } + return escapedValueString; case CharacterCodes.x: // '\xDD' for (; pos < start + 4; pos++) { if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) { tokenFlags |= TokenFlags.ContainsInvalidEscape; - if (shouldEmitInvalidEscapeError) { + if (isRegularExpression || shouldEmitInvalidEscapeError) { error(Diagnostics.Hexadecimal_digit_expected); } return text.substring(start, pos); @@ -1595,27 +1640,39 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean case CharacterCodes.paragraphSeparator: return ""; default: + if (isRegularExpression && (shouldEmitInvalidEscapeError || isIdentifierPart(ch, languageVersion))) { + error(Diagnostics._0_is_not_a_valid_character_escape, pos - 2, 2, String.fromCharCode(ch)); + } return String.fromCharCode(ch); } } - function scanExtendedUnicodeEscape(): string { + function scanExtendedUnicodeEscape(shouldEmitInvalidEscapeError = true): string { + const start = pos; + pos += 3; + const escapedStart = pos; const escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false); const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; let isInvalidExtendedEscape = false; // Validate the value of the digit if (escapedValue < 0) { - error(Diagnostics.Hexadecimal_digit_expected); + if (shouldEmitInvalidEscapeError) { + 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); + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive, escapedStart, pos - escapedStart); + } isInvalidExtendedEscape = true; } if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.Unexpected_end_of_text); + } isInvalidExtendedEscape = true; } else if (text.charCodeAt(pos) === CharacterCodes.closeBrace) { @@ -1623,14 +1680,18 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean pos++; } else { - error(Diagnostics.Unterminated_Unicode_escape_sequence); + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.Unterminated_Unicode_escape_sequence); + } isInvalidExtendedEscape = true; } if (isInvalidExtendedEscape) { - return ""; + tokenFlags |= TokenFlags.ContainsInvalidEscape; + return text.substring(start, pos); } + tokenFlags |= TokenFlags.ExtendedUnicodeEscape; return utf16EncodeAsString(escapedValue); } @@ -1670,8 +1731,6 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean else if (ch === CharacterCodes.backslash) { ch = peekExtendedUnicodeEscape(); if (ch >= 0 && isIdentifierPart(ch, languageVersion)) { - pos += 3; - tokenFlags |= TokenFlags.ExtendedUnicodeEscape; result += scanExtendedUnicodeEscape(); start = pos; continue; @@ -2194,8 +2253,6 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean case CharacterCodes.backslash: const extendedCookedChar = peekExtendedUnicodeEscape(); if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - pos += 3; - tokenFlags |= TokenFlags.ExtendedUnicodeEscape; tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts(); return token = getIdentifierToken(); } @@ -2213,7 +2270,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean return token = SyntaxKind.Unknown; case CharacterCodes.hash: if (pos !== 0 && text[pos + 1] === "!") { - error(Diagnostics.can_only_be_used_at_the_start_of_a_file); + error(Diagnostics.can_only_be_used_at_the_start_of_a_file, pos, 2); pos++; return token = SyntaxKind.Unknown; } @@ -2223,8 +2280,6 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean pos++; const extendedCookedChar = peekExtendedUnicodeEscape(); if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - pos += 3; - tokenFlags |= TokenFlags.ExtendedUnicodeEscape; tokenValue = "#" + scanExtendedUnicodeEscape() + scanIdentifierParts(); return token = SyntaxKind.PrivateIdentifier; } @@ -2285,7 +2340,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean return token = identifierKind; } pos += charSize(ch); - return token; // Still `SyntaKind.Unknown` + return token; // Still `SyntaxKind.Unknown` } function scanIdentifier(startCharacter: number, languageVersion: ScriptTarget) { @@ -2332,8 +2387,12 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean function reScanSlashToken(): SyntaxKind { if (token === SyntaxKind.SlashToken || token === SyntaxKind.SlashEqualsToken) { + // Quickly get to the end of regex such that we know the flags let p = tokenStart + 1; let inEscape = false; + // Although nested character class is allowed in Unicode Sets mode, + // an unescaped slash is nevertheless invalid even in character class in Unicode mode. + // Thus we can simply ignore nested character class in the first pass. let inCharacterClass = false; while (true) { // If we reach the end of a file, or hit a newline, then this is an unterminated @@ -2373,15 +2432,965 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } p++; } - - while (p < end && isIdentifierPart(text.charCodeAt(p), languageVersion)) { + const isUnterminated = !!(tokenFlags & TokenFlags.Unterminated); + const endOfBody = p - (isUnterminated ? 0 : 1); + let regExpFlags = RegularExpressionFlags.None; + while (p < end) { + const ch = text.charCodeAt(p); + if (!isIdentifierPart(ch, languageVersion)) { + break; + } + const flag = characterToRegularExpressionFlag(String.fromCharCode(ch)); + if (flag === undefined) { + error(Diagnostics.Unknown_regular_expression_flag, p, 1); + } + else if (regExpFlags & flag) { + error(Diagnostics.Duplicate_regular_expression_flag, p, 1); + } + else if (((regExpFlags | flag) & RegularExpressionFlags.UnicodeMode) === RegularExpressionFlags.UnicodeMode) { + error(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, p, 1); + } + else { + regExpFlags |= flag; + const availableFrom = regularExpressionFlagToFirstAvailableLanguageVersion(flag)!; + if (languageVersion < availableFrom) { + error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, p, 1, ScriptTarget[availableFrom]); + } + } p++; } - pos = p; + pos = tokenStart + 1; + const saveTokenPos = tokenStart; + const saveTokenFlags = tokenFlags; + scanRegularExpressionWorker(text.slice(0, endOfBody), endOfBody, regExpFlags, isUnterminated); + if (!isUnterminated) { + pos = p; + } + tokenStart = saveTokenPos; + tokenFlags = saveTokenFlags; tokenValue = text.substring(tokenStart, pos); token = SyntaxKind.RegularExpressionLiteral; } return token; + + function scanRegularExpressionWorker(text: string, end: number, regExpFlags: RegularExpressionFlags, isUnterminated: boolean) { + const unicodeMode = !!(regExpFlags & RegularExpressionFlags.UnicodeMode); + const unicodeSetsMode = !!(regExpFlags & RegularExpressionFlags.UnicodeSets); + let mayContainStrings = false; + + let numberOfCapturingGroups = 0; + const groupSpecifiers = new Set(); + const groupNameReferences: (TextRange & { name: string; })[] = []; + const decimalEscapes: (TextRange & { value: number; })[] = []; + const namedCapturingGroups: Set[] = []; + + // Disjunction ::= Alternative ('|' Alternative)* + function scanDisjunction(isInGroup: boolean) { + while (true) { + namedCapturingGroups.push(new Set()); + scanAlternative(isInGroup); + namedCapturingGroups.pop(); + if (text.charCodeAt(pos) !== CharacterCodes.bar) { + return; + } + pos++; + } + } + + // Alternative ::= Term* + // Term ::= + // | Assertion + // | Atom Quantifier? + // Assertion ::= + // | '^' + // | '$' + // | '\b' + // | '\B' + // | '(?=' Disjunction ')' + // | '(?!' Disjunction ')' + // | '(?<=' Disjunction ')' + // | '(?' Disjunction ')' + // | '(?' RegularExpressionFlags ('-' RegularExpressionFlags)? ':' Disjunction ')' + // CharacterClass ::= unicodeMode + // ? '[' ClassRanges ']' + // : '[' ClassSetExpression ']' + function scanAlternative(isInGroup: boolean) { + let isPreviousTermQuantifiable = false; + while (pos < end) { + const start = pos; + const ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.caret: + case CharacterCodes.$: + pos++; + isPreviousTermQuantifiable = false; + break; + case CharacterCodes.backslash: + pos++; + switch (text.charCodeAt(pos)) { + case CharacterCodes.b: + case CharacterCodes.B: + pos++; + isPreviousTermQuantifiable = false; + break; + default: + scanAtomEscape(); + isPreviousTermQuantifiable = true; + break; + } + break; + case CharacterCodes.openParen: + pos++; + if (text.charCodeAt(pos) === CharacterCodes.question) { + pos++; + switch (text.charCodeAt(pos)) { + case CharacterCodes.equals: + case CharacterCodes.exclamation: + pos++; + isPreviousTermQuantifiable = false; + break; + case CharacterCodes.lessThan: + const groupNameStart = pos; + pos++; + switch (text.charCodeAt(pos)) { + case CharacterCodes.equals: + case CharacterCodes.exclamation: + pos++; + isPreviousTermQuantifiable = false; + break; + default: + scanGroupName(/*isReference*/ false); + scanExpectedChar(CharacterCodes.greaterThan); + if (languageVersion < ScriptTarget.ES2018) { + error(Diagnostics.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later, groupNameStart, pos - groupNameStart); + } + numberOfCapturingGroups++; + isPreviousTermQuantifiable = true; + break; + } + break; + default: + const start = pos; + const setFlags = scanPatternModifiers(); + if (text.charCodeAt(pos) === CharacterCodes.minus) { + pos++; + scanPatternModifiers(setFlags); + if (pos === start + 1) { + error(Diagnostics.Subpattern_flags_must_be_present_when_there_is_a_minus_sign, start, pos - start); + } + } + scanExpectedChar(CharacterCodes.colon); + isPreviousTermQuantifiable = true; + break; + } + } + else { + numberOfCapturingGroups++; + isPreviousTermQuantifiable = true; + } + scanDisjunction(/*isInGroup*/ true); + scanExpectedChar(CharacterCodes.closeParen); + break; + case CharacterCodes.openBrace: + pos++; + const digitsStart = pos; + scanDigits(); + const min = tokenValue; + if (text.charCodeAt(pos) === CharacterCodes.comma) { + pos++; + scanDigits(); + const max = tokenValue; + if (!min) { + if (max || text.charCodeAt(pos) === CharacterCodes.closeBrace) { + error(Diagnostics.Incomplete_quantifier_Digit_expected, digitsStart, 0); + } + else { + if (unicodeMode) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, start, 1, String.fromCharCode(ch)); + } + isPreviousTermQuantifiable = true; + break; + } + } + if (max && Number.parseInt(min) > Number.parseInt(max)) { + error(Diagnostics.Numbers_out_of_order_in_quantifier, digitsStart, pos - digitsStart); + } + } + else if (!min) { + if (unicodeMode) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, start, 1, String.fromCharCode(ch)); + } + isPreviousTermQuantifiable = true; + break; + } + scanExpectedChar(CharacterCodes.closeBrace); + pos--; + // falls through + case CharacterCodes.asterisk: + case CharacterCodes.plus: + case CharacterCodes.question: + pos++; + if (text.charCodeAt(pos) === CharacterCodes.question) { + // Non-greedy + pos++; + } + if (!isPreviousTermQuantifiable) { + error(Diagnostics.There_is_nothing_available_for_repetition, start, pos - start); + } + isPreviousTermQuantifiable = false; + break; + case CharacterCodes.dot: + pos++; + isPreviousTermQuantifiable = true; + break; + case CharacterCodes.openBracket: + pos++; + if (unicodeSetsMode) { + scanClassSetExpression(); + } + else { + scanClassRanges(); + } + scanExpectedChar(CharacterCodes.closeBracket); + isPreviousTermQuantifiable = true; + break; + case CharacterCodes.closeParen: + if (isInGroup) { + return; + } + // falls through + case CharacterCodes.closeBracket: + case CharacterCodes.closeBrace: + if (isUnterminated && !isInGroup) { + // Assume what starting from the character to be outside of the regex + return; + } + if (unicodeMode) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + } + pos++; + isPreviousTermQuantifiable = true; + break; + case CharacterCodes.slash: + case CharacterCodes.bar: + return; + default: + scanSourceCharacter(); + isPreviousTermQuantifiable = true; + break; + } + } + } + + function scanPatternModifiers(currFlags = RegularExpressionFlags.None): RegularExpressionFlags { + while (pos < end) { + const ch = text.charCodeAt(pos); + if (!isIdentifierPart(ch, languageVersion)) { + break; + } + const flag = characterToRegularExpressionFlag(String.fromCharCode(ch)); + if (flag === undefined) { + error(Diagnostics.Unknown_regular_expression_flag, pos, 1); + } + else if (currFlags & flag) { + error(Diagnostics.Duplicate_regular_expression_flag, pos, 1); + } + else if (!(flag & RegularExpressionFlags.Modifiers)) { + error(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos, 1); + } + else { + currFlags |= flag; + const availableFrom = regularExpressionFlagToFirstAvailableLanguageVersion(flag)!; + if (languageVersion < availableFrom) { + error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos, 1, ScriptTarget[availableFrom]); + } + } + pos++; + } + return currFlags; + } + + // AtomEscape ::= + // | DecimalEscape + // | CharacterClassEscape + // | CharacterEscape + // | 'k<' RegExpIdentifierName '>' + function scanAtomEscape() { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.backslash); + switch (text.charCodeAt(pos)) { + case CharacterCodes.k: + pos++; + if (text.charCodeAt(pos) === CharacterCodes.lessThan) { + pos++; + scanGroupName(/*isReference*/ true); + scanExpectedChar(CharacterCodes.greaterThan); + } + else if (unicodeMode) { + error(Diagnostics.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets, pos - 2, 2); + } + break; + case CharacterCodes.q: + if (unicodeSetsMode) { + pos++; + error(Diagnostics.q_is_only_available_inside_character_class, pos - 2, 2); + break; + } + // falls through + default: + scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape(); + break; + } + } + + // DecimalEscape ::= [1-9] [0-9]* + function scanDecimalEscape(): boolean { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.backslash); + const ch = text.charCodeAt(pos); + if (ch >= CharacterCodes._1 && ch <= CharacterCodes._9) { + const start = pos; + scanDigits(); + decimalEscapes.push({ pos: start, end: pos, value: +tokenValue }); + return true; + } + return false; + } + + // CharacterEscape ::= + // | `c` ControlLetter + // | IdentityEscape + // | (Other sequences handled by `scanEscapeSequence`) + // IdentityEscape ::= + // | '^' | '$' | '/' | '\' | '.' | '*' | '+' | '?' | '(' | ')' | '[' | ']' | '{' | '}' | '|' + // | [~UnicodeMode] (any other non-identifier characters) + function scanCharacterEscape(): string { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.backslash); + let ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.c: + pos++; + ch = text.charCodeAt(pos); + if (isASCIILetter(ch)) { + pos++; + return String.fromCharCode(ch & 0x1f); + } + if (unicodeMode) { + error(Diagnostics.c_must_be_followed_by_an_ASCII_letter, pos - 2, 2); + } + return String.fromCharCode(ch); + case CharacterCodes.caret: + case CharacterCodes.$: + case CharacterCodes.slash: + case CharacterCodes.backslash: + case CharacterCodes.dot: + case CharacterCodes.asterisk: + case CharacterCodes.plus: + case CharacterCodes.question: + case CharacterCodes.openParen: + case CharacterCodes.closeParen: + case CharacterCodes.openBracket: + case CharacterCodes.closeBracket: + case CharacterCodes.openBrace: + case CharacterCodes.closeBrace: + case CharacterCodes.bar: + pos++; + return String.fromCharCode(ch); + default: + if (pos >= end) { + error(Diagnostics.Undetermined_character_escape, pos - 1, 1, ch); + return "\\"; + } + pos--; + return scanEscapeSequence(/*shouldEmitInvalidEscapeError*/ unicodeMode, /*isRegularExpression*/ true); + } + } + + function scanGroupName(isReference: boolean) { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.lessThan); + tokenStart = pos; + scanIdentifier(codePointAt(text, pos), languageVersion); + if (pos === tokenStart) { + error(Diagnostics.Expected_a_capturing_group_name); + } + else if (isReference) { + groupNameReferences.push({ pos: tokenStart, end: pos, name: tokenValue }); + } + else if (namedCapturingGroups.some(group => group.has(tokenValue))) { + error(Diagnostics.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other, tokenStart, pos - tokenStart); + } + else { + last(namedCapturingGroups).add(tokenValue); + groupSpecifiers.add(tokenValue); + } + } + + function isClassContentExit(ch: number) { + return ch === CharacterCodes.closeBracket || pos >= end; + } + + // ClassRanges ::= '^'? (ClassAtom ('-' ClassAtom)?)* + function scanClassRanges() { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.openBracket); + if (text.charCodeAt(pos) === CharacterCodes.caret) { + // character complement + pos++; + } + while (pos < end) { + const ch = text.charCodeAt(pos); + if (isClassContentExit(ch)) { + return; + } + const minStart = pos; + const minCharacter = scanClassAtom(); + if (text.charCodeAt(pos) === CharacterCodes.minus) { + pos++; + const ch = text.charCodeAt(pos); + if (isClassContentExit(ch)) { + return; + } + if (!minCharacter) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, minStart, pos - 1 - minStart); + } + const maxStart = pos; + const maxCharacter = scanClassAtom(); + if (!maxCharacter) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, maxStart, pos - maxStart); + continue; + } + if (!minCharacter) { + continue; + } + const minCharacterValue = codePointAt(minCharacter, 0); + const maxCharacterValue = codePointAt(maxCharacter, 0); + if ( + minCharacter.length === charSize(minCharacterValue) && + maxCharacter.length === charSize(maxCharacterValue) && + minCharacterValue > maxCharacterValue + ) { + error(Diagnostics.Range_out_of_order_in_character_class, minStart, pos - minStart); + } + } + } + } + + // Static Semantics: MayContainStrings + // ClassUnion: ClassSetOperands.some(ClassSetOperand => ClassSetOperand.MayContainStrings) + // ClassIntersection: ClassSetOperands.every(ClassSetOperand => ClassSetOperand.MayContainStrings) + // ClassSubtraction: ClassSetOperands[0].MayContainStrings + // ClassSetOperand: + // || ClassStringDisjunctionContents.MayContainStrings + // || CharacterClassEscape.UnicodePropertyValueExpression.LoneUnicodePropertyNameOrValue.MayContainStrings + // ClassStringDisjunctionContents: ClassStrings.some(ClassString => ClassString.ClassSetCharacters.length !== 1) + // LoneUnicodePropertyNameOrValue: isBinaryUnicodePropertyOfStrings(LoneUnicodePropertyNameOrValue) + + // ClassSetExpression ::= '^'? (ClassUnion | ClassIntersection | ClassSubtraction) + // ClassUnion ::= (ClassSetRange | ClassSetOperand)* + // ClassIntersection ::= ClassSetOperand ('&&' ClassSetOperand)+ + // ClassSubtraction ::= ClassSetOperand ('--' ClassSetOperand)+ + // ClassSetRange ::= ClassSetCharacter '-' ClassSetCharacter + function scanClassSetExpression() { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.openBracket); + let isCharacterComplement = false; + if (text.charCodeAt(pos) === CharacterCodes.caret) { + pos++; + isCharacterComplement = true; + } + let expressionMayContainStrings = false; + let ch = text.charCodeAt(pos); + if (isClassContentExit(ch)) { + return; + } + let start = pos; + let oprand!: string; + switch (text.slice(pos, pos + 2)) { + case "--": + case "&&": + error(Diagnostics.Expected_a_class_set_oprand); + mayContainStrings = false; + break; + default: + oprand = scanClassSetOprand(); + break; + } + switch (text.charCodeAt(pos)) { + case CharacterCodes.minus: + if (text.charCodeAt(pos + 1) === CharacterCodes.minus) { + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start, pos - start); + } + expressionMayContainStrings = mayContainStrings; + scanClassSetSubExpression(ClassSetExpressionType.ClassSubtraction); + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + return; + } + break; + case CharacterCodes.ampersand: + if (text.charCodeAt(pos + 1) === CharacterCodes.ampersand) { + scanClassSetSubExpression(ClassSetExpressionType.ClassIntersection); + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start, pos - start); + } + expressionMayContainStrings = mayContainStrings; + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + return; + } + else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + } + break; + default: + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start, pos - start); + } + expressionMayContainStrings = mayContainStrings; + break; + } + while (pos < end) { + ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.minus: + pos++; + ch = text.charCodeAt(pos); + if (isClassContentExit(ch)) { + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + return; + } + if (ch === CharacterCodes.minus) { + pos++; + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + start = pos - 2; + oprand = text.slice(start, pos); + continue; + } + else { + if (!oprand) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, start, pos - 1 - start); + } + const secondStart = pos; + const secondOprand = scanClassSetOprand(); + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, secondStart, pos - secondStart); + } + expressionMayContainStrings ||= mayContainStrings; + if (!secondOprand) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, secondStart, pos - secondStart); + break; + } + if (!oprand) { + break; + } + const minCharacterValue = codePointAt(oprand, 0); + const maxCharacterValue = codePointAt(secondOprand, 0); + if ( + oprand.length === charSize(minCharacterValue) && + secondOprand.length === charSize(maxCharacterValue) && + minCharacterValue > maxCharacterValue + ) { + error(Diagnostics.Range_out_of_order_in_character_class, start, pos - start); + } + } + break; + case CharacterCodes.ampersand: + start = pos; + pos++; + if (text.charCodeAt(pos) === CharacterCodes.ampersand) { + pos++; + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + if (text.charCodeAt(pos) === CharacterCodes.ampersand) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + pos++; + } + } + else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch)); + } + oprand = text.slice(start, pos); + continue; + } + if (isClassContentExit(text.charCodeAt(pos))) { + break; + } + start = pos; + switch (text.slice(pos, pos + 2)) { + case "--": + case "&&": + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos, 2); + pos += 2; + oprand = text.slice(start, pos); + break; + default: + oprand = scanClassSetOprand(); + break; + } + } + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + } + + function scanClassSetSubExpression(expressionType: ClassSetExpressionType) { + let expressionMayContainStrings = mayContainStrings; + while (pos < end) { + let ch = text.charCodeAt(pos); + if (isClassContentExit(ch)) { + break; + } + // Provide user-friendly diagnostic messages + switch (ch) { + case CharacterCodes.minus: + pos++; + if (text.charCodeAt(pos) === CharacterCodes.minus) { + pos++; + if (expressionType !== ClassSetExpressionType.ClassSubtraction) { + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + } + } + else { + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 1, 1); + } + break; + case CharacterCodes.ampersand: + pos++; + if (text.charCodeAt(pos) === CharacterCodes.ampersand) { + pos++; + if (expressionType !== ClassSetExpressionType.ClassIntersection) { + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + } + if (text.charCodeAt(pos) === CharacterCodes.ampersand) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + pos++; + } + } + else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch)); + } + break; + default: + switch (expressionType) { + case ClassSetExpressionType.ClassSubtraction: + error(Diagnostics._0_expected, pos, 0, "--"); + break; + case ClassSetExpressionType.ClassIntersection: + error(Diagnostics._0_expected, pos, 0, "&&"); + break; + default: + break; + } + break; + } + ch = text.charCodeAt(pos); + if (isClassContentExit(ch)) { + error(Diagnostics.Expected_a_class_set_oprand); + break; + } + scanClassSetOprand(); + // Used only if expressionType is Intersection + expressionMayContainStrings &&= mayContainStrings; + } + mayContainStrings = expressionMayContainStrings; + } + + // ClassSetOperand ::= + // | '[' ClassSetExpression ']' + // | '\' CharacterClassEscape + // | '\q{' ClassStringDisjunctionContents '}' + // | ClassSetCharacter + function scanClassSetOprand(): string { + mayContainStrings = false; + switch (text.charCodeAt(pos)) { + case CharacterCodes.openBracket: + pos++; + scanClassSetExpression(); + scanExpectedChar(CharacterCodes.closeBracket); + return ""; + case CharacterCodes.backslash: + pos++; + if (scanCharacterClassEscape()) { + return ""; + } + else if (text.charCodeAt(pos) === CharacterCodes.q) { + pos++; + if (text.charCodeAt(pos) === CharacterCodes.openBrace) { + pos++; + scanClassStringDisjunctionContents(); + scanExpectedChar(CharacterCodes.closeBrace); + return ""; + } + else { + error(Diagnostics.q_must_be_followed_by_string_alternatives_enclosed_in_braces, pos - 2, 2); + return "q"; + } + } + pos--; + // falls through + default: + return scanClassSetCharacter(); + } + } + + // ClassStringDisjunctionContents ::= ClassSetCharacter* ('|' ClassSetCharacter*)* + function scanClassStringDisjunctionContents() { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.openBrace); + let characterCount = 0; + while (pos < end) { + const ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.closeBrace: + if (characterCount !== 1) { + mayContainStrings = true; + } + return; + case CharacterCodes.bar: + if (characterCount !== 1) { + mayContainStrings = true; + } + pos++; + start = pos; + characterCount = 0; + break; + default: + scanClassSetCharacter(); + characterCount++; + break; + } + } + } + + // ClassSetCharacter ::= + // | SourceCharacter -- ClassSetSyntaxCharacter -- ClassSetReservedDoublePunctuator + // | '\' (CharacterEscape | ClassSetReservedPunctuator | 'b') + function scanClassSetCharacter(): string { + const ch = text.charCodeAt(pos); + if (ch === CharacterCodes.backslash) { + pos++; + const ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.b: + pos++; + return "\b"; + case CharacterCodes.ampersand: + case CharacterCodes.minus: + case CharacterCodes.exclamation: + case CharacterCodes.hash: + case CharacterCodes.percent: + case CharacterCodes.comma: + case CharacterCodes.colon: + case CharacterCodes.semicolon: + case CharacterCodes.lessThan: + case CharacterCodes.equals: + case CharacterCodes.greaterThan: + case CharacterCodes.at: + case CharacterCodes.backtick: + case CharacterCodes.tilde: + pos++; + return String.fromCharCode(ch); + default: + return scanCharacterEscape(); + } + } + else if (ch === text.charCodeAt(pos + 1)) { + switch (ch) { + case CharacterCodes.ampersand: + case CharacterCodes.exclamation: + case CharacterCodes.hash: + case CharacterCodes.percent: + case CharacterCodes.asterisk: + case CharacterCodes.plus: + case CharacterCodes.comma: + case CharacterCodes.dot: + case CharacterCodes.colon: + case CharacterCodes.semicolon: + case CharacterCodes.lessThan: + case CharacterCodes.equals: + case CharacterCodes.greaterThan: + case CharacterCodes.question: + case CharacterCodes.at: + case CharacterCodes.backtick: + case CharacterCodes.tilde: + error(Diagnostics.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash, pos, 2); + pos += 2; + return text.substring(pos - 2, pos); + } + } + switch (ch) { + case CharacterCodes.slash: + case CharacterCodes.openParen: + case CharacterCodes.closeParen: + case CharacterCodes.openBracket: + case CharacterCodes.closeBracket: + case CharacterCodes.openBrace: + case CharacterCodes.closeBrace: + case CharacterCodes.minus: + case CharacterCodes.bar: + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + pos++; + return String.fromCharCode(ch); + } + return scanSourceCharacter(); + } + + // ClassAtom ::= + // | SourceCharacter but not one of '\' or ']' + // | '\' ClassEscape + // ClassEscape ::= + // | 'b' + // | '-' + // | CharacterClassEscape + // | CharacterEscape + function scanClassAtom(): string { + if (text.charCodeAt(pos) === CharacterCodes.backslash) { + pos++; + const ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.b: + pos++; + return "\b"; + case CharacterCodes.minus: + pos++; + return String.fromCharCode(ch); + default: + if (scanCharacterClassEscape()) { + return ""; + } + return scanCharacterEscape(); + } + } + else { + return scanSourceCharacter(); + } + } + + // CharacterClassEscape ::= + // | 'd' | 'D' | 's' | 'S' | 'w' | 'W' + // | [+UnicodeMode] ('P' | 'p') '{' UnicodePropertyValueExpression '}' + function scanCharacterClassEscape(): boolean { + Debug.assertEqual(text.charCodeAt(pos - 1), CharacterCodes.backslash); + let isCharacterComplement = false; + const start = pos - 1; + const ch = text.charCodeAt(pos); + switch (ch) { + case CharacterCodes.d: + case CharacterCodes.D: + case CharacterCodes.s: + case CharacterCodes.S: + case CharacterCodes.w: + case CharacterCodes.W: + pos++; + return true; + case CharacterCodes.P: + isCharacterComplement = true; + // falls through + case CharacterCodes.p: + pos++; + if (text.charCodeAt(pos) === CharacterCodes.openBrace) { + pos++; + const propertyNameOrValueStart = pos; + const propertyNameOrValue = scanWordCharacters(); + if (text.charCodeAt(pos) === CharacterCodes.equals) { + const propertyName = nonBinaryUnicodeProperties.get(propertyNameOrValue); + if (pos === propertyNameOrValueStart) { + error(Diagnostics.Expected_a_Unicode_property_name); + } + else if (propertyName === undefined) { + error(Diagnostics.Unknown_Unicode_property_name, propertyNameOrValueStart, pos - propertyNameOrValueStart); + } + pos++; + const propertyValueStart = pos; + const propertyValue = scanWordCharacters(); + if (pos === propertyValueStart) { + error(Diagnostics.Expected_a_Unicode_property_value); + } + else if (propertyName !== undefined && !valuesOfNonBinaryUnicodeProperties[propertyName].has(propertyValue)) { + error(Diagnostics.Unknown_Unicode_property_value, propertyValueStart, pos - propertyValueStart); + } + } + else { + if (pos === propertyNameOrValueStart) { + error(Diagnostics.Expected_a_Unicode_property_name_or_value); + } + else if (binaryUnicodePropertiesOfStrings.has(propertyNameOrValue)) { + if (!unicodeSetsMode) { + error(Diagnostics.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set, propertyNameOrValueStart, pos - propertyNameOrValueStart); + } + else if (isCharacterComplement) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, propertyNameOrValueStart, pos - propertyNameOrValueStart); + } + else { + mayContainStrings = true; + } + } + else if (!valuesOfNonBinaryUnicodeProperties.General_Category.has(propertyNameOrValue) && !binaryUnicodeProperties.has(propertyNameOrValue)) { + error(Diagnostics.Unknown_Unicode_property_name_or_value, propertyNameOrValueStart, pos - propertyNameOrValueStart); + } + } + scanExpectedChar(CharacterCodes.closeBrace); + if (!unicodeMode) { + error(Diagnostics.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, start, pos - start); + } + } + else if (unicodeMode) { + error(Diagnostics._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces, pos - 2, 2, String.fromCharCode(ch)); + } + return true; + } + return false; + } + + function scanWordCharacters(): string { + let value = ""; + while (pos < end) { + const ch = text.charCodeAt(pos); + if (!isWordCharacter(ch)) { + break; + } + value += String.fromCharCode(ch); + pos++; + } + return value; + } + + function scanSourceCharacter(): string { + const size = unicodeMode ? charSize(codePointAt(text, pos)) : 1; + pos += size; + return text.substring(pos - size, pos); + } + + function scanExpectedChar(ch: CharacterCodes) { + if (text.charCodeAt(pos) === ch) { + pos++; + } + else { + error(Diagnostics._0_expected, pos, 0, String.fromCharCode(ch)); + } + } + + scanDisjunction(/*isInGroup*/ false); + + forEach(groupNameReferences, reference => { + if (!groupSpecifiers.has(reference.name)) { + error(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference.pos, reference.end - reference.pos, reference.name); + } + }); + forEach(decimalEscapes, escape => { + if (escape.value > numberOfCapturingGroups) { + if (numberOfCapturingGroups) { + error(Diagnostics.A_decimal_escape_must_refer_to_an_existent_capturing_group_There_are_only_0_capturing_groups_in_this_regular_expression, escape.pos, escape.end - escape.pos, numberOfCapturingGroups); + } + else { + error(Diagnostics.Decimal_escapes_are_invalid_when_there_are_no_capturing_groups_in_a_regular_expression, escape.pos, escape.end - escape.pos); + } + } + }); + } } function appendIfCommentDirective( @@ -2663,8 +3672,6 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean pos--; const extendedCookedChar = peekExtendedUnicodeEscape(); if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - pos += 3; - tokenFlags |= TokenFlags.ExtendedUnicodeEscape; tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts(); return token = getIdentifierToken(); } @@ -2824,3 +3831,33 @@ const utf16EncodeAsStringWorker: (codePoint: number) => string = (String as any) export function utf16EncodeAsString(codePoint: number) { return utf16EncodeAsStringWorker(codePoint); } + +// Table 66: Non-binary Unicode property aliases and their canonical property names +// https://tc39.es/ecma262/#table-nonbinary-unicode-properties +// dprint-ignore +const nonBinaryUnicodeProperties = new Map(Object.entries({ + General_Category: "General_Category", + gc: "General_Category", + Script: "Script", + sc: "Script", + Script_Extensions: "Script_Extensions", + scx: "Script_Extensions", +} as const)); + +// Table 67: Binary Unicode property aliases and their canonical property names +// https://tc39.es/ecma262/#table-binary-unicode-properties +// dprint-ignore +const binaryUnicodeProperties = new Set(["ASCII", "ASCII_Hex_Digit", "AHex", "Alphabetic", "Alpha", "Any", "Assigned", "Bidi_Control", "Bidi_C", "Bidi_Mirrored", "Bidi_M", "Case_Ignorable", "CI", "Cased", "Changes_When_Casefolded", "CWCF", "Changes_When_Casemapped", "CWCM", "Changes_When_Lowercased", "CWL", "Changes_When_NFKC_Casefolded", "CWKCF", "Changes_When_Titlecased", "CWT", "Changes_When_Uppercased", "CWU", "Dash", "Default_Ignorable_Code_Point", "DI", "Deprecated", "Dep", "Diacritic", "Dia", "Emoji", "Emoji_Component", "EComp", "Emoji_Modifier", "EMod", "Emoji_Modifier_Base", "EBase", "Emoji_Presentation", "EPres", "Extended_Pictographic", "ExtPict", "Extender", "Ext", "Grapheme_Base", "Gr_Base", "Grapheme_Extend", "Gr_Ext", "Hex_Digit", "Hex", "IDS_Binary_Operator", "IDSB", "IDS_Trinary_Operator", "IDST", "ID_Continue", "IDC", "ID_Start", "IDS", "Ideographic", "Ideo", "Join_Control", "Join_C", "Logical_Order_Exception", "LOE", "Lowercase", "Lower", "Math", "Noncharacter_Code_Point", "NChar", "Pattern_Syntax", "Pat_Syn", "Pattern_White_Space", "Pat_WS", "Quotation_Mark", "QMark", "Radical", "Regional_Indicator", "RI", "Sentence_Terminal", "STerm", "Soft_Dotted", "SD", "Terminal_Punctuation", "Term", "Unified_Ideograph", "UIdeo", "Uppercase", "Upper", "Variation_Selector", "VS", "White_Space", "space", "XID_Continue", "XIDC", "XID_Start", "XIDS"]); + +// Table 68: Binary Unicode properties of strings +// https://tc39.es/ecma262/#table-binary-unicode-properties-of-strings +// dprint-ignore +const binaryUnicodePropertiesOfStrings = new Set(["Basic_Emoji", "Emoji_Keycap_Sequence", "RGI_Emoji_Modifier_Sequence", "RGI_Emoji_Flag_Sequence", "RGI_Emoji_Tag_Sequence", "RGI_Emoji_ZWJ_Sequence", "RGI_Emoji"]); + +// Unicode 15.1 +// dprint-ignore +const valuesOfNonBinaryUnicodeProperties = { + General_Category: new Set(["C", "Other", "Cc", "Control", "cntrl", "Cf", "Format", "Cn", "Unassigned", "Co", "Private_Use", "Cs", "Surrogate", "L", "Letter", "LC", "Cased_Letter", "Ll", "Lowercase_Letter", "Lm", "Modifier_Letter", "Lo", "Other_Letter", "Lt", "Titlecase_Letter", "Lu", "Uppercase_Letter", "M", "Mark", "Combining_Mark", "Mc", "Spacing_Mark", "Me", "Enclosing_Mark", "Mn", "Nonspacing_Mark", "N", "Number", "Nd", "Decimal_Number", "digit", "Nl", "Letter_Number", "No", "Other_Number", "P", "Punctuation", "punct", "Pc", "Connector_Punctuation", "Pd", "Dash_Punctuation", "Pe", "Close_Punctuation", "Pf", "Final_Punctuation", "Pi", "Initial_Punctuation", "Po", "Other_Punctuation", "Ps", "Open_Punctuation", "S", "Symbol", "Sc", "Currency_Symbol", "Sk", "Modifier_Symbol", "Sm", "Math_Symbol", "So", "Other_Symbol", "Z", "Separator", "Zl", "Line_Separator", "Zp", "Paragraph_Separator", "Zs", "Space_Separator"]), + Script: new Set(["Adlm", "Adlam", "Aghb", "Caucasian_Albanian", "Ahom", "Ahom", "Arab", "Arabic", "Armi", "Imperial_Aramaic", "Armn", "Armenian", "Avst", "Avestan", "Bali", "Balinese", "Bamu", "Bamum", "Bass", "Bassa_Vah", "Batk", "Batak", "Beng", "Bengali", "Bhks", "Bhaiksuki", "Bopo", "Bopomofo", "Brah", "Brahmi", "Brai", "Braille", "Bugi", "Buginese", "Buhd", "Buhid", "Cakm", "Chakma", "Cans", "Canadian_Aboriginal", "Cari", "Carian", "Cham", "Cham", "Cher", "Cherokee", "Chrs", "Chorasmian", "Copt", "Coptic", "Qaac", "Cpmn", "Cypro_Minoan", "Cprt", "Cypriot", "Cyrl", "Cyrillic", "Deva", "Devanagari", "Diak", "Dives_Akuru", "Dogr", "Dogra", "Dsrt", "Deseret", "Dupl", "Duployan", "Egyp", "Egyptian_Hieroglyphs", "Elba", "Elbasan", "Elym", "Elymaic", "Ethi", "Ethiopic", "Geor", "Georgian", "Glag", "Glagolitic", "Gong", "Gunjala_Gondi", "Gonm", "Masaram_Gondi", "Goth", "Gothic", "Gran", "Grantha", "Grek", "Greek", "Gujr", "Gujarati", "Guru", "Gurmukhi", "Hang", "Hangul", "Hani", "Han", "Hano", "Hanunoo", "Hatr", "Hatran", "Hebr", "Hebrew", "Hira", "Hiragana", "Hluw", "Anatolian_Hieroglyphs", "Hmng", "Pahawh_Hmong", "Hmnp", "Nyiakeng_Puachue_Hmong", "Hrkt", "Katakana_Or_Hiragana", "Hung", "Old_Hungarian", "Ital", "Old_Italic", "Java", "Javanese", "Kali", "Kayah_Li", "Kana", "Katakana", "Kawi", "Kawi", "Khar", "Kharoshthi", "Khmr", "Khmer", "Khoj", "Khojki", "Kits", "Khitan_Small_Script", "Knda", "Kannada", "Kthi", "Kaithi", "Lana", "Tai_Tham", "Laoo", "Lao", "Latn", "Latin", "Lepc", "Lepcha", "Limb", "Limbu", "Lina", "Linear_A", "Linb", "Linear_B", "Lisu", "Lisu", "Lyci", "Lycian", "Lydi", "Lydian", "Mahj", "Mahajani", "Maka", "Makasar", "Mand", "Mandaic", "Mani", "Manichaean", "Marc", "Marchen", "Medf", "Medefaidrin", "Mend", "Mende_Kikakui", "Merc", "Meroitic_Cursive", "Mero", "Meroitic_Hieroglyphs", "Mlym", "Malayalam", "Modi", "Modi", "Mong", "Mongolian", "Mroo", "Mro", "Mtei", "Meetei_Mayek", "Mult", "Multani", "Mymr", "Myanmar", "Nagm", "Nag_Mundari", "Nand", "Nandinagari", "Narb", "Old_North_Arabian", "Nbat", "Nabataean", "Newa", "Newa", "Nkoo", "Nko", "Nshu", "Nushu", "Ogam", "Ogham", "Olck", "Ol_Chiki", "Orkh", "Old_Turkic", "Orya", "Oriya", "Osge", "Osage", "Osma", "Osmanya", "Ougr", "Old_Uyghur", "Palm", "Palmyrene", "Pauc", "Pau_Cin_Hau", "Perm", "Old_Permic", "Phag", "Phags_Pa", "Phli", "Inscriptional_Pahlavi", "Phlp", "Psalter_Pahlavi", "Phnx", "Phoenician", "Plrd", "Miao", "Prti", "Inscriptional_Parthian", "Rjng", "Rejang", "Rohg", "Hanifi_Rohingya", "Runr", "Runic", "Samr", "Samaritan", "Sarb", "Old_South_Arabian", "Saur", "Saurashtra", "Sgnw", "SignWriting", "Shaw", "Shavian", "Shrd", "Sharada", "Sidd", "Siddham", "Sind", "Khudawadi", "Sinh", "Sinhala", "Sogd", "Sogdian", "Sogo", "Old_Sogdian", "Sora", "Sora_Sompeng", "Soyo", "Soyombo", "Sund", "Sundanese", "Sylo", "Syloti_Nagri", "Syrc", "Syriac", "Tagb", "Tagbanwa", "Takr", "Takri", "Tale", "Tai_Le", "Talu", "New_Tai_Lue", "Taml", "Tamil", "Tang", "Tangut", "Tavt", "Tai_Viet", "Telu", "Telugu", "Tfng", "Tifinagh", "Tglg", "Tagalog", "Thaa", "Thaana", "Thai", "Thai", "Tibt", "Tibetan", "Tirh", "Tirhuta", "Tnsa", "Tangsa", "Toto", "Toto", "Ugar", "Ugaritic", "Vaii", "Vai", "Vith", "Vithkuqi", "Wara", "Warang_Citi", "Wcho", "Wancho", "Xpeo", "Old_Persian", "Xsux", "Cuneiform", "Yezi", "Yezidi", "Yiii", "Yi", "Zanb", "Zanabazar_Square", "Zinh", "Inherited", "Qaai", "Zyyy", "Common", "Zzzz", "Unknown"]), + Script_Extensions: new Set(), // Currently empty +}; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 14575e7f1733d..096671351082f 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2729,6 +2729,21 @@ export interface RegularExpressionLiteral extends LiteralExpression { readonly kind: SyntaxKind.RegularExpressionLiteral; } +// dprint-ignore +export const enum RegularExpressionFlags { + None = 0, + HasIndices = 1 << 0, // d + Global = 1 << 1, // g + IgnoreCase = 1 << 2, // i + Multiline = 1 << 3, // m + DotAll = 1 << 4, // s + Unicode = 1 << 5, // u + UnicodeSets = 1 << 6, // v + Sticky = 1 << 7, // y + UnicodeMode = Unicode | UnicodeSets, + Modifiers = IgnoreCase | Multiline | DotAll, +} + export interface NoSubstitutionTemplateLiteral extends LiteralExpression, TemplateLiteralLikeNode, Declaration { readonly kind: SyntaxKind.NoSubstitutionTemplateLiteral; /** @internal */ @@ -7256,7 +7271,7 @@ export const enum ScriptKind { Deferred = 7, } -export const enum ScriptTarget { +export enum ScriptTarget { ES3 = 0, ES5 = 1, ES2015 = 2, @@ -7267,6 +7282,8 @@ export const enum ScriptTarget { ES2020 = 7, ES2021 = 8, ES2022 = 9, + ES2023 = 10, + ES2024 = 11, ESNext = 99, JSON = 100, Latest = ESNext, diff --git a/src/testRunner/unittests/incrementalParser.ts b/src/testRunner/unittests/incrementalParser.ts index a42044d0a67db..52c3f16e0c01a 100644 --- a/src/testRunner/unittests/incrementalParser.ts +++ b/src/testRunner/unittests/incrementalParser.ts @@ -160,7 +160,7 @@ describe("unittests:: Incremental Parser", () => { const oldText = ts.ScriptSnapshot.fromString(source); const newTextAndChange = withInsert(oldText, semicolonIndex, "/"); - compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0); + compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 4); }); it("Regular expression 2", () => { diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index dcea4be64289a..40e6e8261d2df 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -5445,6 +5445,19 @@ declare namespace ts { interface RegularExpressionLiteral extends LiteralExpression { readonly kind: SyntaxKind.RegularExpressionLiteral; } + enum RegularExpressionFlags { + None = 0, + HasIndices = 1, + Global = 2, + IgnoreCase = 4, + Multiline = 8, + DotAll = 16, + Unicode = 32, + UnicodeSets = 64, + Sticky = 128, + UnicodeMode = 96, + Modifiers = 28, + } interface NoSubstitutionTemplateLiteral extends LiteralExpression, TemplateLiteralLikeNode, Declaration { readonly kind: SyntaxKind.NoSubstitutionTemplateLiteral; } @@ -7584,6 +7597,8 @@ declare namespace ts { ES2020 = 7, ES2021 = 8, ES2022 = 9, + ES2023 = 10, + ES2024 = 11, ESNext = 99, JSON = 100, Latest = 99, diff --git a/tests/baselines/reference/doYouNeedToChangeYourTargetLibraryES2016Plus.errors.txt b/tests/baselines/reference/doYouNeedToChangeYourTargetLibraryES2016Plus.errors.txt index 5841b5eba3b86..700f712e330c8 100644 --- a/tests/baselines/reference/doYouNeedToChangeYourTargetLibraryES2016Plus.errors.txt +++ b/tests/baselines/reference/doYouNeedToChangeYourTargetLibraryES2016Plus.errors.txt @@ -8,7 +8,13 @@ doYouNeedToChangeYourTargetLibraryES2016Plus.ts(10,64): error TS2550: Property ' doYouNeedToChangeYourTargetLibraryES2016Plus.ts(11,21): error TS2583: Cannot find name 'Atomics'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. doYouNeedToChangeYourTargetLibraryES2016Plus.ts(12,35): error TS2583: Cannot find name 'SharedArrayBuffer'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later. doYouNeedToChangeYourTargetLibraryES2016Plus.ts(15,50): error TS2550: Property 'finally' does not exist on type 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. +doYouNeedToChangeYourTargetLibraryES2016Plus.ts(16,58): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +doYouNeedToChangeYourTargetLibraryES2016Plus.ts(16,76): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +doYouNeedToChangeYourTargetLibraryES2016Plus.ts(16,95): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. doYouNeedToChangeYourTargetLibraryES2016Plus.ts(16,113): error TS2550: Property 'groups' does not exist on type 'RegExpMatchArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. +doYouNeedToChangeYourTargetLibraryES2016Plus.ts(17,38): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +doYouNeedToChangeYourTargetLibraryES2016Plus.ts(17,56): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +doYouNeedToChangeYourTargetLibraryES2016Plus.ts(17,75): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. doYouNeedToChangeYourTargetLibraryES2016Plus.ts(17,111): error TS2550: Property 'groups' does not exist on type 'RegExpExecArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. doYouNeedToChangeYourTargetLibraryES2016Plus.ts(18,33): error TS2550: Property 'dotAll' does not exist on type 'RegExp'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. doYouNeedToChangeYourTargetLibraryES2016Plus.ts(19,38): error TS2550: Property 'PluralRules' does not exist on type 'typeof Intl'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. @@ -33,7 +39,7 @@ doYouNeedToChangeYourTargetLibraryES2016Plus.ts(43,32): error TS2550: Property ' doYouNeedToChangeYourTargetLibraryES2016Plus.ts(44,33): error TS2550: Property 'replaceAll' does not exist on type '""'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later. -==== doYouNeedToChangeYourTargetLibraryES2016Plus.ts (33 errors) ==== +==== doYouNeedToChangeYourTargetLibraryES2016Plus.ts (39 errors) ==== // es2016 const testIncludes = ["hello"].includes("world"); ~~~~~~~~ @@ -70,9 +76,21 @@ doYouNeedToChangeYourTargetLibraryES2016Plus.ts(44,33): error TS2550: Property ' ~~~~~~~ !!! error TS2550: Property 'finally' does not exist on type 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. const testRegExpMatchArrayGroups = "2019-04-30".match(/(?[0-9]{4})-(?[0-9]{2})-(?[0-9]{2})/g).groups; + ~~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. ~~~~~~ !!! error TS2550: Property 'groups' does not exist on type 'RegExpMatchArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. const testRegExpExecArrayGroups = /(?[0-9]{4})-(?[0-9]{2})-(?[0-9]{2})/g.exec("2019-04-30").groups; + ~~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. ~~~~~~ !!! error TS2550: Property 'groups' does not exist on type 'RegExpExecArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2018' or later. const testRegExpDotAll = /foo/g.dotAll; diff --git a/tests/baselines/reference/manyCompilerErrorsInTheTwoFiles.errors.txt b/tests/baselines/reference/manyCompilerErrorsInTheTwoFiles.errors.txt index af0d69079c5f0..97edb82b46bb6 100644 --- a/tests/baselines/reference/manyCompilerErrorsInTheTwoFiles.errors.txt +++ b/tests/baselines/reference/manyCompilerErrorsInTheTwoFiles.errors.txt @@ -1,7 +1,7 @@ a.ts:1:12 - error TS18026: '#!' can only be used at the start of a file. 1 const a =!@#!@$ -    +   ~~ a.ts:1:13 - error TS1134: Variable declaration expected. 1 const a =!@#!@$ @@ -13,7 +13,7 @@ a.ts:2:13 - error TS18026: '#!' can only be used at the start of a file. 2 const b = !@#!@#!@#! -    +   ~~ a.ts:2:14 - error TS1134: Variable declaration expected. 2 const b = !@#!@#!@#! @@ -21,11 +21,11 @@ a.ts:2:16 - error TS18026: '#!' can only be used at the start of a file. 2 const b = !@#!@#!@#! -    +   ~~ a.ts:2:19 - error TS18026: '#!' can only be used at the start of a file. 2 const b = !@#!@#!@#! -    +   ~~ a.ts:3:1 - error TS2304: Cannot find name 'OK'. 3 OK! @@ -78,20 +78,20 @@ ==== a.ts (16 errors) ==== const a =!@#!@$ - + ~~ !!! error TS18026: '#!' can only be used at the start of a file. ~ !!! error TS1134: Variable declaration expected. !!! error TS1109: Expression expected. const b = !@#!@#!@#! - + ~~ !!! error TS18026: '#!' can only be used at the start of a file. ~ !!! error TS1134: Variable declaration expected. - + ~~ !!! error TS18026: '#!' can only be used at the start of a file. - + ~~ !!! error TS18026: '#!' can only be used at the start of a file. OK! ~~ diff --git a/tests/baselines/reference/parser.numericSeparators.unicodeEscape.errors.txt b/tests/baselines/reference/parser.numericSeparators.unicodeEscape.errors.txt index 3540eee22fae2..34ebaba5f00a6 100644 --- a/tests/baselines/reference/parser.numericSeparators.unicodeEscape.errors.txt +++ b/tests/baselines/reference/parser.numericSeparators.unicodeEscape.errors.txt @@ -1,32 +1,46 @@ 1.ts(1,7): error TS1199: Unterminated Unicode escape sequence. 10.ts(1,5): error TS1125: Hexadecimal digit expected. 11.ts(1,5): error TS1125: Hexadecimal digit expected. +12.ts(1,5): error TS1125: Hexadecimal digit expected. 13.ts(1,5): error TS1125: Hexadecimal digit expected. 14.ts(1,5): error TS1125: Hexadecimal digit expected. 15.ts(1,5): error TS1125: Hexadecimal digit expected. +16.ts(1,5): error TS1125: Hexadecimal digit expected. +16.ts(1,12): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? 17.ts(1,4): error TS1125: Hexadecimal digit expected. 18.ts(1,4): error TS1125: Hexadecimal digit expected. 19.ts(1,4): error TS1125: Hexadecimal digit expected. 2.ts(1,7): error TS1199: Unterminated Unicode escape sequence. +20.ts(1,4): error TS1125: Hexadecimal digit expected. 21.ts(1,4): error TS1125: Hexadecimal digit expected. 22.ts(1,4): error TS1125: Hexadecimal digit expected. 23.ts(1,4): error TS1125: Hexadecimal digit expected. +24.ts(1,4): error TS1125: Hexadecimal digit expected. 25.ts(1,11): error TS1199: Unterminated Unicode escape sequence. 26.ts(1,11): error TS1199: Unterminated Unicode escape sequence. 27.ts(1,11): error TS1199: Unterminated Unicode escape sequence. +28.ts(1,11): error TS1199: Unterminated Unicode escape sequence. +28.ts(1,12): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? 3.ts(1,7): error TS1199: Unterminated Unicode escape sequence. 37.ts(1,7): error TS1199: Unterminated Unicode escape sequence. 38.ts(1,7): error TS1199: Unterminated Unicode escape sequence. 39.ts(1,7): error TS1199: Unterminated Unicode escape sequence. +4.ts(1,7): error TS1199: Unterminated Unicode escape sequence. +4.ts(1,12): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +40.ts(1,7): error TS1199: Unterminated Unicode escape sequence. +40.ts(1,13): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? 41.ts(1,6): error TS1125: Hexadecimal digit expected. 42.ts(1,6): error TS1125: Hexadecimal digit expected. 43.ts(1,6): error TS1125: Hexadecimal digit expected. +44.ts(1,6): error TS1125: Hexadecimal digit expected. 45.ts(1,5): error TS1125: Hexadecimal digit expected. 46.ts(1,5): error TS1125: Hexadecimal digit expected. 47.ts(1,5): error TS1125: Hexadecimal digit expected. +48.ts(1,5): error TS1125: Hexadecimal digit expected. 5.ts(1,6): error TS1125: Hexadecimal digit expected. 6.ts(1,6): error TS1125: Hexadecimal digit expected. 7.ts(1,6): error TS1125: Hexadecimal digit expected. +8.ts(1,6): error TS1125: Hexadecimal digit expected. 9.ts(1,5): error TS1125: Hexadecimal digit expected. @@ -45,8 +59,12 @@ !!! error TS1199: Unterminated Unicode escape sequence. -==== 4.ts (0 errors) ==== +==== 4.ts (2 errors) ==== /\u{10_ffff}/u + +!!! error TS1199: Unterminated Unicode escape sequence. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? ==== 5.ts (1 errors) ==== "\uff_ff" @@ -63,8 +81,10 @@ !!! error TS1125: Hexadecimal digit expected. -==== 8.ts (0 errors) ==== +==== 8.ts (1 errors) ==== /\uff_ff/u + +!!! error TS1125: Hexadecimal digit expected. ==== 9.ts (1 errors) ==== "\xf_f" @@ -81,8 +101,10 @@ !!! error TS1125: Hexadecimal digit expected. -==== 12.ts (0 errors) ==== +==== 12.ts (1 errors) ==== /\xf_f/u + +!!! error TS1125: Hexadecimal digit expected. ==== 13.ts (1 errors) ==== "\u{_10ffff}" @@ -99,8 +121,12 @@ !!! error TS1125: Hexadecimal digit expected. -==== 16.ts (0 errors) ==== +==== 16.ts (2 errors) ==== /\u{_10ffff}/u + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? ==== 17.ts (1 errors) ==== "\u_ffff" @@ -117,8 +143,10 @@ !!! error TS1125: Hexadecimal digit expected. -==== 20.ts (0 errors) ==== +==== 20.ts (1 errors) ==== /\u_ffff/u + +!!! error TS1125: Hexadecimal digit expected. ==== 21.ts (1 errors) ==== "\x_ff" @@ -135,8 +163,10 @@ !!! error TS1125: Hexadecimal digit expected. -==== 24.ts (0 errors) ==== +==== 24.ts (1 errors) ==== /\x_ff/u + +!!! error TS1125: Hexadecimal digit expected. ==== 25.ts (1 errors) ==== "\u{10ffff_}" @@ -153,8 +183,12 @@ !!! error TS1199: Unterminated Unicode escape sequence. -==== 28.ts (0 errors) ==== +==== 28.ts (2 errors) ==== /\u{10ffff_}/u + +!!! error TS1199: Unterminated Unicode escape sequence. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? ==== 29.ts (0 errors) ==== "\uffff_" @@ -195,8 +229,12 @@ !!! error TS1199: Unterminated Unicode escape sequence. -==== 40.ts (0 errors) ==== +==== 40.ts (2 errors) ==== /\u{10__ffff}/u + +!!! error TS1199: Unterminated Unicode escape sequence. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? ==== 41.ts (1 errors) ==== "\uff__ff" @@ -213,8 +251,10 @@ !!! error TS1125: Hexadecimal digit expected. -==== 44.ts (0 errors) ==== +==== 44.ts (1 errors) ==== /\uff__ff/u + +!!! error TS1125: Hexadecimal digit expected. ==== 45.ts (1 errors) ==== "\xf__f" @@ -231,6 +271,8 @@ !!! error TS1125: Hexadecimal digit expected. -==== 48.ts (0 errors) ==== +==== 48.ts (1 errors) ==== /\xf__f/u + +!!! error TS1125: Hexadecimal digit expected. \ No newline at end of file diff --git a/tests/baselines/reference/parser.numericSeparators.unicodeEscape.js b/tests/baselines/reference/parser.numericSeparators.unicodeEscape.js index bc4a70f6ccd46..9e6e8050ae989 100644 --- a/tests/baselines/reference/parser.numericSeparators.unicodeEscape.js +++ b/tests/baselines/reference/parser.numericSeparators.unicodeEscape.js @@ -150,7 +150,7 @@ //// [2.js] '\u{10_ffff}'; //// [3.js] -"\\u{10_ffff}"; +`\u{10_ffff}`; //// [4.js] /\u{10_ffff}/u; //// [5.js] @@ -158,7 +158,7 @@ //// [6.js] '\uff_ff'; //// [7.js] -"\\uff_ff"; +`\uff_ff`; //// [8.js] /\uff_ff/u; //// [9.js] @@ -166,7 +166,7 @@ //// [10.js] '\xf_f'; //// [11.js] -"\\xf_f"; +`\xf_f`; //// [12.js] /\xf_f/u; //// [13.js] @@ -174,7 +174,7 @@ //// [14.js] '\u{_10ffff}'; //// [15.js] -"\\u{_10ffff}"; +`\u{_10ffff}`; //// [16.js] /\u{_10ffff}/u; //// [17.js] @@ -182,7 +182,7 @@ //// [18.js] '\u_ffff'; //// [19.js] -"\\u_ffff"; +`\u_ffff`; //// [20.js] /\u_ffff/u; //// [21.js] @@ -190,7 +190,7 @@ //// [22.js] '\x_ff'; //// [23.js] -"\\x_ff"; +`\x_ff`; //// [24.js] /\x_ff/u; //// [25.js] @@ -198,7 +198,7 @@ //// [26.js] '\u{10ffff_}'; //// [27.js] -"\\u{10ffff_}"; +`\u{10ffff_}`; //// [28.js] /\u{10ffff_}/u; //// [29.js] @@ -206,7 +206,7 @@ //// [30.js] '\uffff_'; //// [31.js] -"\uFFFF_"; +`\uffff_`; //// [32.js] /\uffff_/u; //// [33.js] @@ -214,7 +214,7 @@ //// [34.js] '\xff_'; //// [35.js] -"\u00FF_"; +`\xff_`; //// [36.js] /\xff_/u; //// [37.js] @@ -222,7 +222,7 @@ //// [38.js] '\u{10__ffff}'; //// [39.js] -"\\u{10__ffff}"; +`\u{10__ffff}`; //// [40.js] /\u{10__ffff}/u; //// [41.js] @@ -230,7 +230,7 @@ //// [42.js] '\uff__ff'; //// [43.js] -"\\uff__ff"; +`\uff__ff`; //// [44.js] /\uff__ff/u; //// [45.js] @@ -238,6 +238,6 @@ //// [46.js] '\xf__f'; //// [47.js] -"\\xf__f"; +`\xf__f`; //// [48.js] /\xf__f/u; diff --git a/tests/baselines/reference/parser579071.errors.txt b/tests/baselines/reference/parser579071.errors.txt new file mode 100644 index 0000000000000..577810615d8d1 --- /dev/null +++ b/tests/baselines/reference/parser579071.errors.txt @@ -0,0 +1,7 @@ +parser579071.ts(1,14): error TS1005: ')' expected. + + +==== parser579071.ts (1 errors) ==== + var x = /fo(o/; + +!!! error TS1005: ')' expected. \ No newline at end of file diff --git a/tests/baselines/reference/parserRegularExpression1.errors.txt b/tests/baselines/reference/parserRegularExpression1.errors.txt index 1de094540e80d..1ac86776bad03 100644 --- a/tests/baselines/reference/parserRegularExpression1.errors.txt +++ b/tests/baselines/reference/parserRegularExpression1.errors.txt @@ -1,7 +1,7 @@ -parserRegularExpression1.ts(1,1): error TS1108: A 'return' statement can only be used within a function body. +parserRegularExpression1.ts(1,34): error TS1514: A character class range must not be bounded by another character class. ==== parserRegularExpression1.ts (1 errors) ==== return /(#?-?\d*\.\d\w*%?)|(@?#?[\w-?]+%?)/g; - ~~~~~~ -!!! error TS1108: A 'return' statement can only be used within a function body. \ No newline at end of file + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. \ No newline at end of file diff --git a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity3.errors.txt b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity3.errors.txt index 1c021a9ba8db3..4f004c7d5cf43 100644 --- a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity3.errors.txt +++ b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity3.errors.txt @@ -1,7 +1,10 @@ +parserRegularExpressionDivideAmbiguity3.ts(1,16): error TS1497: Unknown regular expression flag. parserRegularExpressionDivideAmbiguity3.ts(1,18): error TS2339: Property 'foo' does not exist on type 'RegExp'. -==== parserRegularExpressionDivideAmbiguity3.ts (1 errors) ==== +==== parserRegularExpressionDivideAmbiguity3.ts (2 errors) ==== if (1) /regexp/a.foo(); + ~ +!!! error TS1497: Unknown regular expression flag. ~~~ !!! error TS2339: Property 'foo' does not exist on type 'RegExp'. \ No newline at end of file diff --git a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.errors.txt b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.errors.txt index 4b32921546956..71688b6975608 100644 --- a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.errors.txt +++ b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.errors.txt @@ -1,13 +1,10 @@ parserRegularExpressionDivideAmbiguity4.ts(1,1): error TS2304: Cannot find name 'foo'. parserRegularExpressionDivideAmbiguity4.ts(1,6): error TS1161: Unterminated regular expression literal. -parserRegularExpressionDivideAmbiguity4.ts(1,17): error TS1005: ')' expected. -==== parserRegularExpressionDivideAmbiguity4.ts (3 errors) ==== +==== parserRegularExpressionDivideAmbiguity4.ts (2 errors) ==== foo(/notregexp); ~~~ !!! error TS2304: Cannot find name 'foo'. -!!! error TS1161: Unterminated regular expression literal. - -!!! error TS1005: ')' expected. \ No newline at end of file +!!! error TS1161: Unterminated regular expression literal. \ No newline at end of file diff --git a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.js b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.js index de84199b803ae..b8ec4550186b8 100644 --- a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.js +++ b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.js @@ -4,4 +4,4 @@ foo(/notregexp); //// [parserRegularExpressionDivideAmbiguity4.js] -foo(/notregexp);); +foo(/notregexp); diff --git a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.types b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.types index 269daf3addd56..24920b94b8fbc 100644 --- a/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.types +++ b/tests/baselines/reference/parserRegularExpressionDivideAmbiguity4.types @@ -2,7 +2,7 @@ === parserRegularExpressionDivideAmbiguity4.ts === foo(/notregexp); ->foo(/notregexp); : any +>foo(/notregexp) : any >foo : any ->/notregexp); : RegExp +>/notregexp : RegExp diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt new file mode 100644 index 0000000000000..b671f119fa95f --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt @@ -0,0 +1,719 @@ +regularExpressionScanning.ts(3,7): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(3,9): error TS1499: This regular expression flag is only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(3,10): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,11): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,12): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,13): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,14): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,15): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,16): error TS1499: This regular expression flag is only available when targeting 'ES2022' or later. +regularExpressionScanning.ts(3,17): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,18): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,19): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,20): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,21): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,22): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,6): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,7): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,10): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,11): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(7,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(7,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(7,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(8,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(8,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(8,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(9,5): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,14): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,29): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,45): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,57): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,15): error TS1530: There is no capturing group named 'absent' in this regular expression. +regularExpressionScanning.ts(10,24): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,36): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,45): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,58): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,59): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionScanning.ts(12,31): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,32): error TS1504: Numbers out of order in quantifier. +regularExpressionScanning.ts(12,40): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,61): error TS1503: Incomplete quantifier. Digit expected. +regularExpressionScanning.ts(14,12): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,15): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,22): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,28): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,33): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,36): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(15,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,8): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,25): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(15,37): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,50): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,72): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(18,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(18,28): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,33): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,40): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,49): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,63): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(19,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(20,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,67): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(21,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,31): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,44): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(23,19): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,31): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,47): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,59): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(25,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(25,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,3): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,6): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,15): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,20): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(27,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,14): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,3): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(29,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,10): error TS1519: '\q' must be followed by string alternatives enclosed in braces. +regularExpressionScanning.ts(29,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,23): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,38): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,46): error TS1005: '}' expected. +regularExpressionScanning.ts(29,47): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(31,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,34): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,19): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,50): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,51): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(33,8): error TS1005: '--' expected. +regularExpressionScanning.ts(33,9): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,11): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,12): error TS1005: '--' expected. +regularExpressionScanning.ts(33,15): error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,20): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,28): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,40): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,47): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,49): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,50): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,55): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(33,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,66): error TS1506: Unexpected '-'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,67): error TS1005: '--' expected. +regularExpressionScanning.ts(33,70): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,75): error TS1506: Unexpected '&'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,85): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,87): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(34,56): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. +regularExpressionScanning.ts(34,77): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(35,83): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(36,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,30): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,83): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(37,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,28): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,53): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,77): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(38,95): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(39,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,34): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,95): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(40,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,32): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,61): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,89): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(41,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,79): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,91): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(42,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,89): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,101): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + + +==== regularExpressionScanning.ts (224 errors) ==== + const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2018' or later. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2022' or later. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + // Pattern modifiers + /(?med-ium:bar)/, + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1498: Duplicate regular expression flag. + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + ~~~~~~ +!!! error TS1530: There is no capturing group named 'absent' in this regular expression. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + ~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + ~~~~~ +!!! error TS1504: Numbers out of order in quantifier. + ~~~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + +!!! error TS1503: Incomplete quantifier. Digit expected. + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + ~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + /\c[\c0\ca\cQ\c\C]\c1\C/u, + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1519: '\q' must be followed by string alternatives enclosed in braces. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + +!!! error TS1005: '}' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1005: '--' expected. + ~~ +!!! error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1518: Expected a class set oprand. + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '-'. Did you mean to escape it with backslash? + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1506: Unexpected '&'. Did you mean to escape it with backslash? + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1005: '&&' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).js b/tests/baselines/reference/regularExpressionScanning(target=es2015).js new file mode 100644 index 0000000000000..ff2963d7bb907 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +//// [regularExpressionScanning.ts] +const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + + +//// [regularExpressionScanning.js] +const regexes = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols b/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols new file mode 100644 index 0000000000000..191a4538b9c43 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regularExpressionScanning.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).types b/tests/baselines/reference/regularExpressionScanning(target=es2015).types new file mode 100644 index 0000000000000..66779559eb0c8 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).types @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] + + // Flags + /foo/visualstudiocode, +>/foo/visualstudiocode : RegExp + + // Pattern modifiers + /(?med-ium:bar)/, +>/(?med-ium:bar)/ : RegExp + + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp + + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u : RegExp + + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, +>/(?)((?bar)bar)(?baz)|(foo(?foo))(?)/ : RegExp + + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, +>/(\k)\k(?foo)|(?)((?)|(bar(?bar)))/ : RegExp + + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, +>/{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/ : RegExp + + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, +>/[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/ : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/ : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v : RegExp + + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, +>/\c[\c0\ca\cQ\c\C]\c1\C/ : RegExp + + /\c[\c0\ca\cQ\c\C]\c1\C/u, +>/\c[\c0\ca\cQ\c\C]\c1\C/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/ : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v : RegExp + + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/ : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v : RegExp + + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, +>/[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v : RegExp + + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, +>/[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, +>/[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, +>/[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v : RegExp + + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, +>/[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, +>/[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, +>/[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v : RegExp + + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt new file mode 100644 index 0000000000000..e811e0f8fca57 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt @@ -0,0 +1,742 @@ +error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +regularExpressionScanning.ts(3,7): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(3,9): error TS1499: This regular expression flag is only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(3,10): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,11): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,12): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,13): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,14): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,15): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,16): error TS1499: This regular expression flag is only available when targeting 'ES2022' or later. +regularExpressionScanning.ts(3,17): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,18): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,19): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,20): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,21): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,22): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,6): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,7): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,10): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,11): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(7,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(7,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(7,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(8,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(8,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(8,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(8,48): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(9,5): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,14): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,29): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,45): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,57): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,15): error TS1530: There is no capturing group named 'absent' in this regular expression. +regularExpressionScanning.ts(10,24): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,36): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,45): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,58): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,59): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionScanning.ts(12,31): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,32): error TS1504: Numbers out of order in quantifier. +regularExpressionScanning.ts(12,40): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,61): error TS1503: Incomplete quantifier. Digit expected. +regularExpressionScanning.ts(14,12): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,15): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,22): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,28): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,33): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,36): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(15,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,8): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,25): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(15,37): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,50): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,72): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(17,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,72): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(18,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(18,28): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,33): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,40): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,49): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,63): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(19,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,67): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(20,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(20,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,67): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(21,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,31): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,44): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,59): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(23,19): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,31): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,47): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,59): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(25,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(25,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,3): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,6): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,15): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,20): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,26): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(27,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,14): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,47): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(29,3): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(29,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,10): error TS1519: '\q' must be followed by string alternatives enclosed in braces. +regularExpressionScanning.ts(29,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,23): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,38): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,46): error TS1005: '}' expected. +regularExpressionScanning.ts(29,47): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(31,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,34): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,19): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,50): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,51): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,87): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(33,8): error TS1005: '--' expected. +regularExpressionScanning.ts(33,9): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,11): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,12): error TS1005: '--' expected. +regularExpressionScanning.ts(33,15): error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,20): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,28): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,40): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,47): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,49): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,50): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,55): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(33,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,66): error TS1506: Unexpected '-'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,67): error TS1005: '--' expected. +regularExpressionScanning.ts(33,70): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,75): error TS1506: Unexpected '&'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,85): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,87): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(34,56): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. +regularExpressionScanning.ts(34,77): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(35,83): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(36,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,30): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,83): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(37,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,28): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,53): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,77): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(38,95): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(39,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,34): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,95): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(40,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,32): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,61): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,89): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(41,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,79): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,91): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(42,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,89): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,101): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + + +!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error. +==== regularExpressionScanning.ts (231 errors) ==== + const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2018' or later. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2022' or later. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + // Pattern modifiers + /(?med-ium:bar)/, + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1498: Duplicate regular expression flag. + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + ~~~~~~ +!!! error TS1530: There is no capturing group named 'absent' in this regular expression. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + ~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + ~~~~~ +!!! error TS1504: Numbers out of order in quantifier. + ~~~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + +!!! error TS1503: Incomplete quantifier. Digit expected. + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + ~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + /\c[\c0\ca\cQ\c\C]\c1\C/u, + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1519: '\q' must be followed by string alternatives enclosed in braces. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + +!!! error TS1005: '}' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1005: '--' expected. + ~~ +!!! error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1518: Expected a class set oprand. + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '-'. Did you mean to escape it with backslash? + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1506: Unexpected '&'. Did you mean to escape it with backslash? + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1005: '&&' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).js b/tests/baselines/reference/regularExpressionScanning(target=es3).js new file mode 100644 index 0000000000000..bd76252b82a90 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es3).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +//// [regularExpressionScanning.ts] +const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + + +//// [regularExpressionScanning.js] +var regexes = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).symbols b/tests/baselines/reference/regularExpressionScanning(target=es3).symbols new file mode 100644 index 0000000000000..dd5083f5873b5 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es3).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regularExpressionScanning.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).types b/tests/baselines/reference/regularExpressionScanning(target=es3).types new file mode 100644 index 0000000000000..66779559eb0c8 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es3).types @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] + + // Flags + /foo/visualstudiocode, +>/foo/visualstudiocode : RegExp + + // Pattern modifiers + /(?med-ium:bar)/, +>/(?med-ium:bar)/ : RegExp + + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp + + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u : RegExp + + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, +>/(?)((?bar)bar)(?baz)|(foo(?foo))(?)/ : RegExp + + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, +>/(\k)\k(?foo)|(?)((?)|(bar(?bar)))/ : RegExp + + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, +>/{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/ : RegExp + + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, +>/[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/ : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/ : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v : RegExp + + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, +>/\c[\c0\ca\cQ\c\C]\c1\C/ : RegExp + + /\c[\c0\ca\cQ\c\C]\c1\C/u, +>/\c[\c0\ca\cQ\c\C]\c1\C/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/ : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v : RegExp + + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/ : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v : RegExp + + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, +>/[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v : RegExp + + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, +>/[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, +>/[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, +>/[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v : RegExp + + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, +>/[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, +>/[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, +>/[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v : RegExp + + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt new file mode 100644 index 0000000000000..6e435c33e5d1a --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt @@ -0,0 +1,740 @@ +regularExpressionScanning.ts(3,7): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(3,9): error TS1499: This regular expression flag is only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(3,10): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,11): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,12): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,13): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,14): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,15): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,16): error TS1499: This regular expression flag is only available when targeting 'ES2022' or later. +regularExpressionScanning.ts(3,17): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,18): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,19): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,20): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,21): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,22): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,6): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,7): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,10): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,11): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(7,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(7,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(7,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(8,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(8,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(8,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(8,48): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(9,5): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,14): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,29): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,45): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(9,57): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,15): error TS1530: There is no capturing group named 'absent' in this regular expression. +regularExpressionScanning.ts(10,24): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,36): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,45): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,58): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(10,59): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionScanning.ts(12,31): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,32): error TS1504: Numbers out of order in quantifier. +regularExpressionScanning.ts(12,40): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,61): error TS1503: Incomplete quantifier. Digit expected. +regularExpressionScanning.ts(14,12): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,15): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,22): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,28): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,33): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,36): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(15,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,8): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,25): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(15,37): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,50): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,72): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(17,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,72): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(18,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(18,28): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,33): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,40): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,49): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,63): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(19,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,67): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(20,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(20,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,67): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(21,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,31): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,44): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,59): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(23,19): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,31): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,47): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,59): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(25,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(25,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,3): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,6): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,15): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,20): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,26): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(27,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,14): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,47): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(29,3): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(29,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,10): error TS1519: '\q' must be followed by string alternatives enclosed in braces. +regularExpressionScanning.ts(29,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,23): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,38): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,46): error TS1005: '}' expected. +regularExpressionScanning.ts(29,47): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(31,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,34): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,19): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,50): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,51): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,87): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(33,8): error TS1005: '--' expected. +regularExpressionScanning.ts(33,9): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,11): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,12): error TS1005: '--' expected. +regularExpressionScanning.ts(33,15): error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,20): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,28): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,40): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,47): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,49): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,50): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,55): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(33,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,66): error TS1506: Unexpected '-'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,67): error TS1005: '--' expected. +regularExpressionScanning.ts(33,70): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,75): error TS1506: Unexpected '&'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,85): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,87): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(34,56): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. +regularExpressionScanning.ts(34,77): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(35,83): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(36,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,30): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,83): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(37,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,28): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,53): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,77): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(38,95): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(39,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,34): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,95): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(40,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,32): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,61): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,89): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(41,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,79): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,91): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(42,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,89): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,101): error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + + +==== regularExpressionScanning.ts (231 errors) ==== + const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2018' or later. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2022' or later. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + // Pattern modifiers + /(?med-ium:bar)/, + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1498: Duplicate regular expression flag. + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + ~~~~~~ +!!! error TS1530: There is no capturing group named 'absent' in this regular expression. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + ~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + ~~~~~ +!!! error TS1504: Numbers out of order in quantifier. + ~~~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + +!!! error TS1503: Incomplete quantifier. Digit expected. + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + ~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + /\c[\c0\ca\cQ\c\C]\c1\C/u, + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1519: '\q' must be followed by string alternatives enclosed in braces. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + +!!! error TS1005: '}' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1005: '--' expected. + ~~ +!!! error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1518: Expected a class set oprand. + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '-'. Did you mean to escape it with backslash? + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1506: Unexpected '&'. Did you mean to escape it with backslash? + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1005: '&&' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2024' or later. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).js b/tests/baselines/reference/regularExpressionScanning(target=es5).js new file mode 100644 index 0000000000000..bd76252b82a90 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +//// [regularExpressionScanning.ts] +const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + + +//// [regularExpressionScanning.js] +var regexes = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).symbols b/tests/baselines/reference/regularExpressionScanning(target=es5).symbols new file mode 100644 index 0000000000000..dd5083f5873b5 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regularExpressionScanning.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).types b/tests/baselines/reference/regularExpressionScanning(target=es5).types new file mode 100644 index 0000000000000..66779559eb0c8 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).types @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] + + // Flags + /foo/visualstudiocode, +>/foo/visualstudiocode : RegExp + + // Pattern modifiers + /(?med-ium:bar)/, +>/(?med-ium:bar)/ : RegExp + + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp + + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u : RegExp + + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, +>/(?)((?bar)bar)(?baz)|(foo(?foo))(?)/ : RegExp + + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, +>/(\k)\k(?foo)|(?)((?)|(bar(?bar)))/ : RegExp + + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, +>/{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/ : RegExp + + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, +>/[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/ : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/ : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v : RegExp + + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, +>/\c[\c0\ca\cQ\c\C]\c1\C/ : RegExp + + /\c[\c0\ca\cQ\c\C]\c1\C/u, +>/\c[\c0\ca\cQ\c\C]\c1\C/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/ : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v : RegExp + + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/ : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v : RegExp + + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, +>/[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v : RegExp + + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, +>/[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, +>/[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, +>/[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v : RegExp + + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, +>/[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, +>/[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, +>/[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v : RegExp + + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt new file mode 100644 index 0000000000000..9c6e4930cbed4 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt @@ -0,0 +1,641 @@ +regularExpressionScanning.ts(3,10): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,11): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,12): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,13): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,14): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,15): error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. +regularExpressionScanning.ts(3,17): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,18): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,19): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,20): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(3,21): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(3,22): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,6): error TS1497: Unknown regular expression flag. +regularExpressionScanning.ts(5,7): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,10): error TS1507: This regular expression flag cannot be toggled within a subpattern. +regularExpressionScanning.ts(5,11): error TS1498: Duplicate regular expression flag. +regularExpressionScanning.ts(7,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(7,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(7,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(7,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(7,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(8,9): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. +regularExpressionScanning.ts(8,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. +regularExpressionScanning.ts(8,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. +regularExpressionScanning.ts(8,42): error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. +regularExpressionScanning.ts(8,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. +regularExpressionScanning.ts(10,15): error TS1530: There is no capturing group named 'absent' in this regular expression. +regularExpressionScanning.ts(10,59): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionScanning.ts(12,31): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,32): error TS1504: Numbers out of order in quantifier. +regularExpressionScanning.ts(12,40): error TS1505: There is nothing available for repetition. +regularExpressionScanning.ts(12,61): error TS1503: Incomplete quantifier. Digit expected. +regularExpressionScanning.ts(14,12): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,15): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,22): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,28): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(14,33): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(14,36): error TS1514: A character class range must not be bounded by another character class. +regularExpressionScanning.ts(15,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,8): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,25): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(15,37): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,50): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(15,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(16,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,28): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(17,62): error TS1527: Unknown Unicode property name or value. +regularExpressionScanning.ts(18,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(18,28): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,33): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(18,40): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(18,49): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,59): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(18,63): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(18,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(19,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(19,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(19,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(19,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(19,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,6): error TS1522: Unknown Unicode property name. +regularExpressionScanning.ts(20,31): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,32): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,39): error TS1523: Expected a Unicode property value. +regularExpressionScanning.ts(20,43): error TS1521: Expected a Unicode property name. +regularExpressionScanning.ts(20,52): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,53): error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,57): error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. +regularExpressionScanning.ts(20,62): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(20,66): error TS1525: Expected a Unicode property name or value. +regularExpressionScanning.ts(21,3): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,16): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,31): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,44): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(21,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,6): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,19): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,34): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(22,47): error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(23,19): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,31): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(23,47): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(25,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(25,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,3): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,6): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,15): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,17): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,20): error TS1510: '\c' must be followed by an ASCII letter. +regularExpressionScanning.ts(26,23): error TS1496: '\C' is not a valid character escape. +regularExpressionScanning.ts(27,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(27,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(27,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,3): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,10): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,14): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(28,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(28,24): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(28,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,3): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(29,7): error TS1496: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,10): error TS1519: '\q' must be followed by string alternatives enclosed in braces. +regularExpressionScanning.ts(29,17): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,21): error TS1496: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,23): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,38): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,39): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,41): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,42): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,43): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,45): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(29,46): error TS1005: '}' expected. +regularExpressionScanning.ts(31,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,34): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,42): error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionScanning.ts(31,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(31,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,4): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,8): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,19): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,50): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,51): error TS1506: Unexpected ']'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,55): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(32,63): error TS1515: Range out of order in character class. +regularExpressionScanning.ts(32,76): error TS1496: '\q' is not a valid character escape. +regularExpressionScanning.ts(33,8): error TS1005: '--' expected. +regularExpressionScanning.ts(33,9): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,11): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,12): error TS1005: '--' expected. +regularExpressionScanning.ts(33,15): error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,20): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,28): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,40): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,47): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,49): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(33,50): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,55): error TS1509: '\q' is only available inside character class. +regularExpressionScanning.ts(33,57): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,61): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,66): error TS1506: Unexpected '-'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,67): error TS1005: '--' expected. +regularExpressionScanning.ts(33,70): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(33,75): error TS1506: Unexpected '&'. Did you mean to escape it with backslash? +regularExpressionScanning.ts(33,85): error TS1518: Expected a class set oprand. +regularExpressionScanning.ts(34,56): error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. +regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. +regularExpressionScanning.ts(36,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(36,30): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,28): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(37,53): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(39,34): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,32): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(40,61): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(41,79): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,5): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. +regularExpressionScanning.ts(42,89): error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + + +==== regularExpressionScanning.ts (198 errors) ==== + const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1500: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1498: Duplicate regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. + // Pattern modifiers + /(?med-ium:bar)/, + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1507: This regular expression flag cannot be toggled within a subpattern. + ~ +!!! error TS1498: Duplicate regular expression flag. + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + ~~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. + ~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + ~ +!!! error TS1531: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + ~~~~~~ +!!! error TS1530: There is no capturing group named 'absent' in this regular expression. + ~~~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + ~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + ~~~~~ +!!! error TS1504: Numbers out of order in quantifier. + ~~~~~~~~~ +!!! error TS1505: There is nothing available for repetition. + +!!! error TS1503: Incomplete quantifier. Digit expected. + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + ~~~~~~~ +!!! error TS1527: Unknown Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1523: Expected a Unicode property value. + ~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1521: Expected a Unicode property name. + ~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + ~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + ~~~~~~~~~~~~~~~ +!!! error TS1522: Unknown Unicode property name. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1523: Expected a Unicode property value. + +!!! error TS1521: Expected a Unicode property name. + +!!! error TS1525: Expected a Unicode property name or value. + ~~ +!!! error TS1529: '\p' must be followed by a Unicode property value expression enclosed in braces. + ~~ +!!! error TS1529: '\P' must be followed by a Unicode property value expression enclosed in braces. + +!!! error TS1525: Expected a Unicode property name or value. + +!!! error TS1525: Expected a Unicode property name or value. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + ~~~~~~~~~ +!!! error TS1526: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + /\c[\c0\ca\cQ\c\C]\c1\C/u, + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~~ +!!! error TS1496: '\C' is not a valid character escape. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~~ +!!! error TS1496: '\`' is not a valid character escape. + ~~ +!!! error TS1519: '\q' must be followed by string alternatives enclosed in braces. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~~ +!!! error TS1496: '\Q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + +!!! error TS1005: '}' expected. + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~~~~ +!!! error TS1528: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + ~~~ +!!! error TS1515: Range out of order in character class. + ~~~ +!!! error TS1515: Range out of order in character class. + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected ']'. Did you mean to escape it with backslash? + ~~ +!!! error TS1496: '\q' is not a valid character escape. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~~~ +!!! error TS1515: Range out of order in character class. + ~~ +!!! error TS1496: '\q' is not a valid character escape. + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1518: Expected a class set oprand. + +!!! error TS1005: '--' expected. + ~~ +!!! error TS1520: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + ~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1518: Expected a class set oprand. + ~~ +!!! error TS1509: '\q' is only available inside character class. + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1506: Unexpected '-'. Did you mean to escape it with backslash? + +!!! error TS1005: '--' expected. + +!!! error TS1518: Expected a class set oprand. + ~ +!!! error TS1506: Unexpected '&'. Did you mean to escape it with backslash? + +!!! error TS1518: Expected a class set oprand. + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + ~~ +!!! error TS1517: Operators must not be mixed within a character class. Wrap it in a nested class instead. + +!!! error TS1005: '&&' expected. + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ~~~~~~~~~ +!!! error TS1516: Anything that would possibly match more than a single character is invalid inside a negated character class. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).js b/tests/baselines/reference/regularExpressionScanning(target=esnext).js new file mode 100644 index 0000000000000..ff2963d7bb907 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).js @@ -0,0 +1,92 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +//// [regularExpressionScanning.ts] +const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + + +//// [regularExpressionScanning.js] +const regexes = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols b/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols new file mode 100644 index 0000000000000..30be66e31f371 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regularExpressionScanning.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.regexp.d.ts, --, --) ... and 2 more) + + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).types b/tests/baselines/reference/regularExpressionScanning(target=esnext).types new file mode 100644 index 0000000000000..66779559eb0c8 --- /dev/null +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).types @@ -0,0 +1,118 @@ +//// [tests/cases/compiler/regularExpressionScanning.ts] //// + +=== regularExpressionScanning.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] + + // Flags + /foo/visualstudiocode, +>/foo/visualstudiocode : RegExp + + // Pattern modifiers + /(?med-ium:bar)/, +>/(?med-ium:bar)/ : RegExp + + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp + + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, +>/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u : RegExp + + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, +>/(?)((?bar)bar)(?baz)|(foo(?foo))(?)/ : RegExp + + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, +>/(\k)\k(?foo)|(?)((?)|(bar(?bar)))/ : RegExp + + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, +>/{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/ : RegExp + + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, +>/[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/ : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u : RegExp + + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, +>/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/ : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u : RegExp + + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, +>/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/ : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u : RegExp + + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, +>/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v : RegExp + + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, +>/\c[\c0\ca\cQ\c\C]\c1\C/ : RegExp + + /\c[\c0\ca\cQ\c\C]\c1\C/u, +>/\c[\c0\ca\cQ\c\C]\c1\C/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/ : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u : RegExp + + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, +>/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v : RegExp + + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/ : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u : RegExp + + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, +>/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v : RegExp + + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, +>/[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v : RegExp + + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, +>/[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, +>/[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v : RegExp + + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, +>/[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v : RegExp + + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, +>/[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, +>/[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v : RegExp + + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, +>/[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v : RegExp + + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +>/[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp + +]; + diff --git a/tests/baselines/reference/shebangError.errors.txt b/tests/baselines/reference/shebangError.errors.txt index 570ff70419c00..195db41e3a583 100644 --- a/tests/baselines/reference/shebangError.errors.txt +++ b/tests/baselines/reference/shebangError.errors.txt @@ -1,17 +1,23 @@ shebangError.ts(2,1): error TS18026: '#!' can only be used at the start of a file. shebangError.ts(2,2): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +shebangError.ts(2,8): error TS1497: Unknown regular expression flag. +shebangError.ts(2,10): error TS1497: Unknown regular expression flag. shebangError.ts(2,12): error TS2304: Cannot find name 'env'. shebangError.ts(2,16): error TS1005: ';' expected. shebangError.ts(2,16): error TS2304: Cannot find name 'node'. -==== shebangError.ts (5 errors) ==== +==== shebangError.ts (7 errors) ==== var foo = 'Shebang is only allowed on the first line'; #!/usr/bin/env node - + ~~ !!! error TS18026: '#!' can only be used at the start of a file. ~~~~~~~~~ !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~ +!!! error TS1497: Unknown regular expression flag. + ~ +!!! error TS1497: Unknown regular expression flag. ~~~ !!! error TS2304: Cannot find name 'env'. ~~~~ diff --git a/tests/baselines/reference/templateLiteralEscapeSequence.errors.txt b/tests/baselines/reference/templateLiteralEscapeSequence.errors.txt index 0576a672de059..bd43f3c1a3357 100644 --- a/tests/baselines/reference/templateLiteralEscapeSequence.errors.txt +++ b/tests/baselines/reference/templateLiteralEscapeSequence.errors.txt @@ -3,7 +3,7 @@ templateLiteralEscapeSequence.ts(4,5): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(5,6): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(6,7): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(8,5): error TS1125: Hexadecimal digit expected. -templateLiteralEscapeSequence.ts(9,11): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +templateLiteralEscapeSequence.ts(9,5): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. templateLiteralEscapeSequence.ts(10,4): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(11,5): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(13,8): error TS1125: Hexadecimal digit expected. @@ -11,7 +11,7 @@ templateLiteralEscapeSequence.ts(14,9): error TS1125: Hexadecimal digit expected templateLiteralEscapeSequence.ts(15,10): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(16,11): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(18,9): error TS1125: Hexadecimal digit expected. -templateLiteralEscapeSequence.ts(19,15): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +templateLiteralEscapeSequence.ts(19,9): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. templateLiteralEscapeSequence.ts(20,8): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(21,9): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(23,4): error TS1125: Hexadecimal digit expected. @@ -19,7 +19,7 @@ templateLiteralEscapeSequence.ts(24,5): error TS1125: Hexadecimal digit expected templateLiteralEscapeSequence.ts(25,6): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(26,7): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(28,5): error TS1125: Hexadecimal digit expected. -templateLiteralEscapeSequence.ts(29,11): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +templateLiteralEscapeSequence.ts(29,5): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. templateLiteralEscapeSequence.ts(30,4): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(31,5): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(33,8): error TS1125: Hexadecimal digit expected. @@ -27,7 +27,7 @@ templateLiteralEscapeSequence.ts(34,9): error TS1125: Hexadecimal digit expected templateLiteralEscapeSequence.ts(35,10): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(36,11): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(38,9): error TS1125: Hexadecimal digit expected. -templateLiteralEscapeSequence.ts(39,15): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +templateLiteralEscapeSequence.ts(39,9): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. templateLiteralEscapeSequence.ts(40,8): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(41,9): error TS1125: Hexadecimal digit expected. templateLiteralEscapeSequence.ts(85,8): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. @@ -62,7 +62,7 @@ templateLiteralEscapeSequence.ts(94,7): error TS1121: Octal literals are not all !!! error TS1125: Hexadecimal digit expected. `\u{ffffff}`; - + ~~~~~~ !!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. `\x`; @@ -88,7 +88,7 @@ templateLiteralEscapeSequence.ts(94,7): error TS1121: Octal literals are not all !!! error TS1125: Hexadecimal digit expected. `${0}\u{ffffff}`; - + ~~~~~~ !!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. `${0}\x`; @@ -114,7 +114,7 @@ templateLiteralEscapeSequence.ts(94,7): error TS1121: Octal literals are not all !!! error TS1125: Hexadecimal digit expected. `\u{ffffff}${0}`; - + ~~~~~~ !!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. `\x${0}`; @@ -140,7 +140,7 @@ templateLiteralEscapeSequence.ts(94,7): error TS1121: Octal literals are not all !!! error TS1125: Hexadecimal digit expected. `${0}\u{ffffff}${0}`; - + ~~~~~~ !!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. `${0}\x${0}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt new file mode 100644 index 0000000000000..1213b6a1704d2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions01.ts(1,17): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions01.ts (1 errors) ==== + var x = /\u{0}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).js new file mode 100644 index 0000000000000..4007801e4e6e7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions01.ts] +var x = /\u{0}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions01.js] +var x = /\u{0}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).symbols new file mode 100644 index 0000000000000..cc60c7afc8db9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions01.ts === +var x = /\u{0}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions01.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).types new file mode 100644 index 0000000000000..2c8a525a49701 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions01.ts === +var x = /\u{0}/gu; +>x : RegExp +>/\u{0}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).js new file mode 100644 index 0000000000000..4007801e4e6e7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions01.ts] +var x = /\u{0}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions01.js] +var x = /\u{0}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).symbols new file mode 100644 index 0000000000000..cc60c7afc8db9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions01.ts === +var x = /\u{0}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions01.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).types new file mode 100644 index 0000000000000..2c8a525a49701 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions01.ts === +var x = /\u{0}/gu; +>x : RegExp +>/\u{0}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js deleted file mode 100644 index b6e1314ed7aac..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions01_ES5.ts] -var x = /\u{0}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions01_ES5.js] -var x = /\u{0}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.symbols deleted file mode 100644 index aeae24419c27b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions01_ES5.ts === -var x = /\u{0}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions01_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types deleted file mode 100644 index a687117527e12..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions01_ES5.ts === -var x = /\u{0}/g; ->x : RegExp ->/\u{0}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js deleted file mode 100644 index fdf13639cd15b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions01_ES6.ts] -var x = /\u{0}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions01_ES6.js] -var x = /\u{0}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.symbols deleted file mode 100644 index c2917df559d1e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions01_ES6.ts === -var x = /\u{0}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions01_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types deleted file mode 100644 index 7b624288a223d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions01_ES6.ts === -var x = /\u{0}/g; ->x : RegExp ->/\u{0}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt new file mode 100644 index 0000000000000..3a3d4a70d8fe2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions02.ts(1,18): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions02.ts (1 errors) ==== + var x = /\u{00}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).js new file mode 100644 index 0000000000000..56f918ddba488 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions02.ts] +var x = /\u{00}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions02.js] +var x = /\u{00}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).symbols new file mode 100644 index 0000000000000..e261d81f7ecea --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions02.ts === +var x = /\u{00}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions02.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).types new file mode 100644 index 0000000000000..0cd0340a40e11 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions02.ts === +var x = /\u{00}/gu; +>x : RegExp +>/\u{00}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).js new file mode 100644 index 0000000000000..56f918ddba488 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions02.ts] +var x = /\u{00}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions02.js] +var x = /\u{00}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).symbols new file mode 100644 index 0000000000000..e261d81f7ecea --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions02.ts === +var x = /\u{00}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions02.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).types new file mode 100644 index 0000000000000..0cd0340a40e11 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions02.ts === +var x = /\u{00}/gu; +>x : RegExp +>/\u{00}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js deleted file mode 100644 index 2f8b538539b13..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions02_ES5.ts] -var x = /\u{00}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions02_ES5.js] -var x = /\u{00}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.symbols deleted file mode 100644 index 40074f3805630..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions02_ES5.ts === -var x = /\u{00}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions02_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types deleted file mode 100644 index 19ea694271998..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions02_ES5.ts === -var x = /\u{00}/g; ->x : RegExp ->/\u{00}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js deleted file mode 100644 index 0d94736c53e74..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions02_ES6.ts] -var x = /\u{00}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions02_ES6.js] -var x = /\u{00}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.symbols deleted file mode 100644 index 7df7fc11a2875..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions02_ES6.ts === -var x = /\u{00}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions02_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types deleted file mode 100644 index 95508bb441a56..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions02_ES6.ts === -var x = /\u{00}/g; ->x : RegExp ->/\u{00}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt new file mode 100644 index 0000000000000..6367a861b0a5c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions03.ts(1,20): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions03.ts (1 errors) ==== + var x = /\u{0000}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).js new file mode 100644 index 0000000000000..865016a00d165 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions03.ts] +var x = /\u{0000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions03.js] +var x = /\u{0000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).symbols new file mode 100644 index 0000000000000..a0fa187ee96b8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions03.ts === +var x = /\u{0000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions03.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).types new file mode 100644 index 0000000000000..0af246c033173 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions03.ts === +var x = /\u{0000}/gu; +>x : RegExp +>/\u{0000}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).js new file mode 100644 index 0000000000000..865016a00d165 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions03.ts] +var x = /\u{0000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions03.js] +var x = /\u{0000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).symbols new file mode 100644 index 0000000000000..a0fa187ee96b8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions03.ts === +var x = /\u{0000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions03.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).types new file mode 100644 index 0000000000000..0af246c033173 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions03.ts === +var x = /\u{0000}/gu; +>x : RegExp +>/\u{0000}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js deleted file mode 100644 index d7d143b664c6a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions03_ES5.ts] -var x = /\u{0000}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions03_ES5.js] -var x = /\u{0000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.symbols deleted file mode 100644 index 6db06bb8f271f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions03_ES5.ts === -var x = /\u{0000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions03_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types deleted file mode 100644 index df3ac1589cbac..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions03_ES5.ts === -var x = /\u{0000}/g; ->x : RegExp ->/\u{0000}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js deleted file mode 100644 index 43a0a94d7e75f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions03_ES6.ts] -var x = /\u{0000}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions03_ES6.js] -var x = /\u{0000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.symbols deleted file mode 100644 index d590ff7d7292d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions03_ES6.ts === -var x = /\u{0000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions03_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types deleted file mode 100644 index 8437def5458c1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions03_ES6.ts === -var x = /\u{0000}/g; ->x : RegExp ->/\u{0000}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt new file mode 100644 index 0000000000000..a746685710119 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions04.ts(1,24): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions04.ts (1 errors) ==== + var x = /\u{00000000}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).js new file mode 100644 index 0000000000000..9425b3fa79364 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions04.ts] +var x = /\u{00000000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions04.js] +var x = /\u{00000000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).symbols new file mode 100644 index 0000000000000..947221df25cbc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions04.ts === +var x = /\u{00000000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions04.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).types new file mode 100644 index 0000000000000..cf6bb2054b3e8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions04.ts === +var x = /\u{00000000}/gu; +>x : RegExp +>/\u{00000000}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).js new file mode 100644 index 0000000000000..9425b3fa79364 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions04.ts] +var x = /\u{00000000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions04.js] +var x = /\u{00000000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).symbols new file mode 100644 index 0000000000000..947221df25cbc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions04.ts === +var x = /\u{00000000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions04.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).types new file mode 100644 index 0000000000000..cf6bb2054b3e8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions04.ts === +var x = /\u{00000000}/gu; +>x : RegExp +>/\u{00000000}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js deleted file mode 100644 index a403dddcfc644..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions04_ES5.ts] -var x = /\u{00000000}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions04_ES5.js] -var x = /\u{00000000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.symbols deleted file mode 100644 index 8356ca2f7d58c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions04_ES5.ts === -var x = /\u{00000000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions04_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types deleted file mode 100644 index f1667f902dac2..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions04_ES5.ts === -var x = /\u{00000000}/g; ->x : RegExp ->/\u{00000000}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js deleted file mode 100644 index 62d55651b3fab..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions04_ES6.ts] -var x = /\u{00000000}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions04_ES6.js] -var x = /\u{00000000}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.symbols deleted file mode 100644 index ab25a950a981c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions04_ES6.ts === -var x = /\u{00000000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions04_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types deleted file mode 100644 index 82b23182773b1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions04_ES6.ts === -var x = /\u{00000000}/g; ->x : RegExp ->/\u{00000000}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt new file mode 100644 index 0000000000000..a7ee6de5ca70c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions05.ts(1,78): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions05.ts (1 errors) ==== + var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).js new file mode 100644 index 0000000000000..8f714e269a459 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions05.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}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions05.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}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).symbols similarity index 56% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).symbols index 8a1bea8502ddf..e00d8df65ee73 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).symbols @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts] //// -=== 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 : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions05_ES6.ts, 0, 3)) +=== unicodeExtendedEscapesInRegularExpressions05.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}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions05.ts, 0, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).types index ebf88fe0f1167..a9737343d5e7f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).types @@ -1,7 +1,7 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts] //// -=== 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.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}/gu; >x : RegExp ->/\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g : RegExp +>/\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).js new file mode 100644 index 0000000000000..8f714e269a459 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions05.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}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions05.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}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).symbols similarity index 56% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).symbols index 1d1ed3f17df3e..e00d8df65ee73 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).symbols @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts] //// -=== 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 : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions05_ES5.ts, 0, 3)) +=== unicodeExtendedEscapesInRegularExpressions05.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}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions05.ts, 0, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).types index 9f9f6c238b50e..a9737343d5e7f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es6).types @@ -1,7 +1,7 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts] //// -=== 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.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}/gu; >x : RegExp ->/\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g : RegExp +>/\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js deleted file mode 100644 index 202de958b4af5..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js deleted file mode 100644 index b381e716e0641..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt new file mode 100644 index 0000000000000..a27a403da0e06 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt @@ -0,0 +1,10 @@ +unicodeExtendedEscapesInRegularExpressions06.ts(3,22): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions06.ts (1 errors) ==== + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = /\u{10FFFF}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).js new file mode 100644 index 0000000000000..ff3cdc96a735b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions06.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions06.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).symbols similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).symbols index 7e1b374898fef..f304f4a6a2810 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts] //// -=== unicodeExtendedEscapesInRegularExpressions06_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{10FFFF}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions06_ES6.ts, 2, 3)) +var x = /\u{10FFFF}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions06.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).types similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).types index d0cf25cdcce7a..060ddc4de9bab 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).types @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts] //// -=== unicodeExtendedEscapesInRegularExpressions07_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{110000}/g; +var x = /\u{10FFFF}/gu; >x : RegExp ->/\u{110000}/g : RegExp +>/\u{10FFFF}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).js new file mode 100644 index 0000000000000..ff3cdc96a735b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions06.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions06.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{10FFFF}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).symbols similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).symbols index 8fae2b72ed26e..f304f4a6a2810 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts] //// -=== unicodeExtendedEscapesInRegularExpressions06_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{10FFFF}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions06_ES5.ts, 2, 3)) +var x = /\u{10FFFF}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions06.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).types similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).types index c386705fece28..060ddc4de9bab 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es6).types @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts] //// -=== unicodeExtendedEscapesInRegularExpressions07_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{110000}/g; +var x = /\u{10FFFF}/gu; >x : RegExp ->/\u{110000}/g : RegExp +>/\u{10FFFF}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js deleted file mode 100644 index ec796d0cf049f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js deleted file mode 100644 index 2108c997cc812..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt new file mode 100644 index 0000000000000..77647fdcffb69 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt @@ -0,0 +1,13 @@ +unicodeExtendedEscapesInRegularExpressions07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +unicodeExtendedEscapesInRegularExpressions07.ts(3,22): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions07.ts (2 errors) ==== + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = /\u{110000}/gu; + ~~~~~~ +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).js new file mode 100644 index 0000000000000..1fea2c9daf550 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions07.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions07.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).symbols similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).symbols index 4af27349ba8a5..4ca28e1dc34d2 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts] //// -=== unicodeExtendedEscapesInRegularExpressions07_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{110000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions07_ES5.ts, 2, 3)) +var x = /\u{110000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions07.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).types similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).types index 5606cf0d3c8f0..8db4b4552b071 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).types @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts] //// -=== unicodeExtendedEscapesInRegularExpressions06_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{10FFFF}/g; +var x = /\u{110000}/gu; >x : RegExp ->/\u{10FFFF}/g : RegExp +>/\u{110000}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).errors.txt new file mode 100644 index 0000000000000..51228e4c8752a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).errors.txt @@ -0,0 +1,10 @@ +unicodeExtendedEscapesInRegularExpressions07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInRegularExpressions07.ts (1 errors) ==== + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. + var x = /\u{110000}/gu; + ~~~~~~ +!!! 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/unicodeExtendedEscapesInRegularExpressions07(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).js new file mode 100644 index 0000000000000..1fea2c9daf550 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).js @@ -0,0 +1,12 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions07.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions07.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. +var x = /\u{110000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).symbols similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).symbols index b86786708f1be..4ca28e1dc34d2 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts] //// -=== unicodeExtendedEscapesInRegularExpressions07_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{110000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions07_ES6.ts, 2, 3)) +var x = /\u{110000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions07.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).types similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).types index 9d1c5a7d279ac..8db4b4552b071 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es6).types @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts] //// -=== unicodeExtendedEscapesInRegularExpressions06_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{10FFFF}/g; +var x = /\u{110000}/gu; >x : RegExp ->/\u{10FFFF}/g : RegExp +>/\u{110000}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js deleted file mode 100644 index 0dee0d59b0991..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js deleted file mode 100644 index bd036e05f186a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js +++ /dev/null @@ -1,12 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt new file mode 100644 index 0000000000000..fd5bceae16270 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt @@ -0,0 +1,11 @@ +unicodeExtendedEscapesInRegularExpressions08.ts(4,20): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions08.ts (1 errors) ==== + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 2. If cp ≤ 65535, return cp. + // (FFFF == 65535) + var x = /\u{FFFF}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).js new file mode 100644 index 0000000000000..5269cfbe18d66 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions08.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions08.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).symbols similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).symbols index 67a141018fc86..9afbc258418ed 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts] //// -=== unicodeExtendedEscapesInRegularExpressions08_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) -var x = /\u{FFFF}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions08_ES6.ts, 3, 3)) +var x = /\u{FFFF}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions08.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).types index 06247ac0b6079..5712d03421ae3 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).types @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts] //// -=== unicodeExtendedEscapesInRegularExpressions08_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) -var x = /\u{FFFF}/g; +var x = /\u{FFFF}/gu; >x : RegExp ->/\u{FFFF}/g : RegExp +>/\u{FFFF}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).js new file mode 100644 index 0000000000000..5269cfbe18d66 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions08.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions08.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (FFFF == 65535) +var x = /\u{FFFF}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).symbols similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).symbols index 3ddf4f5512697..9afbc258418ed 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts] //// -=== unicodeExtendedEscapesInRegularExpressions08_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) -var x = /\u{FFFF}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions08_ES5.ts, 3, 3)) +var x = /\u{FFFF}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions08.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).types index 82ec09b220e6c..5712d03421ae3 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es6).types @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts] //// -=== unicodeExtendedEscapesInRegularExpressions08_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) -var x = /\u{FFFF}/g; +var x = /\u{FFFF}/gu; >x : RegExp ->/\u{FFFF}/g : RegExp +>/\u{FFFF}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js deleted file mode 100644 index 5bbab8049c711..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js deleted file mode 100644 index d2593a62e8877..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt new file mode 100644 index 0000000000000..3c5356d7a7f6b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt @@ -0,0 +1,11 @@ +unicodeExtendedEscapesInRegularExpressions09.ts(4,21): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions09.ts (1 errors) ==== + // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) + // 2. If cp ≤ 65535, return cp. + // (10000 == 65536) + var x = /\u{10000}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).js new file mode 100644 index 0000000000000..0f9f512ab1e88 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions09.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions09.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).symbols similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).symbols index d2f0e92336220..8b8305fd99821 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts] //// -=== unicodeExtendedEscapesInRegularExpressions09_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) -var x = /\u{10000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions09_ES5.ts, 3, 3)) +var x = /\u{10000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions09.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).types index 5403192156956..28f6ef311c8f8 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).types @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts] //// -=== unicodeExtendedEscapesInRegularExpressions09_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) -var x = /\u{10000}/g; +var x = /\u{10000}/gu; >x : RegExp ->/\u{10000}/g : RegExp +>/\u{10000}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).js new file mode 100644 index 0000000000000..0f9f512ab1e88 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).js @@ -0,0 +1,14 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions09.ts] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions09.js] +// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) +// 2. If cp ≤ 65535, return cp. +// (10000 == 65536) +var x = /\u{10000}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).symbols similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).symbols index 6dd935b5d5956..8b8305fd99821 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts] //// -=== unicodeExtendedEscapesInRegularExpressions09_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) -var x = /\u{10000}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions09_ES6.ts, 3, 3)) +var x = /\u{10000}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions09.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).types index 992dfe5d7edb7..28f6ef311c8f8 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es6).types @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts] //// -=== unicodeExtendedEscapesInRegularExpressions09_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) -var x = /\u{10000}/g; +var x = /\u{10000}/gu; >x : RegExp ->/\u{10000}/g : RegExp +>/\u{10000}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js deleted file mode 100644 index ed30256965c51..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js deleted file mode 100644 index ddbc7098a2372..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt new file mode 100644 index 0000000000000..eafc1412857b5 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt @@ -0,0 +1,12 @@ +unicodeExtendedEscapesInRegularExpressions10.ts(5,20): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions10.ts (1 errors) ==== + // 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}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).js new file mode 100644 index 0000000000000..49185b889a2da --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions10.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}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions10.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}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).symbols similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).symbols index 48083c7b85435..15f30927e0b6e 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts] //// -=== unicodeExtendedEscapesInRegularExpressions10_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions10.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 : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions10_ES6.ts, 4, 3)) +var x = /\u{D800}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions10.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).types index 0a947f0bc5930..f1f042f476541 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).types @@ -1,11 +1,11 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts] //// -=== unicodeExtendedEscapesInRegularExpressions10_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions10.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; +var x = /\u{D800}/gu; >x : RegExp ->/\u{D800}/g : RegExp +>/\u{D800}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).js new file mode 100644 index 0000000000000..49185b889a2da --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions10.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}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions10.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}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).symbols similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).symbols index dd62d3bb04037..15f30927e0b6e 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts] //// -=== unicodeExtendedEscapesInRegularExpressions10_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions10.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 : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions10_ES5.ts, 4, 3)) +var x = /\u{D800}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions10.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).types index 7c43afc78c3e3..f1f042f476541 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es6).types @@ -1,11 +1,11 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts] //// -=== unicodeExtendedEscapesInRegularExpressions10_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions10.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; +var x = /\u{D800}/gu; >x : RegExp ->/\u{D800}/g : RegExp +>/\u{D800}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js deleted file mode 100644 index c36dbf51472dd..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js deleted file mode 100644 index ec3b2cc5896b8..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt new file mode 100644 index 0000000000000..b9d59345c72ff --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt @@ -0,0 +1,12 @@ +unicodeExtendedEscapesInRegularExpressions11.ts(5,20): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions11.ts (1 errors) ==== + // 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}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).js new file mode 100644 index 0000000000000..5df34dadfabf0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions11.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}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions11.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}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).symbols similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).symbols index 332f8696058d8..e1cb7702ca459 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts] //// -=== unicodeExtendedEscapesInRegularExpressions11_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions11.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 : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions11_ES5.ts, 4, 3)) +var x = /\u{DC00}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions11.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).types index 17e78961898d5..eb3e4a6c88f88 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).types @@ -1,11 +1,11 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts] //// -=== unicodeExtendedEscapesInRegularExpressions11_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions11.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; +var x = /\u{DC00}/gu; >x : RegExp ->/\u{DC00}/g : RegExp +>/\u{DC00}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).js new file mode 100644 index 0000000000000..5df34dadfabf0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions11.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}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions11.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}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).symbols similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).symbols index 980bf69d10fab..e1cb7702ca459 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts] //// -=== unicodeExtendedEscapesInRegularExpressions11_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions11.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 : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions11_ES6.ts, 4, 3)) +var x = /\u{DC00}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions11.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).types index f333bb1ba8df7..eb3e4a6c88f88 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es6).types @@ -1,11 +1,11 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts] //// -=== unicodeExtendedEscapesInRegularExpressions11_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions11.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; +var x = /\u{DC00}/gu; >x : RegExp ->/\u{DC00}/g : RegExp +>/\u{DC00}/gu : RegExp diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js deleted file mode 100644 index 8b367d0f4e065..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts] //// - -//// [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_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.js deleted file mode 100644 index e1ec2c1c9cb6f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES6.js +++ /dev/null @@ -1,16 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt new file mode 100644 index 0000000000000..b26bd31b05f38 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt @@ -0,0 +1,11 @@ +unicodeExtendedEscapesInRegularExpressions12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +unicodeExtendedEscapesInRegularExpressions12.ts(1,24): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions12.ts (2 errors) ==== + var x = /\u{FFFFFFFF}/gu; + ~~~~~~~~ +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).js new file mode 100644 index 0000000000000..96401acf89f02 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions12.ts] +var x = /\u{FFFFFFFF}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions12.js] +var x = /\u{FFFFFFFF}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).symbols new file mode 100644 index 0000000000000..9f99226181d7e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions12.ts === +var x = /\u{FFFFFFFF}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions12.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).types new file mode 100644 index 0000000000000..6e17395ed1fd8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions12.ts === +var x = /\u{FFFFFFFF}/gu; +>x : RegExp +>/\u{FFFFFFFF}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).errors.txt new file mode 100644 index 0000000000000..71bc964c77774 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInRegularExpressions12.ts (1 errors) ==== + var x = /\u{FFFFFFFF}/gu; + ~~~~~~~~ +!!! 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/unicodeExtendedEscapesInRegularExpressions12(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).js new file mode 100644 index 0000000000000..96401acf89f02 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions12.ts] +var x = /\u{FFFFFFFF}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions12.js] +var x = /\u{FFFFFFFF}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).symbols new file mode 100644 index 0000000000000..9f99226181d7e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions12.ts === +var x = /\u{FFFFFFFF}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions12.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).types new file mode 100644 index 0000000000000..6e17395ed1fd8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions12.ts === +var x = /\u{FFFFFFFF}/gu; +>x : RegExp +>/\u{FFFFFFFF}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js deleted file mode 100644 index 8fdc611f2e415..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions12_ES5.ts] -var x = /\u{FFFFFFFF}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions12_ES5.js] -var x = /\u{FFFFFFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.symbols deleted file mode 100644 index db6e1b75f2d86..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions12_ES5.ts === -var x = /\u{FFFFFFFF}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions12_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types deleted file mode 100644 index 1a31f8cb41324..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions12_ES5.ts === -var x = /\u{FFFFFFFF}/g; ->x : RegExp ->/\u{FFFFFFFF}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js deleted file mode 100644 index 9d3760d0b9ed3..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions12_ES6.ts] -var x = /\u{FFFFFFFF}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions12_ES6.js] -var x = /\u{FFFFFFFF}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.symbols deleted file mode 100644 index 68bd9e91395ab..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions12_ES6.ts === -var x = /\u{FFFFFFFF}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions12_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types deleted file mode 100644 index e25de03e5b739..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions12_ES6.ts === -var x = /\u{FFFFFFFF}/g; ->x : RegExp ->/\u{FFFFFFFF}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt new file mode 100644 index 0000000000000..7e678b1fdec99 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions13.ts(1,21): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions13.ts (1 errors) ==== + var x = /\u{DDDDD}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).js new file mode 100644 index 0000000000000..926c5ac56f5a6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions13.ts] +var x = /\u{DDDDD}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions13.js] +var x = /\u{DDDDD}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).symbols new file mode 100644 index 0000000000000..6e86d43f8e1b8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions13.ts === +var x = /\u{DDDDD}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions13.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).types new file mode 100644 index 0000000000000..7369830c2c607 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions13.ts === +var x = /\u{DDDDD}/gu; +>x : RegExp +>/\u{DDDDD}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).js new file mode 100644 index 0000000000000..926c5ac56f5a6 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions13.ts] +var x = /\u{DDDDD}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions13.js] +var x = /\u{DDDDD}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).symbols new file mode 100644 index 0000000000000..6e86d43f8e1b8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions13.ts === +var x = /\u{DDDDD}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions13.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).types new file mode 100644 index 0000000000000..7369830c2c607 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions13.ts === +var x = /\u{DDDDD}/gu; +>x : RegExp +>/\u{DDDDD}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js deleted file mode 100644 index c14563330df33..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions13_ES5.ts] -var x = /\u{DDDDD}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions13_ES5.js] -var x = /\u{DDDDD}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.symbols deleted file mode 100644 index b94e7939e1fee..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions13_ES5.ts === -var x = /\u{DDDDD}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions13_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types deleted file mode 100644 index a9ff31d1f4fc7..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions13_ES5.ts === -var x = /\u{DDDDD}/g; ->x : RegExp ->/\u{DDDDD}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js deleted file mode 100644 index ea5b238e19218..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions13_ES6.ts] -var x = /\u{DDDDD}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions13_ES6.js] -var x = /\u{DDDDD}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.symbols deleted file mode 100644 index 9e9542550ce5d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions13_ES6.ts === -var x = /\u{DDDDD}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions13_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types deleted file mode 100644 index 5e504e96d876e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions13_ES6.ts === -var x = /\u{DDDDD}/g; ->x : RegExp ->/\u{DDDDD}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt new file mode 100644 index 0000000000000..b399b4bb51382 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt @@ -0,0 +1,15 @@ +unicodeExtendedEscapesInRegularExpressions14.ts(2,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions14.ts(2,18): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicodeExtendedEscapesInRegularExpressions14.ts(2,21): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions14.ts (3 errors) ==== + // Shouldn't work, negatives are not allowed. + var x = /\u{-DDDD}/gu; + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).js new file mode 100644 index 0000000000000..cc1dfcb51d570 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions14.ts] +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions14.js] +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).symbols similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).symbols index ff0711dbc4ccf..30bb2e881632c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).symbols @@ -1,7 +1,7 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts] //// -=== unicodeExtendedEscapesInRegularExpressions14_ES6.ts === +=== unicodeExtendedEscapesInRegularExpressions14.ts === // Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions14_ES6.ts, 1, 3)) +var x = /\u{-DDDD}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions14.ts, 1, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).types new file mode 100644 index 0000000000000..7ffa98a5009f3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).types @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions14.ts === +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; +>x : RegExp +>/\u{-DDDD}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).errors.txt new file mode 100644 index 0000000000000..29e213baef39d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).errors.txt @@ -0,0 +1,12 @@ +unicodeExtendedEscapesInRegularExpressions14.ts(2,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions14.ts(2,18): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + + +==== unicodeExtendedEscapesInRegularExpressions14.ts (2 errors) ==== + // Shouldn't work, negatives are not allowed. + var x = /\u{-DDDD}/gu; + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).js new file mode 100644 index 0000000000000..cc1dfcb51d570 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).js @@ -0,0 +1,10 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions14.ts] +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions14.js] +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).symbols similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).symbols index 82e6df2ced9f8..30bb2e881632c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).symbols @@ -1,7 +1,7 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts] //// -=== unicodeExtendedEscapesInRegularExpressions14_ES5.ts === +=== unicodeExtendedEscapesInRegularExpressions14.ts === // Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions14_ES5.ts, 1, 3)) +var x = /\u{-DDDD}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions14.ts, 1, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).types new file mode 100644 index 0000000000000..7ffa98a5009f3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es6).types @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions14.ts === +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; +>x : RegExp +>/\u{-DDDD}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js deleted file mode 100644 index 571184f2bed82..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.js +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts] //// - -//// [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 deleted file mode 100644 index 2d0311ae85ff4..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions14_ES5.ts === -// Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; ->x : RegExp ->/\u{-DDDD}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js deleted file mode 100644 index e4688820ff068..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.js +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts] //// - -//// [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 deleted file mode 100644 index 75a8cbd984fe0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions14_ES6.ts === -// Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; ->x : RegExp ->/\u{-DDDD}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt new file mode 100644 index 0000000000000..15045a5ce43d0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions15.ts(1,44): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions15.ts (1 errors) ==== + var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).js new file mode 100644 index 0000000000000..64e72aeb8ccb0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions15.ts] +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions15.js] +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).symbols new file mode 100644 index 0000000000000..0f98735455f92 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions15.ts === +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions15.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).types new file mode 100644 index 0000000000000..93f745ca87a85 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions15.ts === +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; +>x : RegExp +>/\u{abcd}\u{ef12}\u{3456}\u{7890}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).js new file mode 100644 index 0000000000000..64e72aeb8ccb0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions15.ts] +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions15.js] +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).symbols new file mode 100644 index 0000000000000..0f98735455f92 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions15.ts === +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions15.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).types new file mode 100644 index 0000000000000..93f745ca87a85 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions15.ts === +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; +>x : RegExp +>/\u{abcd}\u{ef12}\u{3456}\u{7890}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js deleted file mode 100644 index 470268fc97509..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.symbols deleted file mode 100644 index 50a9a783e60c5..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions15_ES5.ts === -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions15_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types deleted file mode 100644 index 797dc3c8f94d1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions15_ES5.ts === -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; ->x : RegExp ->/\u{abcd}\u{ef12}\u{3456}\u{7890}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js deleted file mode 100644 index fc806cafaa105..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.symbols deleted file mode 100644 index e3a36359a876f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions15_ES6.ts === -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions15_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types deleted file mode 100644 index e1cb85fb13397..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions15_ES6.ts === -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; ->x : RegExp ->/\u{abcd}\u{ef12}\u{3456}\u{7890}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt new file mode 100644 index 0000000000000..20714cec19872 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions16.ts(1,44): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions16.ts (1 errors) ==== + var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).js new file mode 100644 index 0000000000000..29e67a6bcf24b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions16.ts] +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions16.js] +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).symbols new file mode 100644 index 0000000000000..32e5d62dbb262 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions16.ts === +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions16.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).types new file mode 100644 index 0000000000000..cb7dbaa562225 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions16.ts === +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; +>x : RegExp +>/\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).js new file mode 100644 index 0000000000000..29e67a6bcf24b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions16.ts] +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions16.js] +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).symbols new file mode 100644 index 0000000000000..32e5d62dbb262 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions16.ts === +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions16.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).types new file mode 100644 index 0000000000000..cb7dbaa562225 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions16.ts === +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; +>x : RegExp +>/\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js deleted file mode 100644 index 717a09215e845..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.symbols deleted file mode 100644 index 91cf57fe549fd..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions16_ES5.ts === -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions16_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types deleted file mode 100644 index 2da400d6399e7..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions16_ES5.ts === -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; ->x : RegExp ->/\u{ABCD}\u{EF12}\u{3456}\u{7890}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js deleted file mode 100644 index 4242529d54542..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.symbols deleted file mode 100644 index a9e2f26b8522b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions16_ES6.ts === -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions16_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types deleted file mode 100644 index 12ca247e4d91d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions16_ES6.ts === -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; ->x : RegExp ->/\u{ABCD}\u{EF12}\u{3456}\u{7890}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt new file mode 100644 index 0000000000000..9aa30e0b027fc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt @@ -0,0 +1,26 @@ +unicodeExtendedEscapesInRegularExpressions17.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions17.ts(1,14): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicodeExtendedEscapesInRegularExpressions17.ts(1,18): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions17.ts(1,19): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicodeExtendedEscapesInRegularExpressions17.ts(1,23): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions17.ts(1,24): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicodeExtendedEscapesInRegularExpressions17.ts(1,27): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions17.ts (7 errors) ==== + var x = /\u{r}\u{n}\u{t}/gu; + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).js new file mode 100644 index 0000000000000..44a7cb7b2feed --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions17.ts] +var x = /\u{r}\u{n}\u{t}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions17.js] +var x = /\u{r}\u{n}\u{t}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).symbols new file mode 100644 index 0000000000000..07ab02ab06a9a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions17.ts === +var x = /\u{r}\u{n}\u{t}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions17.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).types new file mode 100644 index 0000000000000..c2f84c703b994 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions17.ts === +var x = /\u{r}\u{n}\u{t}/gu; +>x : RegExp +>/\u{r}\u{n}\u{t}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).errors.txt new file mode 100644 index 0000000000000..96d71a9f64e5a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).errors.txt @@ -0,0 +1,23 @@ +unicodeExtendedEscapesInRegularExpressions17.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions17.ts(1,14): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicodeExtendedEscapesInRegularExpressions17.ts(1,18): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions17.ts(1,19): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicodeExtendedEscapesInRegularExpressions17.ts(1,23): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions17.ts(1,24): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + + +==== unicodeExtendedEscapesInRegularExpressions17.ts (6 errors) ==== + var x = /\u{r}\u{n}\u{t}/gu; + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).js new file mode 100644 index 0000000000000..44a7cb7b2feed --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions17.ts] +var x = /\u{r}\u{n}\u{t}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions17.js] +var x = /\u{r}\u{n}\u{t}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).symbols new file mode 100644 index 0000000000000..07ab02ab06a9a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions17.ts === +var x = /\u{r}\u{n}\u{t}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions17.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).types new file mode 100644 index 0000000000000..c2f84c703b994 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions17.ts === +var x = /\u{r}\u{n}\u{t}/gu; +>x : RegExp +>/\u{r}\u{n}\u{t}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js deleted file mode 100644 index 01b44f3ef88c7..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.symbols deleted file mode 100644 index 84d426c4b5b96..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions17_ES5.ts === -var x = /\u{r}\u{n}\u{t}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions17_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types deleted file mode 100644 index 6b1d3fd65de78..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions17_ES5.ts === -var x = /\u{r}\u{n}\u{t}/g; ->x : RegExp ->/\u{r}\u{n}\u{t}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js deleted file mode 100644 index e3ec326dbf222..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.symbols deleted file mode 100644 index 8693acf5d519f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions17_ES6.ts === -var x = /\u{r}\u{n}\u{t}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions17_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types deleted file mode 100644 index 25f3395459774..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions17_ES6.ts === -var x = /\u{r}\u{n}\u{t}/g; ->x : RegExp ->/\u{r}\u{n}\u{t}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt new file mode 100644 index 0000000000000..d2bb6e8c8a6bd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions18.ts(1,24): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions18.ts (1 errors) ==== + var x = /\u{65}\u{65}/gu; + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).js new file mode 100644 index 0000000000000..04f7c4a4a7538 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions18.ts] +var x = /\u{65}\u{65}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions18.js] +var x = /\u{65}\u{65}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).symbols new file mode 100644 index 0000000000000..99cabfd2da9b2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions18.ts === +var x = /\u{65}\u{65}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions18.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).types new file mode 100644 index 0000000000000..78dbfacdc69bb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions18.ts === +var x = /\u{65}\u{65}/gu; +>x : RegExp +>/\u{65}\u{65}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).js new file mode 100644 index 0000000000000..04f7c4a4a7538 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions18.ts] +var x = /\u{65}\u{65}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions18.js] +var x = /\u{65}\u{65}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).symbols new file mode 100644 index 0000000000000..99cabfd2da9b2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions18.ts === +var x = /\u{65}\u{65}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions18.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).types new file mode 100644 index 0000000000000..78dbfacdc69bb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions18.ts === +var x = /\u{65}\u{65}/gu; +>x : RegExp +>/\u{65}\u{65}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js deleted file mode 100644 index 84368fb94ea73..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.symbols deleted file mode 100644 index 70b311c6db965..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions18_ES5.ts === -var x = /\u{65}\u{65}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions18_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types deleted file mode 100644 index 0de3beb6b8251..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions18_ES5.ts === -var x = /\u{65}\u{65}/g; ->x : RegExp ->/\u{65}\u{65}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js deleted file mode 100644 index 3ee26d651fc83..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.symbols deleted file mode 100644 index b381dfb3ad810..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions18_ES6.ts === -var x = /\u{65}\u{65}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions18_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types deleted file mode 100644 index e68001a3ab3b2..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions18_ES6.ts === -var x = /\u{65}\u{65}/g; ->x : RegExp ->/\u{65}\u{65}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt new file mode 100644 index 0000000000000..2d45a59f27498 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt @@ -0,0 +1,11 @@ +unicodeExtendedEscapesInRegularExpressions19.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInRegularExpressions19.ts(1,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicodeExtendedEscapesInRegularExpressions19.ts (2 errors) ==== + var x = /\u{}/gu; + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).js new file mode 100644 index 0000000000000..af222348c1b4d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions19.ts] +var x = /\u{}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions19.js] +var x = /\u{}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).symbols new file mode 100644 index 0000000000000..ab61c37021c51 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions19.ts === +var x = /\u{}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions19.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).types new file mode 100644 index 0000000000000..d2a3a06a71261 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions19.ts === +var x = /\u{}/gu; +>x : RegExp +>/\u{}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).errors.txt new file mode 100644 index 0000000000000..dadcab40d9862 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInRegularExpressions19.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInRegularExpressions19.ts (1 errors) ==== + var x = /\u{}/gu; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).js new file mode 100644 index 0000000000000..af222348c1b4d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts] //// + +//// [unicodeExtendedEscapesInRegularExpressions19.ts] +var x = /\u{}/gu; + + +//// [unicodeExtendedEscapesInRegularExpressions19.js] +var x = /\u{}/gu; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).symbols new file mode 100644 index 0000000000000..ab61c37021c51 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions19.ts === +var x = /\u{}/gu; +>x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions19.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).types new file mode 100644 index 0000000000000..d2a3a06a71261 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es6).types @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts] //// + +=== unicodeExtendedEscapesInRegularExpressions19.ts === +var x = /\u{}/gu; +>x : RegExp +>/\u{}/gu : RegExp + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js deleted file mode 100644 index d3ee4ed01b134..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions19_ES5.ts] -var x = /\u{}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions19_ES5.js] -var x = /\u{}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.symbols deleted file mode 100644 index 4ad5745b6231c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions19_ES5.ts === -var x = /\u{}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions19_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types deleted file mode 100644 index 06e0afce6e458..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions19_ES5.ts === -var x = /\u{}/g; ->x : RegExp ->/\u{}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js deleted file mode 100644 index ce15f39bb451d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts] //// - -//// [unicodeExtendedEscapesInRegularExpressions19_ES6.ts] -var x = /\u{}/g; - - -//// [unicodeExtendedEscapesInRegularExpressions19_ES6.js] -var x = /\u{}/g; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.symbols deleted file mode 100644 index ad292b471e5a3..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions19_ES6.ts === -var x = /\u{}/g; ->x : Symbol(x, Decl(unicodeExtendedEscapesInRegularExpressions19_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types deleted file mode 100644 index 6954bcb3350af..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions19_ES6.ts === -var x = /\u{}/g; ->x : RegExp ->/\u{}/g : RegExp - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).js new file mode 100644 index 0000000000000..9460ea61cbccc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts] //// + +//// [unicodeExtendedEscapesInStrings01.ts] +var x = "\u{0}"; + + +//// [unicodeExtendedEscapesInStrings01.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).symbols new file mode 100644 index 0000000000000..0cb562e237773 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts] //// + +=== unicodeExtendedEscapesInStrings01.ts === +var x = "\u{0}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings01.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).types index 9f4789f4f35af..efe4fa2a7c171 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts] //// -=== unicodeExtendedEscapesInStrings01_ES5.ts === +=== unicodeExtendedEscapesInStrings01.ts === var x = "\u{0}"; >x : string >"\u{0}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).js new file mode 100644 index 0000000000000..bf7c3c64048b4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts] //// + +//// [unicodeExtendedEscapesInStrings01.ts] +var x = "\u{0}"; + + +//// [unicodeExtendedEscapesInStrings01.js] +var x = "\u{0}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).symbols new file mode 100644 index 0000000000000..0cb562e237773 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts] //// + +=== unicodeExtendedEscapesInStrings01.ts === +var x = "\u{0}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings01.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).types index fd4cf9e6b88fa..efe4fa2a7c171 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings01(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts] //// -=== unicodeExtendedEscapesInStrings01_ES6.ts === +=== unicodeExtendedEscapesInStrings01.ts === var x = "\u{0}"; >x : string >"\u{0}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js deleted file mode 100644 index 0772d85dbf808..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings01_ES5.ts] -var x = "\u{0}"; - - -//// [unicodeExtendedEscapesInStrings01_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.symbols deleted file mode 100644 index 9490d5adf3a06..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings01_ES5.ts === -var x = "\u{0}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings01_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js deleted file mode 100644 index f7d5dbf997667..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings01_ES6.ts] -var x = "\u{0}"; - - -//// [unicodeExtendedEscapesInStrings01_ES6.js] -var x = "\u{0}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.symbols deleted file mode 100644 index 77158f8a9c298..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings01_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings01_ES6.ts === -var x = "\u{0}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings01_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).js new file mode 100644 index 0000000000000..5b59e0db420af --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts] //// + +//// [unicodeExtendedEscapesInStrings02.ts] +var x = "\u{00}"; + + +//// [unicodeExtendedEscapesInStrings02.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).symbols new file mode 100644 index 0000000000000..1342348d0b156 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts] //// + +=== unicodeExtendedEscapesInStrings02.ts === +var x = "\u{00}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings02.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).types index 2771c9cd33c57..c905a4c95af53 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts] //// -=== unicodeExtendedEscapesInStrings02_ES6.ts === +=== unicodeExtendedEscapesInStrings02.ts === var x = "\u{00}"; >x : string >"\u{00}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).js new file mode 100644 index 0000000000000..530a1ff39424c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts] //// + +//// [unicodeExtendedEscapesInStrings02.ts] +var x = "\u{00}"; + + +//// [unicodeExtendedEscapesInStrings02.js] +var x = "\u{00}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).symbols new file mode 100644 index 0000000000000..1342348d0b156 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts] //// + +=== unicodeExtendedEscapesInStrings02.ts === +var x = "\u{00}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings02.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).types index f42531aef6a35..c905a4c95af53 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings02(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts] //// -=== unicodeExtendedEscapesInStrings02_ES5.ts === +=== unicodeExtendedEscapesInStrings02.ts === var x = "\u{00}"; >x : string >"\u{00}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js deleted file mode 100644 index a4f6cd09ca9c4..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings02_ES5.ts] -var x = "\u{00}"; - - -//// [unicodeExtendedEscapesInStrings02_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.symbols deleted file mode 100644 index 8f3556d0edf53..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings02_ES5.ts === -var x = "\u{00}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings02_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js deleted file mode 100644 index b9755c7a8bb66..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings02_ES6.ts] -var x = "\u{00}"; - - -//// [unicodeExtendedEscapesInStrings02_ES6.js] -var x = "\u{00}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.symbols deleted file mode 100644 index 575469dc4fbd8..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings02_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings02_ES6.ts === -var x = "\u{00}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings02_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).js new file mode 100644 index 0000000000000..e79433686f8cd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts] //// + +//// [unicodeExtendedEscapesInStrings03.ts] +var x = "\u{0000}"; + + +//// [unicodeExtendedEscapesInStrings03.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).symbols new file mode 100644 index 0000000000000..821cf64b6131f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts] //// + +=== unicodeExtendedEscapesInStrings03.ts === +var x = "\u{0000}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings03.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).types index a7fddd4212c25..4cbfadaecd482 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts] //// -=== unicodeExtendedEscapesInStrings03_ES5.ts === +=== unicodeExtendedEscapesInStrings03.ts === var x = "\u{0000}"; >x : string >"\u{0000}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).js new file mode 100644 index 0000000000000..6d9d6203da93f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts] //// + +//// [unicodeExtendedEscapesInStrings03.ts] +var x = "\u{0000}"; + + +//// [unicodeExtendedEscapesInStrings03.js] +var x = "\u{0000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).symbols new file mode 100644 index 0000000000000..821cf64b6131f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts] //// + +=== unicodeExtendedEscapesInStrings03.ts === +var x = "\u{0000}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings03.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).types index 54eeb0cc2b4ac..4cbfadaecd482 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings03(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts] //// -=== unicodeExtendedEscapesInStrings03_ES6.ts === +=== unicodeExtendedEscapesInStrings03.ts === var x = "\u{0000}"; >x : string >"\u{0000}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js deleted file mode 100644 index b7302c2562a28..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings03_ES5.ts] -var x = "\u{0000}"; - - -//// [unicodeExtendedEscapesInStrings03_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.symbols deleted file mode 100644 index e5f54276e6303..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings03_ES5.ts === -var x = "\u{0000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings03_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js deleted file mode 100644 index f0e15cdd9f31b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings03_ES6.ts] -var x = "\u{0000}"; - - -//// [unicodeExtendedEscapesInStrings03_ES6.js] -var x = "\u{0000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.symbols deleted file mode 100644 index fb225a64f9f20..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings03_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings03_ES6.ts === -var x = "\u{0000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings03_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).js new file mode 100644 index 0000000000000..93a9de43d64c7 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts] //// + +//// [unicodeExtendedEscapesInStrings04.ts] +var x = "\u{00000000}"; + + +//// [unicodeExtendedEscapesInStrings04.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).symbols new file mode 100644 index 0000000000000..c288da6b84a60 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts] //// + +=== unicodeExtendedEscapesInStrings04.ts === +var x = "\u{00000000}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings04.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).types similarity index 56% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).types index 97fc25b95d810..5bb69e4555a87 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts] //// -=== unicodeExtendedEscapesInStrings04_ES5.ts === +=== unicodeExtendedEscapesInStrings04.ts === var x = "\u{00000000}"; >x : string >"\u{00000000}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).js new file mode 100644 index 0000000000000..2449cf208a44f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts] //// + +//// [unicodeExtendedEscapesInStrings04.ts] +var x = "\u{00000000}"; + + +//// [unicodeExtendedEscapesInStrings04.js] +var x = "\u{00000000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).symbols new file mode 100644 index 0000000000000..c288da6b84a60 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts] //// + +=== unicodeExtendedEscapesInStrings04.ts === +var x = "\u{00000000}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings04.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).types similarity index 56% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).types index 455e3a7d45df2..5bb69e4555a87 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings04(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts] //// -=== unicodeExtendedEscapesInStrings04_ES6.ts === +=== unicodeExtendedEscapesInStrings04.ts === var x = "\u{00000000}"; >x : string >"\u{00000000}" : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js deleted file mode 100644 index 63163bdc10488..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings04_ES5.ts] -var x = "\u{00000000}"; - - -//// [unicodeExtendedEscapesInStrings04_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.symbols deleted file mode 100644 index 4a108250c8658..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings04_ES5.ts === -var x = "\u{00000000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings04_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js deleted file mode 100644 index 397e907afb45b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings04_ES6.ts] -var x = "\u{00000000}"; - - -//// [unicodeExtendedEscapesInStrings04_ES6.js] -var x = "\u{00000000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.symbols deleted file mode 100644 index dc97be6451526..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings04_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings04_ES6.ts === -var x = "\u{00000000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings04_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).js similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).js index d1b3039739dde..b3e1f2b71aa8f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts] //// -//// [unicodeExtendedEscapesInStrings05_ES5.ts] +//// [unicodeExtendedEscapesInStrings05.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] +//// [unicodeExtendedEscapesInStrings05.js] var x = "Hello world"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).symbols new file mode 100644 index 0000000000000..5ae4151724b50 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts] //// + +=== unicodeExtendedEscapesInStrings05.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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings05.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).types similarity index 71% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).types index ed9650fe9b374..7bd2542bc5f1c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts] //// -=== unicodeExtendedEscapesInStrings05_ES6.ts === +=== unicodeExtendedEscapesInStrings05.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 >"\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}" : "Hello world" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).js similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).js index e30dc2698fdc0..d4e52c3b6dcac 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts] //// -//// [unicodeExtendedEscapesInStrings05_ES6.ts] +//// [unicodeExtendedEscapesInStrings05.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] +//// [unicodeExtendedEscapesInStrings05.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(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).symbols new file mode 100644 index 0000000000000..5ae4151724b50 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts] //// + +=== unicodeExtendedEscapesInStrings05.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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings05.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).types similarity index 71% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).types index bde4f4257dd36..7bd2542bc5f1c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings05(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts] //// -=== unicodeExtendedEscapesInStrings05_ES5.ts === +=== unicodeExtendedEscapesInStrings05.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 >"\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}" : "Hello world" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.symbols deleted file mode 100644 index 7dacf066360a1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts] //// - -=== 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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings05_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.symbols deleted file mode 100644 index c96f8151f0c26..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings05_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts] //// - -=== 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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings05_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).js similarity index 67% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).js index 6e09f67a10e46..f38553092448e 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts] //// -//// [unicodeExtendedEscapesInStrings06_ES5.ts] +//// [unicodeExtendedEscapesInStrings06.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{10FFFF}"; -//// [unicodeExtendedEscapesInStrings06_ES5.js] +//// [unicodeExtendedEscapesInStrings06.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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).symbols similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).symbols index d6fdd5100a9f3..d4330e1454e06 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts] //// -=== unicodeExtendedEscapesInStrings06_ES5.ts === +=== unicodeExtendedEscapesInStrings06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{10FFFF}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings06_ES5.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings06.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).types index ee6796319181d..a5434fc873c24 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts] //// -=== unicodeExtendedEscapesInStrings06_ES5.ts === +=== unicodeExtendedEscapesInStrings06.ts === // 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.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).js similarity index 67% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).js index 02b99cb48f33c..7a997daf092b8 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts] //// -//// [unicodeExtendedEscapesInStrings06_ES6.ts] +//// [unicodeExtendedEscapesInStrings06.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{10FFFF}"; -//// [unicodeExtendedEscapesInStrings06_ES6.js] +//// [unicodeExtendedEscapesInStrings06.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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).symbols similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).symbols index 72eb14558d24e..d4330e1454e06 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts] //// -=== unicodeExtendedEscapesInStrings06_ES6.ts === +=== unicodeExtendedEscapesInStrings06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{10FFFF}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings06_ES6.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings06.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).types index 6023cbbef6204..a5434fc873c24 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings06_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings06(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts] //// -=== unicodeExtendedEscapesInStrings06_ES6.ts === +=== unicodeExtendedEscapesInStrings06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{10FFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).errors.txt new file mode 100644 index 0000000000000..6ac3176ac8a2f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).errors.txt @@ -0,0 +1,10 @@ +unicodeExtendedEscapesInStrings07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInStrings07.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(target=es5).js similarity index 67% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).js index 9bb93592add85..a09cc5f1804e0 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts] //// -//// [unicodeExtendedEscapesInStrings07_ES5.ts] +//// [unicodeExtendedEscapesInStrings07.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{110000}"; -//// [unicodeExtendedEscapesInStrings07_ES5.js] +//// [unicodeExtendedEscapesInStrings07.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/unicodeExtendedEscapesInStrings07_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).symbols similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).symbols index 0c3a685945e99..dcdd03f83875c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts] //// -=== unicodeExtendedEscapesInStrings07_ES6.ts === +=== unicodeExtendedEscapesInStrings07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{110000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings07_ES6.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings07.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).types index e8131eba45d1c..f5ed2203c78d9 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts] //// -=== unicodeExtendedEscapesInStrings07_ES6.ts === +=== unicodeExtendedEscapesInStrings07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{110000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).errors.txt new file mode 100644 index 0000000000000..6ac3176ac8a2f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).errors.txt @@ -0,0 +1,10 @@ +unicodeExtendedEscapesInStrings07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInStrings07.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(target=es6).js similarity index 67% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).js index fe475dabe390b..a09cc5f1804e0 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts] //// -//// [unicodeExtendedEscapesInStrings07_ES6.ts] +//// [unicodeExtendedEscapesInStrings07.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{110000}"; -//// [unicodeExtendedEscapesInStrings07_ES6.js] +//// [unicodeExtendedEscapesInStrings07.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/unicodeExtendedEscapesInStrings07_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).symbols similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).symbols index f7cece6979e79..dcdd03f83875c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts] //// -=== unicodeExtendedEscapesInStrings07_ES5.ts === +=== unicodeExtendedEscapesInStrings07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{110000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings07_ES5.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings07.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).types index 626ef984813bb..f5ed2203c78d9 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings07(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts] //// -=== unicodeExtendedEscapesInStrings07_ES5.ts === +=== unicodeExtendedEscapesInStrings07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = "\u{110000}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt deleted file mode 100644 index f3f25fcda6b61..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES5.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -unicodeExtendedEscapesInStrings07_ES5.ts(3,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.errors.txt deleted file mode 100644 index 86ed64d587202..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings07_ES6.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -unicodeExtendedEscapesInStrings07_ES6.ts(3,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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/unicodeExtendedEscapesInStrings08_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).js similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).js index ced77bc8b180a..27385d63bc338 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts] //// -//// [unicodeExtendedEscapesInStrings08_ES5.ts] +//// [unicodeExtendedEscapesInStrings08.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] +//// [unicodeExtendedEscapesInStrings08.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).symbols similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).symbols index debd6bd0919a0..752052e319333 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts] //// -=== unicodeExtendedEscapesInStrings08_ES5.ts === +=== unicodeExtendedEscapesInStrings08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) var x = "\u{FFFF}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings08_ES5.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings08.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).types index 7bbe96cfe6ea5..6984a59fcd24a 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts] //// -=== unicodeExtendedEscapesInStrings08_ES5.ts === +=== unicodeExtendedEscapesInStrings08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).js similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).js index bd946ffed5c88..2ab2c33301f66 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts] //// -//// [unicodeExtendedEscapesInStrings08_ES6.ts] +//// [unicodeExtendedEscapesInStrings08.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] +//// [unicodeExtendedEscapesInStrings08.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).symbols similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).symbols index 08cb041927d7e..752052e319333 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts] //// -=== unicodeExtendedEscapesInStrings08_ES6.ts === +=== unicodeExtendedEscapesInStrings08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) var x = "\u{FFFF}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings08_ES6.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings08.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).types index dc829abcb2fec..6984a59fcd24a 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings08_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings08(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts] //// -=== unicodeExtendedEscapesInStrings08_ES6.ts === +=== unicodeExtendedEscapesInStrings08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).js similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).js index 78e9abb633893..658e8ee0a018a 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts] //// -//// [unicodeExtendedEscapesInStrings09_ES5.ts] +//// [unicodeExtendedEscapesInStrings09.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] +//// [unicodeExtendedEscapesInStrings09.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).symbols similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).symbols index 079802a8b984d..a269833c6295f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts] //// -=== unicodeExtendedEscapesInStrings09_ES6.ts === +=== unicodeExtendedEscapesInStrings09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) var x = "\u{10000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings09_ES6.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings09.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).types similarity index 70% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).types index ee128f53ffd34..5f1166da4fc3c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts] //// -=== unicodeExtendedEscapesInStrings09_ES5.ts === +=== unicodeExtendedEscapesInStrings09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).js similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).js index 4ae8debd06877..041a857f52704 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts] //// -//// [unicodeExtendedEscapesInStrings09_ES6.ts] +//// [unicodeExtendedEscapesInStrings09.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] +//// [unicodeExtendedEscapesInStrings09.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).symbols similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).symbols index 6dc0429201c83..a269833c6295f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts] //// -=== unicodeExtendedEscapesInStrings09_ES5.ts === +=== unicodeExtendedEscapesInStrings09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) var x = "\u{10000}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings09_ES5.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings09.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).types similarity index 70% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).types index c3febf6c0b57c..5f1166da4fc3c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings09_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings09(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts] //// -=== unicodeExtendedEscapesInStrings09_ES6.ts === +=== unicodeExtendedEscapesInStrings09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).js similarity index 79% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).js index 19a333b8e07bf..0a9981ab98802 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts] //// -//// [unicodeExtendedEscapesInStrings10_ES5.ts] +//// [unicodeExtendedEscapesInStrings10.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, @@ -8,7 +8,7 @@ var x = "\u{D800}"; -//// [unicodeExtendedEscapesInStrings10_ES5.js] +//// [unicodeExtendedEscapesInStrings10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).symbols index b26ebfee70a4b..090335711c397 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts] //// -=== unicodeExtendedEscapesInStrings10_ES5.ts === +=== unicodeExtendedEscapesInStrings10.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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings10_ES5.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings10.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).types similarity index 77% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).types index 06958e9117cdd..a30aea5587184 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts] //// -=== unicodeExtendedEscapesInStrings10_ES5.ts === +=== unicodeExtendedEscapesInStrings10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).js similarity index 79% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).js index 8e48d275a5984..f24a9602bf02f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts] //// -//// [unicodeExtendedEscapesInStrings10_ES6.ts] +//// [unicodeExtendedEscapesInStrings10.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, @@ -8,7 +8,7 @@ var x = "\u{D800}"; -//// [unicodeExtendedEscapesInStrings10_ES6.js] +//// [unicodeExtendedEscapesInStrings10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).symbols index fb0a83e018ef1..090335711c397 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts] //// -=== unicodeExtendedEscapesInStrings10_ES6.ts === +=== unicodeExtendedEscapesInStrings10.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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings10_ES6.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings10.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).types similarity index 77% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).types index a8537268fd2a4..a30aea5587184 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings10_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings10(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts] //// -=== unicodeExtendedEscapesInStrings10_ES6.ts === +=== unicodeExtendedEscapesInStrings10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).js similarity index 79% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).js index 254fcd15d5267..fdbd6c4a91b95 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts] //// -//// [unicodeExtendedEscapesInStrings11_ES5.ts] +//// [unicodeExtendedEscapesInStrings11.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, @@ -8,7 +8,7 @@ var x = "\u{DC00}"; -//// [unicodeExtendedEscapesInStrings11_ES5.js] +//// [unicodeExtendedEscapesInStrings11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).symbols index 79452fbfa9fcf..e8754029e6b78 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts] //// -=== unicodeExtendedEscapesInStrings11_ES5.ts === +=== unicodeExtendedEscapesInStrings11.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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings11_ES5.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings11.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).types similarity index 77% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).types index fda3f3134fe4d..3dca2fcedbc11 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts] //// -=== unicodeExtendedEscapesInStrings11_ES5.ts === +=== unicodeExtendedEscapesInStrings11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).js similarity index 79% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).js index 74acfaf85219e..7ca0fc21b6909 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts] //// -//// [unicodeExtendedEscapesInStrings11_ES6.ts] +//// [unicodeExtendedEscapesInStrings11.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, @@ -8,7 +8,7 @@ var x = "\u{DC00}"; -//// [unicodeExtendedEscapesInStrings11_ES6.js] +//// [unicodeExtendedEscapesInStrings11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).symbols index e854a346a14d4..e8754029e6b78 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts] //// -=== unicodeExtendedEscapesInStrings11_ES6.ts === +=== unicodeExtendedEscapesInStrings11.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 : Symbol(x, Decl(unicodeExtendedEscapesInStrings11_ES6.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings11.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).types similarity index 77% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).types index e2c576c521b86..3dca2fcedbc11 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings11_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings11(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts] //// -=== unicodeExtendedEscapesInStrings11_ES6.ts === +=== unicodeExtendedEscapesInStrings11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).errors.txt new file mode 100644 index 0000000000000..447343dd1bd95 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInStrings12.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).js new file mode 100644 index 0000000000000..8c355009ed084 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts] //// + +//// [unicodeExtendedEscapesInStrings12.ts] +var x = "\u{FFFFFFFF}"; + + +//// [unicodeExtendedEscapesInStrings12.js] +var x = "\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).symbols new file mode 100644 index 0000000000000..f4dc4bbd5807e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts] //// + +=== unicodeExtendedEscapesInStrings12.ts === +var x = "\u{FFFFFFFF}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings12.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).types index c0b64c08a1d70..38f00ec4c2150 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts] //// -=== unicodeExtendedEscapesInStrings12_ES5.ts === +=== unicodeExtendedEscapesInStrings12.ts === var x = "\u{FFFFFFFF}"; >x : string >"\u{FFFFFFFF}" : "\\u{FFFFFFFF}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).errors.txt new file mode 100644 index 0000000000000..447343dd1bd95 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInStrings12.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).js new file mode 100644 index 0000000000000..8c355009ed084 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts] //// + +//// [unicodeExtendedEscapesInStrings12.ts] +var x = "\u{FFFFFFFF}"; + + +//// [unicodeExtendedEscapesInStrings12.js] +var x = "\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).symbols new file mode 100644 index 0000000000000..f4dc4bbd5807e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts] //// + +=== unicodeExtendedEscapesInStrings12.ts === +var x = "\u{FFFFFFFF}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings12.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).types index 0ef8cdabe9ae2..38f00ec4c2150 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings12(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts] //// -=== unicodeExtendedEscapesInStrings12_ES6.ts === +=== unicodeExtendedEscapesInStrings12.ts === var x = "\u{FFFFFFFF}"; >x : string >"\u{FFFFFFFF}" : "\\u{FFFFFFFF}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt deleted file mode 100644 index e3802dad342ac..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings12_ES5.ts(1,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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 deleted file mode 100644 index 9caf1ba1c4d05..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings12_ES5.ts] -var x = "\u{FFFFFFFF}"; - - -//// [unicodeExtendedEscapesInStrings12_ES5.js] -var x = "\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.symbols deleted file mode 100644 index 631e45fd4eb22..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings12_ES5.ts === -var x = "\u{FFFFFFFF}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings12_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt deleted file mode 100644 index 4c55fdfad18fc..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings12_ES6.ts(1,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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 deleted file mode 100644 index 6f64ea5cb6858..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings12_ES6.ts] -var x = "\u{FFFFFFFF}"; - - -//// [unicodeExtendedEscapesInStrings12_ES6.js] -var x = "\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.symbols deleted file mode 100644 index 8d30a74d0de22..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings12_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings12_ES6.ts === -var x = "\u{FFFFFFFF}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings12_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).js new file mode 100644 index 0000000000000..2af8fcc804699 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts] //// + +//// [unicodeExtendedEscapesInStrings13.ts] +var x = "\u{DDDDD}"; + + +//// [unicodeExtendedEscapesInStrings13.js] +var x = "\uDB37\uDDDD"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).symbols new file mode 100644 index 0000000000000..6bc63d24f8f34 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts] //// + +=== unicodeExtendedEscapesInStrings13.ts === +var x = "\u{DDDDD}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings13.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).types similarity index 55% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).types index 1664637c9f79e..db9d32f121feb 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts] //// -=== unicodeExtendedEscapesInStrings13_ES5.ts === +=== unicodeExtendedEscapesInStrings13.ts === var x = "\u{DDDDD}"; >x : string >"\u{DDDDD}" : "󝷝" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).js new file mode 100644 index 0000000000000..b6b39aff889ae --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts] //// + +//// [unicodeExtendedEscapesInStrings13.ts] +var x = "\u{DDDDD}"; + + +//// [unicodeExtendedEscapesInStrings13.js] +var x = "\u{DDDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).symbols new file mode 100644 index 0000000000000..6bc63d24f8f34 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts] //// + +=== unicodeExtendedEscapesInStrings13.ts === +var x = "\u{DDDDD}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings13.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).types similarity index 55% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).types index 9ce62d2bf645f..db9d32f121feb 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings13(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts] //// -=== unicodeExtendedEscapesInStrings13_ES6.ts === +=== unicodeExtendedEscapesInStrings13.ts === var x = "\u{DDDDD}"; >x : string >"\u{DDDDD}" : "󝷝" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js deleted file mode 100644 index 03f7f2c778cc6..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings13_ES5.ts] -var x = "\u{DDDDD}"; - - -//// [unicodeExtendedEscapesInStrings13_ES5.js] -var x = "\uDB37\uDDDD"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.symbols deleted file mode 100644 index b3e15d691e6fd..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings13_ES5.ts === -var x = "\u{DDDDD}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings13_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js deleted file mode 100644 index 8dcd04327b720..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings13_ES6.ts] -var x = "\u{DDDDD}"; - - -//// [unicodeExtendedEscapesInStrings13_ES6.js] -var x = "\u{DDDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.symbols deleted file mode 100644 index b83454504bd72..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings13_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings13_ES6.ts === -var x = "\u{DDDDD}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings13_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).errors.txt new file mode 100644 index 0000000000000..d3bd40fbdf13d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).errors.txt @@ -0,0 +1,9 @@ +unicodeExtendedEscapesInStrings14.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings14.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(target=es5).js similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).js index eeef993fd8a56..86ee5540bc238 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).js @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts] //// -//// [unicodeExtendedEscapesInStrings14_ES5.ts] +//// [unicodeExtendedEscapesInStrings14.ts] // Shouldn't work, negatives are not allowed. var x = "\u{-DDDD}"; -//// [unicodeExtendedEscapesInStrings14_ES5.js] +//// [unicodeExtendedEscapesInStrings14.js] // Shouldn't work, negatives are not allowed. var x = "\u{-DDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).symbols new file mode 100644 index 0000000000000..1214d667b372a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts] //// + +=== unicodeExtendedEscapesInStrings14.ts === +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings14.ts, 1, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).types index 45b3de1829123..3ba1dbec8ed9c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts] //// -=== unicodeExtendedEscapesInStrings14_ES5.ts === +=== unicodeExtendedEscapesInStrings14.ts === // Shouldn't work, negatives are not allowed. var x = "\u{-DDDD}"; >x : string diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).errors.txt new file mode 100644 index 0000000000000..d3bd40fbdf13d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).errors.txt @@ -0,0 +1,9 @@ +unicodeExtendedEscapesInStrings14.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings14.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(target=es6).js similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).js index cfd253dda3077..86ee5540bc238 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).js @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts] //// -//// [unicodeExtendedEscapesInStrings14_ES6.ts] +//// [unicodeExtendedEscapesInStrings14.ts] // Shouldn't work, negatives are not allowed. var x = "\u{-DDDD}"; -//// [unicodeExtendedEscapesInStrings14_ES6.js] +//// [unicodeExtendedEscapesInStrings14.js] // Shouldn't work, negatives are not allowed. var x = "\u{-DDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).symbols new file mode 100644 index 0000000000000..1214d667b372a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts] //// + +=== unicodeExtendedEscapesInStrings14.ts === +// Shouldn't work, negatives are not allowed. +var x = "\u{-DDDD}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings14.ts, 1, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).types index 8aeec01cd9062..3ba1dbec8ed9c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings14(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts] //// -=== unicodeExtendedEscapesInStrings14_ES6.ts === +=== unicodeExtendedEscapesInStrings14.ts === // Shouldn't work, negatives are not allowed. var x = "\u{-DDDD}"; >x : string diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt deleted file mode 100644 index 34d303074688e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -unicodeExtendedEscapesInStrings14_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. - - -==== 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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.symbols deleted file mode 100644 index 561cb131c6864..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES5.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings14_ES5.ts === -// Shouldn't work, negatives are not allowed. -var x = "\u{-DDDD}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings14_ES5.ts, 1, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt deleted file mode 100644 index 66b4b5b8afca4..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -unicodeExtendedEscapesInStrings14_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. - - -==== 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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.symbols deleted file mode 100644 index c691aaac28e30..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings14_ES6.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings14_ES6.ts === -// Shouldn't work, negatives are not allowed. -var x = "\u{-DDDD}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings14_ES6.ts, 1, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).js similarity index 50% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).js index 31f5383de8229..ecd8f92b3f95a 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts] //// -//// [unicodeExtendedEscapesInStrings15_ES5.ts] +//// [unicodeExtendedEscapesInStrings15.ts] var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; -//// [unicodeExtendedEscapesInStrings15_ES5.js] +//// [unicodeExtendedEscapesInStrings15.js] var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).symbols new file mode 100644 index 0000000000000..1055d9e364163 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts] //// + +=== unicodeExtendedEscapesInStrings15.ts === +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings15.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).types index 7deb4feda6260..84ef0992cb348 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts] //// -=== unicodeExtendedEscapesInStrings15_ES6.ts === +=== unicodeExtendedEscapesInStrings15.ts === var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; >x : string >"\u{abcd}\u{ef12}\u{3456}\u{7890}" : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).js similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).js index 07aebe014dc88..45197f9cd5f10 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts] //// -//// [unicodeExtendedEscapesInStrings15_ES6.ts] +//// [unicodeExtendedEscapesInStrings15.ts] var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; -//// [unicodeExtendedEscapesInStrings15_ES6.js] +//// [unicodeExtendedEscapesInStrings15.js] var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).symbols new file mode 100644 index 0000000000000..1055d9e364163 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts] //// + +=== unicodeExtendedEscapesInStrings15.ts === +var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings15.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).types index c3d5f22f90a6d..84ef0992cb348 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings15(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts] //// -=== unicodeExtendedEscapesInStrings15_ES5.ts === +=== unicodeExtendedEscapesInStrings15.ts === var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; >x : string >"\u{abcd}\u{ef12}\u{3456}\u{7890}" : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.symbols deleted file mode 100644 index 4c7093d19e165..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings15_ES5.ts === -var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings15_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.symbols deleted file mode 100644 index 0ae737470650a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings15_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings15_ES6.ts === -var x = "\u{abcd}\u{ef12}\u{3456}\u{7890}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings15_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).js similarity index 50% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).js index 7973a283a9afd..2be1170b55155 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts] //// -//// [unicodeExtendedEscapesInStrings16_ES5.ts] +//// [unicodeExtendedEscapesInStrings16.ts] var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; -//// [unicodeExtendedEscapesInStrings16_ES5.js] +//// [unicodeExtendedEscapesInStrings16.js] var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).symbols new file mode 100644 index 0000000000000..6246eb3856ff0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts] //// + +=== unicodeExtendedEscapesInStrings16.ts === +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings16.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).types index 5df60a93257f0..d89df0b50bce1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts] //// -=== unicodeExtendedEscapesInStrings16_ES6.ts === +=== unicodeExtendedEscapesInStrings16.ts === var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; >x : string >"\u{ABCD}\u{EF12}\u{3456}\u{7890}" : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).js similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).js index f44c124bc99a0..eafd9be1b16f5 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts] //// -//// [unicodeExtendedEscapesInStrings16_ES6.ts] +//// [unicodeExtendedEscapesInStrings16.ts] var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; -//// [unicodeExtendedEscapesInStrings16_ES6.js] +//// [unicodeExtendedEscapesInStrings16.js] var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).symbols new file mode 100644 index 0000000000000..6246eb3856ff0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts] //// + +=== unicodeExtendedEscapesInStrings16.ts === +var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings16.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).types similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).types index a2f8afb7dc549..d89df0b50bce1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings16(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts] //// -=== unicodeExtendedEscapesInStrings16_ES5.ts === +=== unicodeExtendedEscapesInStrings16.ts === var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; >x : string >"\u{ABCD}\u{EF12}\u{3456}\u{7890}" : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.symbols deleted file mode 100644 index d3895077b1baa..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings16_ES5.ts === -var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings16_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.symbols deleted file mode 100644 index e4294d08301ae..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings16_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings16_ES6.ts === -var x = "\u{ABCD}\u{EF12}\u{3456}\u{7890}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings16_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).errors.txt new file mode 100644 index 0000000000000..30965be12351a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).errors.txt @@ -0,0 +1,14 @@ +unicodeExtendedEscapesInStrings17.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInStrings17.ts(1,18): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInStrings17.ts(1,23): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings17.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).js new file mode 100644 index 0000000000000..df65871c04d23 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts] //// + +//// [unicodeExtendedEscapesInStrings17.ts] +var x = "\u{r}\u{n}\u{t}"; + + +//// [unicodeExtendedEscapesInStrings17.js] +var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).symbols new file mode 100644 index 0000000000000..13a77f8d60032 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts] //// + +=== unicodeExtendedEscapesInStrings17.ts === +var x = "\u{r}\u{n}\u{t}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings17.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).types similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).types index 7c4e6504f4ff9..54ef794e57402 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts] //// -=== unicodeExtendedEscapesInStrings17_ES5.ts === +=== unicodeExtendedEscapesInStrings17.ts === var x = "\u{r}\u{n}\u{t}"; >x : string >"\u{r}\u{n}\u{t}" : "\\u{r}\\u{n}\\u{t}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).errors.txt new file mode 100644 index 0000000000000..30965be12351a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).errors.txt @@ -0,0 +1,14 @@ +unicodeExtendedEscapesInStrings17.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInStrings17.ts(1,18): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInStrings17.ts(1,23): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings17.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).js new file mode 100644 index 0000000000000..df65871c04d23 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts] //// + +//// [unicodeExtendedEscapesInStrings17.ts] +var x = "\u{r}\u{n}\u{t}"; + + +//// [unicodeExtendedEscapesInStrings17.js] +var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).symbols new file mode 100644 index 0000000000000..13a77f8d60032 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts] //// + +=== unicodeExtendedEscapesInStrings17.ts === +var x = "\u{r}\u{n}\u{t}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings17.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).types similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).types index 9fe04f9fb0392..54ef794e57402 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings17(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts] //// -=== unicodeExtendedEscapesInStrings17_ES6.ts === +=== unicodeExtendedEscapesInStrings17.ts === var x = "\u{r}\u{n}\u{t}"; >x : string >"\u{r}\u{n}\u{t}" : "\\u{r}\\u{n}\\u{t}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt deleted file mode 100644 index 0e81361aebd6c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -unicodeExtendedEscapesInStrings17_ES5.ts(1,13): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInStrings17_ES5.ts(1,18): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInStrings17_ES5.ts(1,23): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 0930e1ac659cc..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings17_ES5.ts] -var x = "\u{r}\u{n}\u{t}"; - - -//// [unicodeExtendedEscapesInStrings17_ES5.js] -var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.symbols deleted file mode 100644 index 63fb4cf3a8db0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings17_ES5.ts === -var x = "\u{r}\u{n}\u{t}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings17_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt deleted file mode 100644 index 2b41dc8286443..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -unicodeExtendedEscapesInStrings17_ES6.ts(1,13): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInStrings17_ES6.ts(1,18): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInStrings17_ES6.ts(1,23): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 3e8fd6343e338..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInStrings17_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.symbols deleted file mode 100644 index fe9b212a7877c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings17_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings17_ES6.ts === -var x = "\u{r}\u{n}\u{t}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings17_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).js new file mode 100644 index 0000000000000..64ea625e91bdd --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts] //// + +//// [unicodeExtendedEscapesInStrings18.ts] +var x = "\u{65}\u{65}"; + + +//// [unicodeExtendedEscapesInStrings18.js] +var x = "ee"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).symbols new file mode 100644 index 0000000000000..d1b3f5204141c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts] //// + +=== unicodeExtendedEscapesInStrings18.ts === +var x = "\u{65}\u{65}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings18.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).types similarity index 56% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).types index c2db1b0a4434b..e670444891551 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts] //// -=== unicodeExtendedEscapesInStrings18_ES5.ts === +=== unicodeExtendedEscapesInStrings18.ts === var x = "\u{65}\u{65}"; >x : string >"\u{65}\u{65}" : "ee" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).js new file mode 100644 index 0000000000000..5eae666570105 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts] //// + +//// [unicodeExtendedEscapesInStrings18.ts] +var x = "\u{65}\u{65}"; + + +//// [unicodeExtendedEscapesInStrings18.js] +var x = "\u{65}\u{65}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).symbols new file mode 100644 index 0000000000000..d1b3f5204141c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts] //// + +=== unicodeExtendedEscapesInStrings18.ts === +var x = "\u{65}\u{65}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings18.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).types similarity index 56% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).types index 2044cc697d285..e670444891551 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings18(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts] //// -=== unicodeExtendedEscapesInStrings18_ES6.ts === +=== unicodeExtendedEscapesInStrings18.ts === var x = "\u{65}\u{65}"; >x : string >"\u{65}\u{65}" : "ee" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js deleted file mode 100644 index 60d900a2fd769..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings18_ES5.ts] -var x = "\u{65}\u{65}"; - - -//// [unicodeExtendedEscapesInStrings18_ES5.js] -var x = "ee"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.symbols deleted file mode 100644 index 5488fbe6e101a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings18_ES5.ts === -var x = "\u{65}\u{65}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings18_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js deleted file mode 100644 index e30200941661d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.symbols deleted file mode 100644 index 1a8b523778d5e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings18_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings18_ES6.ts === -var x = "\u{65}\u{65}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings18_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).errors.txt new file mode 100644 index 0000000000000..d8fe5fb917579 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings19.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings19.ts (1 errors) ==== + var x = "\u{}"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).js new file mode 100644 index 0000000000000..381c905a21416 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts] //// + +//// [unicodeExtendedEscapesInStrings19.ts] +var x = "\u{}"; + + +//// [unicodeExtendedEscapesInStrings19.js] +var x = "\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).symbols new file mode 100644 index 0000000000000..cd14f2b128c86 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts] //// + +=== unicodeExtendedEscapesInStrings19.ts === +var x = "\u{}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings19.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).types index 7e06781bd804f..7984f7589aae4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts] //// -=== unicodeExtendedEscapesInStrings19_ES5.ts === +=== unicodeExtendedEscapesInStrings19.ts === var x = "\u{}"; >x : string >"\u{}" : "\\u{}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).errors.txt new file mode 100644 index 0000000000000..d8fe5fb917579 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings19.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings19.ts (1 errors) ==== + var x = "\u{}"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).js new file mode 100644 index 0000000000000..381c905a21416 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts] //// + +//// [unicodeExtendedEscapesInStrings19.ts] +var x = "\u{}"; + + +//// [unicodeExtendedEscapesInStrings19.js] +var x = "\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).symbols new file mode 100644 index 0000000000000..cd14f2b128c86 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts] //// + +=== unicodeExtendedEscapesInStrings19.ts === +var x = "\u{}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings19.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).types index 8bf6abf9bb091..7984f7589aae4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings19(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts] //// -=== unicodeExtendedEscapesInStrings19_ES6.ts === +=== unicodeExtendedEscapesInStrings19.ts === var x = "\u{}"; >x : string >"\u{}" : "\\u{}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt deleted file mode 100644 index 29ec3e4233b03..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings19_ES5.ts(1,13): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 760083f8356a0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings19_ES5.ts] -var x = "\u{}"; - - -//// [unicodeExtendedEscapesInStrings19_ES5.js] -var x = "\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.symbols deleted file mode 100644 index bdd55572bd89d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings19_ES5.ts === -var x = "\u{}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings19_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt deleted file mode 100644 index 4b78cf0866f3e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings19_ES6.ts(1,13): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index f56b5d80c533f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings19_ES6.ts] -var x = "\u{}"; - - -//// [unicodeExtendedEscapesInStrings19_ES6.js] -var x = "\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.symbols deleted file mode 100644 index fc53e569569a1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings19_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings19_ES6.ts === -var x = "\u{}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings19_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).errors.txt new file mode 100644 index 0000000000000..654bc550dbe65 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings20.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings20.ts (1 errors) ==== + var x = "\u{"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).js new file mode 100644 index 0000000000000..04626f48040a4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts] //// + +//// [unicodeExtendedEscapesInStrings20.ts] +var x = "\u{"; + + +//// [unicodeExtendedEscapesInStrings20.js] +var x = "\u{"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).symbols new file mode 100644 index 0000000000000..c4de10086c78b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts] //// + +=== unicodeExtendedEscapesInStrings20.ts === +var x = "\u{"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings20.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).types index 74b0675e71a30..8402c43165275 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts] //// -=== unicodeExtendedEscapesInStrings20_ES5.ts === +=== unicodeExtendedEscapesInStrings20.ts === var x = "\u{"; >x : string >"\u{" : "\\u{" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).errors.txt new file mode 100644 index 0000000000000..654bc550dbe65 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings20.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInStrings20.ts (1 errors) ==== + var x = "\u{"; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).js new file mode 100644 index 0000000000000..04626f48040a4 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts] //// + +//// [unicodeExtendedEscapesInStrings20.ts] +var x = "\u{"; + + +//// [unicodeExtendedEscapesInStrings20.js] +var x = "\u{"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).symbols new file mode 100644 index 0000000000000..c4de10086c78b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts] //// + +=== unicodeExtendedEscapesInStrings20.ts === +var x = "\u{"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings20.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).types index ce9eefbadb4b9..8402c43165275 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings20(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts] //// -=== unicodeExtendedEscapesInStrings20_ES6.ts === +=== unicodeExtendedEscapesInStrings20.ts === var x = "\u{"; >x : string >"\u{" : "\\u{" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt deleted file mode 100644 index 08529a9876b96..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings20_ES5.ts(1,13): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 641e883817cfd..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings20_ES5.ts] -var x = "\u{"; - - -//// [unicodeExtendedEscapesInStrings20_ES5.js] -var x = "\u{"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.symbols deleted file mode 100644 index 1059e98109c5f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings20_ES5.ts === -var x = "\u{"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings20_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt deleted file mode 100644 index 7c2e4affbf1bb..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings20_ES6.ts(1,13): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 027d1cbb7c700..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings20_ES6.ts] -var x = "\u{"; - - -//// [unicodeExtendedEscapesInStrings20_ES6.js] -var x = "\u{"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.symbols deleted file mode 100644 index debb6601a90c4..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings20_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings20_ES6.ts === -var x = "\u{"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings20_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).errors.txt new file mode 100644 index 0000000000000..c9226b8853d15 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings21.ts(1,15): error TS1199: Unterminated Unicode escape sequence. + + +==== unicodeExtendedEscapesInStrings21.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).js new file mode 100644 index 0000000000000..cc82e0d3fdfad --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts] //// + +//// [unicodeExtendedEscapesInStrings21.ts] +var x = "\u{67"; + + +//// [unicodeExtendedEscapesInStrings21.js] +var x = "\u{67"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).symbols new file mode 100644 index 0000000000000..e0dcf8f578ada --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts] //// + +=== unicodeExtendedEscapesInStrings21.ts === +var x = "\u{67"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings21.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).types index 30cd3b862980e..cad35327311c4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts] //// -=== unicodeExtendedEscapesInStrings21_ES5.ts === +=== unicodeExtendedEscapesInStrings21.ts === var x = "\u{67"; >x : string >"\u{67" : "\\u{67" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).errors.txt new file mode 100644 index 0000000000000..c9226b8853d15 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings21.ts(1,15): error TS1199: Unterminated Unicode escape sequence. + + +==== unicodeExtendedEscapesInStrings21.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).js new file mode 100644 index 0000000000000..cc82e0d3fdfad --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts] //// + +//// [unicodeExtendedEscapesInStrings21.ts] +var x = "\u{67"; + + +//// [unicodeExtendedEscapesInStrings21.js] +var x = "\u{67"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).symbols new file mode 100644 index 0000000000000..e0dcf8f578ada --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts] //// + +=== unicodeExtendedEscapesInStrings21.ts === +var x = "\u{67"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings21.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).types index 88aa3ddc0e586..cad35327311c4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings21(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts] //// -=== unicodeExtendedEscapesInStrings21_ES6.ts === +=== unicodeExtendedEscapesInStrings21.ts === var x = "\u{67"; >x : string >"\u{67" : "\\u{67" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt deleted file mode 100644 index 134dcf10a8d85..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings21_ES5.ts(1,15): error TS1199: Unterminated Unicode escape sequence. - - -==== 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 deleted file mode 100644 index 3848ed12f6470..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings21_ES5.ts] -var x = "\u{67"; - - -//// [unicodeExtendedEscapesInStrings21_ES5.js] -var x = "\u{67"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.symbols deleted file mode 100644 index c528537c0cedb..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings21_ES5.ts === -var x = "\u{67"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings21_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt deleted file mode 100644 index c72e6aa9c953f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings21_ES6.ts(1,15): error TS1199: Unterminated Unicode escape sequence. - - -==== 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 deleted file mode 100644 index b093afdb2b31f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings21_ES6.ts] -var x = "\u{67"; - - -//// [unicodeExtendedEscapesInStrings21_ES6.js] -var x = "\u{67"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.symbols deleted file mode 100644 index a0be6b2d4d89d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings21_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings21_ES6.ts === -var x = "\u{67"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings21_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).errors.txt new file mode 100644 index 0000000000000..c0fa227d2483b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings22.ts(1,27): error TS1199: Unterminated Unicode escape sequence. + + +==== unicodeExtendedEscapesInStrings22.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).js new file mode 100644 index 0000000000000..56896ab477ebb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts] //// + +//// [unicodeExtendedEscapesInStrings22.ts] +var x = "\u{00000000000067"; + + +//// [unicodeExtendedEscapesInStrings22.js] +var x = "\u{00000000000067"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).symbols new file mode 100644 index 0000000000000..37975dc3b3b23 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts] //// + +=== unicodeExtendedEscapesInStrings22.ts === +var x = "\u{00000000000067"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings22.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).types similarity index 61% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).types index e38eec1196eef..711a6f6dc5e07 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts] //// -=== unicodeExtendedEscapesInStrings22_ES5.ts === +=== unicodeExtendedEscapesInStrings22.ts === var x = "\u{00000000000067"; >x : string >"\u{00000000000067" : "\\u{00000000000067" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).errors.txt new file mode 100644 index 0000000000000..c0fa227d2483b --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings22.ts(1,27): error TS1199: Unterminated Unicode escape sequence. + + +==== unicodeExtendedEscapesInStrings22.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).js new file mode 100644 index 0000000000000..56896ab477ebb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts] //// + +//// [unicodeExtendedEscapesInStrings22.ts] +var x = "\u{00000000000067"; + + +//// [unicodeExtendedEscapesInStrings22.js] +var x = "\u{00000000000067"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).symbols new file mode 100644 index 0000000000000..37975dc3b3b23 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts] //// + +=== unicodeExtendedEscapesInStrings22.ts === +var x = "\u{00000000000067"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings22.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).types similarity index 61% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).types index 6544d219534b6..711a6f6dc5e07 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings22(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts] //// -=== unicodeExtendedEscapesInStrings22_ES6.ts === +=== unicodeExtendedEscapesInStrings22.ts === var x = "\u{00000000000067"; >x : string >"\u{00000000000067" : "\\u{00000000000067" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt deleted file mode 100644 index baf85a57ad578..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings22_ES5.ts(1,27): error TS1199: Unterminated Unicode escape sequence. - - -==== 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 deleted file mode 100644 index d7458db7eb331..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings22_ES5.ts] -var x = "\u{00000000000067"; - - -//// [unicodeExtendedEscapesInStrings22_ES5.js] -var x = "\u{00000000000067"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.symbols deleted file mode 100644 index 26e464c4c7a02..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings22_ES5.ts === -var x = "\u{00000000000067"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings22_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt deleted file mode 100644 index 83d469882db4b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings22_ES6.ts(1,27): error TS1199: Unterminated Unicode escape sequence. - - -==== 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 deleted file mode 100644 index 7ee5b3e5c5da4..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings22_ES6.ts] -var x = "\u{00000000000067"; - - -//// [unicodeExtendedEscapesInStrings22_ES6.js] -var x = "\u{00000000000067"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.symbols deleted file mode 100644 index a225735e135d0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings22_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings22_ES6.ts === -var x = "\u{00000000000067"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings22_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).js new file mode 100644 index 0000000000000..f15da1def54cc --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts] //// + +//// [unicodeExtendedEscapesInStrings23.ts] +var x = "\u{00000000000067}"; + + +//// [unicodeExtendedEscapesInStrings23.js] +var x = "g"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).symbols new file mode 100644 index 0000000000000..17ad70505ee1e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts] //// + +=== unicodeExtendedEscapesInStrings23.ts === +var x = "\u{00000000000067}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings23.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).types index 7fa1216637160..4f8a58511d497 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts] //// -=== unicodeExtendedEscapesInStrings23_ES6.ts === +=== unicodeExtendedEscapesInStrings23.ts === var x = "\u{00000000000067}"; >x : string >"\u{00000000000067}" : "g" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).js new file mode 100644 index 0000000000000..319f1867784fb --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts] //// + +//// [unicodeExtendedEscapesInStrings23.ts] +var x = "\u{00000000000067}"; + + +//// [unicodeExtendedEscapesInStrings23.js] +var x = "\u{00000000000067}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).symbols new file mode 100644 index 0000000000000..17ad70505ee1e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts] //// + +=== unicodeExtendedEscapesInStrings23.ts === +var x = "\u{00000000000067}"; +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings23.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).types index 052decfc5a154..4f8a58511d497 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings23(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts] //// -=== unicodeExtendedEscapesInStrings23_ES5.ts === +=== unicodeExtendedEscapesInStrings23.ts === var x = "\u{00000000000067}"; >x : string >"\u{00000000000067}" : "g" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js deleted file mode 100644 index 23e3e130a0500..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings23_ES5.ts] -var x = "\u{00000000000067}"; - - -//// [unicodeExtendedEscapesInStrings23_ES5.js] -var x = "g"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.symbols deleted file mode 100644 index ceed2359adc1b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings23_ES5.ts === -var x = "\u{00000000000067}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings23_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js deleted file mode 100644 index 70a31064e309d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings23_ES6.ts] -var x = "\u{00000000000067}"; - - -//// [unicodeExtendedEscapesInStrings23_ES6.js] -var x = "\u{00000000000067}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.symbols deleted file mode 100644 index afffce5fec0d5..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings23_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings23_ES6.ts === -var x = "\u{00000000000067}"; ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings23_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).errors.txt new file mode 100644 index 0000000000000..92fbb64fc5d0f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings24.ts(1,27): error TS1199: Unterminated Unicode escape sequence. + + +==== unicodeExtendedEscapesInStrings24.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).js new file mode 100644 index 0000000000000..1ba546bf4ef24 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts] //// + +//// [unicodeExtendedEscapesInStrings24.ts] +var x = "\u{00000000000067 + + +//// [unicodeExtendedEscapesInStrings24.js] +var x = "\u{00000000000067; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).symbols new file mode 100644 index 0000000000000..cad7b41e1df96 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts] //// + +=== unicodeExtendedEscapesInStrings24.ts === +var x = "\u{00000000000067 +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings24.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).types similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).types index ed45ca96420d7..6e2e793141a7b 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts] //// -=== unicodeExtendedEscapesInStrings24_ES5.ts === +=== unicodeExtendedEscapesInStrings24.ts === var x = "\u{00000000000067 >x : string >"\u{00000000000067 : "\\u{00000000000067" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).errors.txt new file mode 100644 index 0000000000000..92fbb64fc5d0f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings24.ts(1,27): error TS1199: Unterminated Unicode escape sequence. + + +==== unicodeExtendedEscapesInStrings24.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).js new file mode 100644 index 0000000000000..1ba546bf4ef24 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts] //// + +//// [unicodeExtendedEscapesInStrings24.ts] +var x = "\u{00000000000067 + + +//// [unicodeExtendedEscapesInStrings24.js] +var x = "\u{00000000000067; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).symbols new file mode 100644 index 0000000000000..cad7b41e1df96 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts] //// + +=== unicodeExtendedEscapesInStrings24.ts === +var x = "\u{00000000000067 +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings24.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).types similarity index 60% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).types index e0d13ab4f892e..6e2e793141a7b 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings24(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts] //// -=== unicodeExtendedEscapesInStrings24_ES6.ts === +=== unicodeExtendedEscapesInStrings24.ts === var x = "\u{00000000000067 >x : string >"\u{00000000000067 : "\\u{00000000000067" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt deleted file mode 100644 index abf101aabc923..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings24_ES5.ts(1,27): error TS1199: Unterminated Unicode escape sequence. - - -==== 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 deleted file mode 100644 index cfb82cc753ead..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings24_ES5.ts] -var x = "\u{00000000000067 - - -//// [unicodeExtendedEscapesInStrings24_ES5.js] -var x = "\u{00000000000067; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.symbols deleted file mode 100644 index 202847d4f74ae..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings24_ES5.ts === -var x = "\u{00000000000067 ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings24_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt deleted file mode 100644 index 5b12c14093142..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings24_ES6.ts(1,27): error TS1199: Unterminated Unicode escape sequence. - - -==== 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 deleted file mode 100644 index 007e758cf0b6d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings24_ES6.ts] -var x = "\u{00000000000067 - - -//// [unicodeExtendedEscapesInStrings24_ES6.js] -var x = "\u{00000000000067; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.symbols deleted file mode 100644 index cb5bee512637e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings24_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings24_ES6.ts === -var x = "\u{00000000000067 ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings24_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).errors.txt new file mode 100644 index 0000000000000..0aadcb9617357 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings25.ts(1,28): error TS1002: Unterminated string literal. + + +==== unicodeExtendedEscapesInStrings25.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).js new file mode 100644 index 0000000000000..3335be159be9e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts] //// + +//// [unicodeExtendedEscapesInStrings25.ts] +var x = "\u{00000000000067} + + +//// [unicodeExtendedEscapesInStrings25.js] +var x = "g"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).symbols new file mode 100644 index 0000000000000..86d496e34b20e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts] //// + +=== unicodeExtendedEscapesInStrings25.ts === +var x = "\u{00000000000067} +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings25.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).types index f4a5b3b57440f..279aace66852c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts] //// -=== unicodeExtendedEscapesInStrings25_ES6.ts === +=== unicodeExtendedEscapesInStrings25.ts === var x = "\u{00000000000067} >x : string >"\u{00000000000067} : "g" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).errors.txt new file mode 100644 index 0000000000000..0aadcb9617357 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInStrings25.ts(1,28): error TS1002: Unterminated string literal. + + +==== unicodeExtendedEscapesInStrings25.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).js new file mode 100644 index 0000000000000..bb6058a9d13e2 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts] //// + +//// [unicodeExtendedEscapesInStrings25.ts] +var x = "\u{00000000000067} + + +//// [unicodeExtendedEscapesInStrings25.js] +var x = "\u{00000000000067}; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).symbols new file mode 100644 index 0000000000000..86d496e34b20e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts] //// + +=== unicodeExtendedEscapesInStrings25.ts === +var x = "\u{00000000000067} +>x : Symbol(x, Decl(unicodeExtendedEscapesInStrings25.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).types similarity index 58% rename from tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).types index ad20dc88b9103..279aace66852c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInStrings25(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts] //// -=== unicodeExtendedEscapesInStrings25_ES5.ts === +=== unicodeExtendedEscapesInStrings25.ts === var x = "\u{00000000000067} >x : string >"\u{00000000000067} : "g" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt deleted file mode 100644 index fe3072da47198..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings25_ES5.ts(1,28): error TS1002: Unterminated string literal. - - -==== 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 deleted file mode 100644 index 4963427f1c771..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts] //// - -//// [unicodeExtendedEscapesInStrings25_ES5.ts] -var x = "\u{00000000000067} - - -//// [unicodeExtendedEscapesInStrings25_ES5.js] -var x = "g"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.symbols deleted file mode 100644 index 9ffc252954147..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts] //// - -=== unicodeExtendedEscapesInStrings25_ES5.ts === -var x = "\u{00000000000067} ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings25_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt deleted file mode 100644 index 36920ffb82156..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInStrings25_ES6.ts(1,28): error TS1002: Unterminated string literal. - - -==== 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 deleted file mode 100644 index b438b5b59c20a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts] //// - -//// [unicodeExtendedEscapesInStrings25_ES6.ts] -var x = "\u{00000000000067} - - -//// [unicodeExtendedEscapesInStrings25_ES6.js] -var x = "\u{00000000000067}; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.symbols deleted file mode 100644 index a51a95f7bc345..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInStrings25_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts] //// - -=== unicodeExtendedEscapesInStrings25_ES6.ts === -var x = "\u{00000000000067} ->x : Symbol(x, Decl(unicodeExtendedEscapesInStrings25_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).js new file mode 100644 index 0000000000000..8ba48805c9834 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts] //// + +//// [unicodeExtendedEscapesInTemplates01.ts] +var x = `\u{0}`; + + +//// [unicodeExtendedEscapesInTemplates01.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).symbols new file mode 100644 index 0000000000000..4f848d5ce2268 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts] //// + +=== unicodeExtendedEscapesInTemplates01.ts === +var x = `\u{0}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates01.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).types similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).types index e22a65f67949e..3e063b75858b2 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts] //// -=== unicodeExtendedEscapesInTemplates01_ES5.ts === +=== unicodeExtendedEscapesInTemplates01.ts === var x = `\u{0}`; >x : string >`\u{0}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).js new file mode 100644 index 0000000000000..b1122ee8c4d4d --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts] //// + +//// [unicodeExtendedEscapesInTemplates01.ts] +var x = `\u{0}`; + + +//// [unicodeExtendedEscapesInTemplates01.js] +var x = `\u{0}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).symbols new file mode 100644 index 0000000000000..4f848d5ce2268 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts] //// + +=== unicodeExtendedEscapesInTemplates01.ts === +var x = `\u{0}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates01.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).types similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).types index 1970f2ccc8ae6..3e063b75858b2 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts] //// -=== unicodeExtendedEscapesInTemplates01_ES6.ts === +=== unicodeExtendedEscapesInTemplates01.ts === var x = `\u{0}`; >x : string >`\u{0}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js deleted file mode 100644 index 422e52d36d950..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates01_ES5.ts] -var x = `\u{0}`; - - -//// [unicodeExtendedEscapesInTemplates01_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.symbols deleted file mode 100644 index eb26e05c82ce6..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates01_ES5.ts === -var x = `\u{0}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates01_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js deleted file mode 100644 index 759a0f5736a5f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates01_ES6.ts] -var x = `\u{0}`; - - -//// [unicodeExtendedEscapesInTemplates01_ES6.js] -var x = `\u{0}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.symbols deleted file mode 100644 index 77d7164935d96..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates01_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates01_ES6.ts === -var x = `\u{0}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates01_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).js new file mode 100644 index 0000000000000..53e58ccb76cdf --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts] //// + +//// [unicodeExtendedEscapesInTemplates02.ts] +var x = `\u{00}`; + + +//// [unicodeExtendedEscapesInTemplates02.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).symbols new file mode 100644 index 0000000000000..65659eb207155 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts] //// + +=== unicodeExtendedEscapesInTemplates02.ts === +var x = `\u{00}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates02.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).types index 12484ad8aae15..d244dfcb6bcd7 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts] //// -=== unicodeExtendedEscapesInTemplates02_ES5.ts === +=== unicodeExtendedEscapesInTemplates02.ts === var x = `\u{00}`; >x : string >`\u{00}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).js new file mode 100644 index 0000000000000..95a846b0b0d9a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts] //// + +//// [unicodeExtendedEscapesInTemplates02.ts] +var x = `\u{00}`; + + +//// [unicodeExtendedEscapesInTemplates02.js] +var x = `\u{00}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).symbols new file mode 100644 index 0000000000000..65659eb207155 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts] //// + +=== unicodeExtendedEscapesInTemplates02.ts === +var x = `\u{00}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates02.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).types index c4f80b90e5dbf..d244dfcb6bcd7 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts] //// -=== unicodeExtendedEscapesInTemplates02_ES6.ts === +=== unicodeExtendedEscapesInTemplates02.ts === var x = `\u{00}`; >x : string >`\u{00}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js deleted file mode 100644 index 0ed718425d459..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates02_ES5.ts] -var x = `\u{00}`; - - -//// [unicodeExtendedEscapesInTemplates02_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.symbols deleted file mode 100644 index b830ae30135e3..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates02_ES5.ts === -var x = `\u{00}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates02_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js deleted file mode 100644 index b1868ac146593..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates02_ES6.ts] -var x = `\u{00}`; - - -//// [unicodeExtendedEscapesInTemplates02_ES6.js] -var x = `\u{00}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.symbols deleted file mode 100644 index 3805dd3e6387b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates02_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates02_ES6.ts === -var x = `\u{00}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates02_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).js new file mode 100644 index 0000000000000..492349e10ce53 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts] //// + +//// [unicodeExtendedEscapesInTemplates03.ts] +var x = `\u{0000}`; + + +//// [unicodeExtendedEscapesInTemplates03.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).symbols new file mode 100644 index 0000000000000..26e11e8386f16 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts] //// + +=== unicodeExtendedEscapesInTemplates03.ts === +var x = `\u{0000}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates03.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).types index bf91e7f86e492..91591caac4915 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts] //// -=== unicodeExtendedEscapesInTemplates03_ES5.ts === +=== unicodeExtendedEscapesInTemplates03.ts === var x = `\u{0000}`; >x : string >`\u{0000}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).js new file mode 100644 index 0000000000000..d1dfa4c0235a8 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts] //// + +//// [unicodeExtendedEscapesInTemplates03.ts] +var x = `\u{0000}`; + + +//// [unicodeExtendedEscapesInTemplates03.js] +var x = `\u{0000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).symbols new file mode 100644 index 0000000000000..26e11e8386f16 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts] //// + +=== unicodeExtendedEscapesInTemplates03.ts === +var x = `\u{0000}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates03.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).types similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).types index b3cd03f00b390..91591caac4915 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts] //// -=== unicodeExtendedEscapesInTemplates03_ES6.ts === +=== unicodeExtendedEscapesInTemplates03.ts === var x = `\u{0000}`; >x : string >`\u{0000}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js deleted file mode 100644 index 9d0d81dbd3ed9..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates03_ES5.ts] -var x = `\u{0000}`; - - -//// [unicodeExtendedEscapesInTemplates03_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.symbols deleted file mode 100644 index 85419cdc0fa5d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates03_ES5.ts === -var x = `\u{0000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates03_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js deleted file mode 100644 index 3a6f0fadc5ed7..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates03_ES6.ts] -var x = `\u{0000}`; - - -//// [unicodeExtendedEscapesInTemplates03_ES6.js] -var x = `\u{0000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.symbols deleted file mode 100644 index 88ae859ac537c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates03_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates03_ES6.ts === -var x = `\u{0000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates03_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).js new file mode 100644 index 0000000000000..5757ed488246a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts] //// + +//// [unicodeExtendedEscapesInTemplates04.ts] +var x = `\u{00000000}`; + + +//// [unicodeExtendedEscapesInTemplates04.js] +var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).symbols new file mode 100644 index 0000000000000..3254de260f4ec --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts] //// + +=== unicodeExtendedEscapesInTemplates04.ts === +var x = `\u{00000000}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates04.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).types similarity index 55% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).types index 9fd00a927f182..5abb0cb0105fd 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts] //// -=== unicodeExtendedEscapesInTemplates04_ES5.ts === +=== unicodeExtendedEscapesInTemplates04.ts === var x = `\u{00000000}`; >x : string >`\u{00000000}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).js new file mode 100644 index 0000000000000..b603d0a09f68c --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts] //// + +//// [unicodeExtendedEscapesInTemplates04.ts] +var x = `\u{00000000}`; + + +//// [unicodeExtendedEscapesInTemplates04.js] +var x = `\u{00000000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).symbols new file mode 100644 index 0000000000000..3254de260f4ec --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts] //// + +=== unicodeExtendedEscapesInTemplates04.ts === +var x = `\u{00000000}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates04.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).types similarity index 55% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).types index 513a48a241b45..5abb0cb0105fd 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts] //// -=== unicodeExtendedEscapesInTemplates04_ES6.ts === +=== unicodeExtendedEscapesInTemplates04.ts === var x = `\u{00000000}`; >x : string >`\u{00000000}` : "\0" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js deleted file mode 100644 index cf1da7ee47f71..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates04_ES5.ts] -var x = `\u{00000000}`; - - -//// [unicodeExtendedEscapesInTemplates04_ES5.js] -var x = "\0"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.symbols deleted file mode 100644 index 4492eab68686d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates04_ES5.ts === -var x = `\u{00000000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates04_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js deleted file mode 100644 index e567b17fc6fab..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates04_ES6.ts] -var x = `\u{00000000}`; - - -//// [unicodeExtendedEscapesInTemplates04_ES6.js] -var x = `\u{00000000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.symbols deleted file mode 100644 index 262e0ed5f906b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates04_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates04_ES6.ts === -var x = `\u{00000000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates04_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).js similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).js index 15cc9a10de181..8a5bd9a38d522 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts] //// -//// [unicodeExtendedEscapesInTemplates05_ES5.ts] +//// [unicodeExtendedEscapesInTemplates05.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] +//// [unicodeExtendedEscapesInTemplates05.js] var x = "Hello world"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).symbols new file mode 100644 index 0000000000000..63140fd33d691 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts] //// + +=== unicodeExtendedEscapesInTemplates05.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates05.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).types similarity index 70% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).types index e7c380809d249..4befcb6a31a40 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts] //// -=== unicodeExtendedEscapesInTemplates05_ES6.ts === +=== unicodeExtendedEscapesInTemplates05.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 >`\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}` : "Hello world" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).js similarity index 59% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).js index a5c5b0517bdda..e8a11de6ffb11 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts] //// -//// [unicodeExtendedEscapesInTemplates05_ES6.ts] +//// [unicodeExtendedEscapesInTemplates05.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] +//// [unicodeExtendedEscapesInTemplates05.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(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).symbols new file mode 100644 index 0000000000000..63140fd33d691 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts] //// + +=== unicodeExtendedEscapesInTemplates05.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates05.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).types similarity index 70% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).types index 0d568bcab44dc..4befcb6a31a40 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts] //// -=== unicodeExtendedEscapesInTemplates05_ES5.ts === +=== unicodeExtendedEscapesInTemplates05.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 >`\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}` : "Hello world" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.symbols deleted file mode 100644 index d56c9342e5bf5..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts] //// - -=== 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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates05_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.symbols deleted file mode 100644 index 1f0f1d3245c35..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates05_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts] //// - -=== 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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates05_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).js similarity index 66% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).js index cf38b530e81da..9821108c38583 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts] //// -//// [unicodeExtendedEscapesInTemplates06_ES5.ts] +//// [unicodeExtendedEscapesInTemplates06.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{10FFFF}`; -//// [unicodeExtendedEscapesInTemplates06_ES5.js] +//// [unicodeExtendedEscapesInTemplates06.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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).symbols similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).symbols index d65af1e5192f9..be59066b247a0 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts] //// -=== unicodeExtendedEscapesInTemplates06_ES5.ts === +=== unicodeExtendedEscapesInTemplates06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{10FFFF}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates06_ES5.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates06.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).types similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).types index 7173fb12a65ed..0b1d7f7ab17be 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts] //// -=== unicodeExtendedEscapesInTemplates06_ES5.ts === +=== unicodeExtendedEscapesInTemplates06.ts === // 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.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).js similarity index 66% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).js index 1308fe2dfd588..fb2eac50497b7 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts] //// -//// [unicodeExtendedEscapesInTemplates06_ES6.ts] +//// [unicodeExtendedEscapesInTemplates06.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{10FFFF}`; -//// [unicodeExtendedEscapesInTemplates06_ES6.js] +//// [unicodeExtendedEscapesInTemplates06.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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).symbols similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).symbols index 9e37d9b1063c8..be59066b247a0 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts] //// -=== unicodeExtendedEscapesInTemplates06_ES6.ts === +=== unicodeExtendedEscapesInTemplates06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{10FFFF}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates06_ES6.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates06.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).types similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).types index fbd0cb4fca6c5..0b1d7f7ab17be 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates06_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates06(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts] //// -=== unicodeExtendedEscapesInTemplates06_ES6.ts === +=== unicodeExtendedEscapesInTemplates06.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{10FFFF}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).errors.txt new file mode 100644 index 0000000000000..3d8924373de47 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).errors.txt @@ -0,0 +1,10 @@ +unicodeExtendedEscapesInTemplates07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInTemplates07.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(target=es5).js similarity index 66% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).js index f0c88f204c7e4..45e1a193b888a 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts] //// -//// [unicodeExtendedEscapesInTemplates07_ES5.ts] +//// [unicodeExtendedEscapesInTemplates07.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{110000}`; -//// [unicodeExtendedEscapesInTemplates07_ES5.js] +//// [unicodeExtendedEscapesInTemplates07.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/unicodeExtendedEscapesInTemplates07_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).symbols similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).symbols index f221c34217108..e42fff241bd49 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts] //// -=== unicodeExtendedEscapesInTemplates07_ES5.ts === +=== unicodeExtendedEscapesInTemplates07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{110000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates07_ES5.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates07.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).types similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).types index 4ef96321bbf2c..3a21ef6510e15 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts] //// -=== unicodeExtendedEscapesInTemplates07_ES5.ts === +=== unicodeExtendedEscapesInTemplates07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{110000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).errors.txt new file mode 100644 index 0000000000000..3d8924373de47 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).errors.txt @@ -0,0 +1,10 @@ +unicodeExtendedEscapesInTemplates07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInTemplates07.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(target=es6).js similarity index 66% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).js index 82e6ec27bf587..c5dc7456f6319 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).js @@ -1,12 +1,12 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts] //// -//// [unicodeExtendedEscapesInTemplates07_ES6.ts] +//// [unicodeExtendedEscapesInTemplates07.ts] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{110000}`; -//// [unicodeExtendedEscapesInTemplates07_ES6.js] +//// [unicodeExtendedEscapesInTemplates07.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/unicodeExtendedEscapesInTemplates07_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).symbols similarity index 51% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).symbols index c9d892027088e..e42fff241bd49 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).symbols @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts] //// -=== unicodeExtendedEscapesInTemplates07_ES6.ts === +=== unicodeExtendedEscapesInTemplates07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{110000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates07_ES6.ts, 2, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates07.ts, 2, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).types similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).types index 18924ad04bbb5..3a21ef6510e15 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts] //// -=== unicodeExtendedEscapesInTemplates07_ES6.ts === +=== unicodeExtendedEscapesInTemplates07.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = `\u{110000}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt deleted file mode 100644 index 30bb7e106e400..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES5.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -unicodeExtendedEscapesInTemplates07_ES5.ts(3,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.errors.txt deleted file mode 100644 index 6ddca4e51c48d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates07_ES6.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -unicodeExtendedEscapesInTemplates07_ES6.ts(3,19): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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/unicodeExtendedEscapesInTemplates08_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).js similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).js index 93336959d89e1..17a53248f4619 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts] //// -//// [unicodeExtendedEscapesInTemplates08_ES5.ts] +//// [unicodeExtendedEscapesInTemplates08.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] +//// [unicodeExtendedEscapesInTemplates08.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).symbols similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).symbols index 443196242de98..0ad6100115fc6 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts] //// -=== unicodeExtendedEscapesInTemplates08_ES5.ts === +=== unicodeExtendedEscapesInTemplates08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) var x = `\u{FFFF}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates08_ES5.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates08.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).types index b56255ab9873a..a59a6a9abbdd8 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts] //// -=== unicodeExtendedEscapesInTemplates08_ES6.ts === +=== unicodeExtendedEscapesInTemplates08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).js similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).js index afcaf829a01c3..4c1a61a41dcfb 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts] //// -//// [unicodeExtendedEscapesInTemplates08_ES6.ts] +//// [unicodeExtendedEscapesInTemplates08.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] +//// [unicodeExtendedEscapesInTemplates08.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).symbols similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).symbols index 8505dbbf58d56..0ad6100115fc6 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts] //// -=== unicodeExtendedEscapesInTemplates08_ES6.ts === +=== unicodeExtendedEscapesInTemplates08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) var x = `\u{FFFF}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates08_ES6.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates08.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).types index dd7a02cf005cf..a59a6a9abbdd8 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates08_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates08(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts] //// -=== unicodeExtendedEscapesInTemplates08_ES5.ts === +=== unicodeExtendedEscapesInTemplates08.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).js similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).js index 95ad8237091e7..f38cd0c62eaf1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts] //// -//// [unicodeExtendedEscapesInTemplates09_ES5.ts] +//// [unicodeExtendedEscapesInTemplates09.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] +//// [unicodeExtendedEscapesInTemplates09.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).symbols similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).symbols index d9bdf4da746d3..8b060f1bb2fb0 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts] //// -=== unicodeExtendedEscapesInTemplates09_ES5.ts === +=== unicodeExtendedEscapesInTemplates09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) var x = `\u{10000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates09_ES5.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates09.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).types index 492e8d787fdfd..c628537260cff 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts] //// -=== unicodeExtendedEscapesInTemplates09_ES6.ts === +=== unicodeExtendedEscapesInTemplates09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).js similarity index 68% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).js index 7f89144d88e8a..0667fc127f66f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).js @@ -1,13 +1,13 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts] //// -//// [unicodeExtendedEscapesInTemplates09_ES6.ts] +//// [unicodeExtendedEscapesInTemplates09.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] +//// [unicodeExtendedEscapesInTemplates09.js] // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).symbols similarity index 53% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).symbols index f5a62f53d9c1b..8b060f1bb2fb0 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).symbols @@ -1,9 +1,9 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts] //// -=== unicodeExtendedEscapesInTemplates09_ES6.ts === +=== unicodeExtendedEscapesInTemplates09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) var x = `\u{10000}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates09_ES6.ts, 3, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates09.ts, 3, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).types similarity index 69% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).types index 9c64e2183cf6d..c628537260cff 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates09_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates09(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts] //// -=== unicodeExtendedEscapesInTemplates09_ES5.ts === +=== unicodeExtendedEscapesInTemplates09.ts === // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).js similarity index 78% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).js index b495e32cebb6e..ff6a3bad95600 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts] //// -//// [unicodeExtendedEscapesInTemplates10_ES5.ts] +//// [unicodeExtendedEscapesInTemplates10.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, @@ -8,7 +8,7 @@ var x = `\u{D800}`; -//// [unicodeExtendedEscapesInTemplates10_ES5.js] +//// [unicodeExtendedEscapesInTemplates10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).symbols index 81f0e4cad9ce6..578ede2070b52 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts] //// -=== unicodeExtendedEscapesInTemplates10_ES5.ts === +=== unicodeExtendedEscapesInTemplates10.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates10_ES5.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates10.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).types similarity index 76% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).types index d82bcb2db17ef..24cb2b3e476fa 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts] //// -=== unicodeExtendedEscapesInTemplates10_ES6.ts === +=== unicodeExtendedEscapesInTemplates10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).js similarity index 78% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).js index d253b0d018067..6cac470ba3a14 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts] //// -//// [unicodeExtendedEscapesInTemplates10_ES6.ts] +//// [unicodeExtendedEscapesInTemplates10.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, @@ -8,7 +8,7 @@ var x = `\u{D800}`; -//// [unicodeExtendedEscapesInTemplates10_ES6.js] +//// [unicodeExtendedEscapesInTemplates10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).symbols index fa5cd9ce346a0..578ede2070b52 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts] //// -=== unicodeExtendedEscapesInTemplates10_ES6.ts === +=== unicodeExtendedEscapesInTemplates10.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates10_ES6.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates10.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).types similarity index 76% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).types index 1bfd8fc7ea773..24cb2b3e476fa 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates10_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates10(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts] //// -=== unicodeExtendedEscapesInTemplates10_ES5.ts === +=== unicodeExtendedEscapesInTemplates10.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).js similarity index 78% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).js index e89f2a223f921..0fcbbf7b54406 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts] //// -//// [unicodeExtendedEscapesInTemplates11_ES5.ts] +//// [unicodeExtendedEscapesInTemplates11.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, @@ -8,7 +8,7 @@ var x = `\u{DC00}`; -//// [unicodeExtendedEscapesInTemplates11_ES5.js] +//// [unicodeExtendedEscapesInTemplates11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).symbols index 2726cefed22f8..1a78e437325d4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts] //// -=== unicodeExtendedEscapesInTemplates11_ES5.ts === +=== unicodeExtendedEscapesInTemplates11.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates11_ES5.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates11.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).types similarity index 76% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).types index 9bfc570a707ad..ba2535fe4e0dc 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts] //// -=== unicodeExtendedEscapesInTemplates11_ES6.ts === +=== unicodeExtendedEscapesInTemplates11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).js similarity index 78% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).js index 689ae9521c580..4da2277dc25d8 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).js @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts] //// -//// [unicodeExtendedEscapesInTemplates11_ES6.ts] +//// [unicodeExtendedEscapesInTemplates11.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, @@ -8,7 +8,7 @@ var x = `\u{DC00}`; -//// [unicodeExtendedEscapesInTemplates11_ES6.js] +//// [unicodeExtendedEscapesInTemplates11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).symbols similarity index 64% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).symbols index 1259c27231bc2..1a78e437325d4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).symbols @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts] //// -=== unicodeExtendedEscapesInTemplates11_ES6.ts === +=== unicodeExtendedEscapesInTemplates11.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates11_ES6.ts, 4, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates11.ts, 4, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).types similarity index 76% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).types index 2b4d5a8ab2152..ba2535fe4e0dc 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates11_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates11(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts] //// -=== unicodeExtendedEscapesInTemplates11_ES5.ts === +=== unicodeExtendedEscapesInTemplates11.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, diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).errors.txt new file mode 100644 index 0000000000000..61f0e5ae2a563 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInTemplates12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInTemplates12.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).js new file mode 100644 index 0000000000000..cf92f33b66ba9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts] //// + +//// [unicodeExtendedEscapesInTemplates12.ts] +var x = `\u{FFFFFFFF}`; + + +//// [unicodeExtendedEscapesInTemplates12.js] +var x = "\\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).symbols new file mode 100644 index 0000000000000..a57905afa4b48 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts] //// + +=== unicodeExtendedEscapesInTemplates12.ts === +var x = `\u{FFFFFFFF}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates12.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).types similarity index 57% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).types index b00d7fc67113f..c081f39772461 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts] //// -=== unicodeExtendedEscapesInTemplates12_ES5.ts === +=== unicodeExtendedEscapesInTemplates12.ts === var x = `\u{FFFFFFFF}`; >x : string >`\u{FFFFFFFF}` : "\\u{FFFFFFFF}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).errors.txt new file mode 100644 index 0000000000000..61f0e5ae2a563 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInTemplates12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + + +==== unicodeExtendedEscapesInTemplates12.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).js new file mode 100644 index 0000000000000..6a3209ca3d9ef --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts] //// + +//// [unicodeExtendedEscapesInTemplates12.ts] +var x = `\u{FFFFFFFF}`; + + +//// [unicodeExtendedEscapesInTemplates12.js] +var x = `\u{FFFFFFFF}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).symbols new file mode 100644 index 0000000000000..a57905afa4b48 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts] //// + +=== unicodeExtendedEscapesInTemplates12.ts === +var x = `\u{FFFFFFFF}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates12.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).types similarity index 57% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).types index ea352d7c2fd1b..c081f39772461 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts] //// -=== unicodeExtendedEscapesInTemplates12_ES6.ts === +=== unicodeExtendedEscapesInTemplates12.ts === var x = `\u{FFFFFFFF}`; >x : string >`\u{FFFFFFFF}` : "\\u{FFFFFFFF}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt deleted file mode 100644 index 878486fc71bac..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInTemplates12_ES5.ts(1,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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 deleted file mode 100644 index 0bb9c6c51e09e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates12_ES5.ts] -var x = `\u{FFFFFFFF}`; - - -//// [unicodeExtendedEscapesInTemplates12_ES5.js] -var x = "\\u{FFFFFFFF}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.symbols deleted file mode 100644 index 29955859a04e0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates12_ES5.ts === -var x = `\u{FFFFFFFF}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates12_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt deleted file mode 100644 index 57e81ad3bd29a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInTemplates12_ES6.ts(1,21): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - - -==== 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 deleted file mode 100644 index c92da61fdeca8..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates12_ES6.ts] -var x = `\u{FFFFFFFF}`; - - -//// [unicodeExtendedEscapesInTemplates12_ES6.js] -var x = `\u{FFFFFFFF}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.symbols deleted file mode 100644 index 60ff555948f69..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates12_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates12_ES6.ts === -var x = `\u{FFFFFFFF}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates12_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).js new file mode 100644 index 0000000000000..ae3c148b3a9f0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts] //// + +//// [unicodeExtendedEscapesInTemplates13.ts] +var x = `\u{DDDDD}`; + + +//// [unicodeExtendedEscapesInTemplates13.js] +var x = "\uDB37\uDDDD"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).symbols new file mode 100644 index 0000000000000..95349e9b804ce --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts] //// + +=== unicodeExtendedEscapesInTemplates13.ts === +var x = `\u{DDDDD}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates13.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).types index bf65141016afa..4f00f74a97db4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts] //// -=== unicodeExtendedEscapesInTemplates13_ES5.ts === +=== unicodeExtendedEscapesInTemplates13.ts === var x = `\u{DDDDD}`; >x : string >`\u{DDDDD}` : "󝷝" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).js new file mode 100644 index 0000000000000..6cc48a3d1cc10 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts] //// + +//// [unicodeExtendedEscapesInTemplates13.ts] +var x = `\u{DDDDD}`; + + +//// [unicodeExtendedEscapesInTemplates13.js] +var x = `\u{DDDDD}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).symbols new file mode 100644 index 0000000000000..95349e9b804ce --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts] //// + +=== unicodeExtendedEscapesInTemplates13.ts === +var x = `\u{DDDDD}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates13.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).types similarity index 54% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).types index 42c98b4b6f395..4f00f74a97db4 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts] //// -=== unicodeExtendedEscapesInTemplates13_ES6.ts === +=== unicodeExtendedEscapesInTemplates13.ts === var x = `\u{DDDDD}`; >x : string >`\u{DDDDD}` : "󝷝" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js deleted file mode 100644 index fe78e01bad219..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates13_ES5.ts] -var x = `\u{DDDDD}`; - - -//// [unicodeExtendedEscapesInTemplates13_ES5.js] -var x = "\uDB37\uDDDD"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.symbols deleted file mode 100644 index 950f2a58891eb..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates13_ES5.ts === -var x = `\u{DDDDD}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates13_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js deleted file mode 100644 index 7e0ccc0f0bb99..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates13_ES6.ts] -var x = `\u{DDDDD}`; - - -//// [unicodeExtendedEscapesInTemplates13_ES6.js] -var x = `\u{DDDDD}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.symbols deleted file mode 100644 index 29da7829abead..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates13_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates13_ES6.ts === -var x = `\u{DDDDD}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates13_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).errors.txt new file mode 100644 index 0000000000000..e2204de770d81 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).errors.txt @@ -0,0 +1,9 @@ +unicodeExtendedEscapesInTemplates14.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInTemplates14.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(target=es5).js similarity index 57% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).js index f9950e99fd51a..fb8d96bad13fb 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).js @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts] //// -//// [unicodeExtendedEscapesInTemplates14_ES5.ts] +//// [unicodeExtendedEscapesInTemplates14.ts] // Shouldn't work, negatives are not allowed. var x = `\u{-DDDD}`; -//// [unicodeExtendedEscapesInTemplates14_ES5.js] +//// [unicodeExtendedEscapesInTemplates14.js] // Shouldn't work, negatives are not allowed. var x = "\\u{-DDDD}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).symbols new file mode 100644 index 0000000000000..d688a6795c54e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts] //// + +=== unicodeExtendedEscapesInTemplates14.ts === +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates14.ts, 1, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).types similarity index 63% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).types index e6821907e295c..bcb45aa6bb54e 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts] //// -=== unicodeExtendedEscapesInTemplates14_ES6.ts === +=== unicodeExtendedEscapesInTemplates14.ts === // Shouldn't work, negatives are not allowed. var x = `\u{-DDDD}`; >x : string diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).errors.txt new file mode 100644 index 0000000000000..e2204de770d81 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).errors.txt @@ -0,0 +1,9 @@ +unicodeExtendedEscapesInTemplates14.ts(2,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInTemplates14.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(target=es6).js similarity index 57% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).js index 775cf1b3fc9d1..2750abdcfa4db 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).js @@ -1,10 +1,10 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts] //// -//// [unicodeExtendedEscapesInTemplates14_ES6.ts] +//// [unicodeExtendedEscapesInTemplates14.ts] // Shouldn't work, negatives are not allowed. var x = `\u{-DDDD}`; -//// [unicodeExtendedEscapesInTemplates14_ES6.js] +//// [unicodeExtendedEscapesInTemplates14.js] // Shouldn't work, negatives are not allowed. var x = `\u{-DDDD}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).symbols new file mode 100644 index 0000000000000..d688a6795c54e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).symbols @@ -0,0 +1,7 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts] //// + +=== unicodeExtendedEscapesInTemplates14.ts === +// Shouldn't work, negatives are not allowed. +var x = `\u{-DDDD}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates14.ts, 1, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).types similarity index 63% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).types index 062f8071b6a75..bcb45aa6bb54e 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts] //// -=== unicodeExtendedEscapesInTemplates14_ES5.ts === +=== unicodeExtendedEscapesInTemplates14.ts === // Shouldn't work, negatives are not allowed. var x = `\u{-DDDD}`; >x : string diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt deleted file mode 100644 index 79ef49c604775..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -unicodeExtendedEscapesInTemplates14_ES5.ts(2,13): error TS1125: Hexadecimal digit expected. - - -==== 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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.symbols deleted file mode 100644 index 10007024a7629..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES5.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates14_ES5.ts === -// Shouldn't work, negatives are not allowed. -var x = `\u{-DDDD}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates14_ES5.ts, 1, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt deleted file mode 100644 index 6d14717fce6c0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -unicodeExtendedEscapesInTemplates14_ES6.ts(2,13): error TS1125: Hexadecimal digit expected. - - -==== 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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.symbols deleted file mode 100644 index 41af28ae0f0fc..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates14_ES6.symbols +++ /dev/null @@ -1,7 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates14_ES6.ts === -// Shouldn't work, negatives are not allowed. -var x = `\u{-DDDD}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates14_ES6.ts, 1, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).js new file mode 100644 index 0000000000000..cccca1d6ab068 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts] //// + +//// [unicodeExtendedEscapesInTemplates15.ts] +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; + + +//// [unicodeExtendedEscapesInTemplates15.js] +var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).symbols new file mode 100644 index 0000000000000..f74d3536c6c51 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts] //// + +=== unicodeExtendedEscapesInTemplates15.ts === +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates15.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).types similarity index 63% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).types index 31e757530b3cd..b34fd0dce8ef3 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts] //// -=== unicodeExtendedEscapesInTemplates15_ES6.ts === +=== unicodeExtendedEscapesInTemplates15.ts === var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; >x : string >`\u{abcd}\u{ef12}\u{3456}\u{7890}` : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).js similarity index 50% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).js index 880e8a5f66858..8add464a7aeee 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts] //// -//// [unicodeExtendedEscapesInTemplates15_ES6.ts] +//// [unicodeExtendedEscapesInTemplates15.ts] var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; -//// [unicodeExtendedEscapesInTemplates15_ES6.js] +//// [unicodeExtendedEscapesInTemplates15.js] var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).symbols new file mode 100644 index 0000000000000..f74d3536c6c51 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts] //// + +=== unicodeExtendedEscapesInTemplates15.ts === +var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates15.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).types similarity index 63% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).types index e2ca62677171f..b34fd0dce8ef3 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts] //// -=== unicodeExtendedEscapesInTemplates15_ES5.ts === +=== unicodeExtendedEscapesInTemplates15.ts === var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; >x : string >`\u{abcd}\u{ef12}\u{3456}\u{7890}` : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js deleted file mode 100644 index f16d1e187e7ca..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.symbols deleted file mode 100644 index bad5f65be6d01..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates15_ES5.ts === -var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates15_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.symbols deleted file mode 100644 index b2bf907a159c2..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates15_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates15_ES6.ts === -var x = `\u{abcd}\u{ef12}\u{3456}\u{7890}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates15_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).js new file mode 100644 index 0000000000000..3a779803f41b9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts] //// + +//// [unicodeExtendedEscapesInTemplates16.ts] +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; + + +//// [unicodeExtendedEscapesInTemplates16.js] +var x = "\uABCD\uEF12\u3456\u7890"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).symbols new file mode 100644 index 0000000000000..14e7056e36510 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts] //// + +=== unicodeExtendedEscapesInTemplates16.ts === +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates16.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).types similarity index 63% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).types index 0864019279dd0..7d1d41ef52441 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts] //// -=== unicodeExtendedEscapesInTemplates16_ES6.ts === +=== unicodeExtendedEscapesInTemplates16.ts === var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; >x : string >`\u{ABCD}\u{EF12}\u{3456}\u{7890}` : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).js similarity index 50% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).js index 939493aff2465..1b98c2cd44413 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts] //// -//// [unicodeExtendedEscapesInTemplates16_ES6.ts] +//// [unicodeExtendedEscapesInTemplates16.ts] var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; -//// [unicodeExtendedEscapesInTemplates16_ES6.js] +//// [unicodeExtendedEscapesInTemplates16.js] var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).symbols new file mode 100644 index 0000000000000..14e7056e36510 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts] //// + +=== unicodeExtendedEscapesInTemplates16.ts === +var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates16.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).types similarity index 63% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).types index 23a57fb7496c6..7d1d41ef52441 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts] //// -=== unicodeExtendedEscapesInTemplates16_ES5.ts === +=== unicodeExtendedEscapesInTemplates16.ts === var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; >x : string >`\u{ABCD}\u{EF12}\u{3456}\u{7890}` : "ꯍ㑖碐" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js deleted file mode 100644 index 41a1bf4418380..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.symbols deleted file mode 100644 index 433ea082b889d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates16_ES5.ts === -var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates16_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.symbols deleted file mode 100644 index 7c827e602f2ef..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates16_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates16_ES6.ts === -var x = `\u{ABCD}\u{EF12}\u{3456}\u{7890}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates16_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).errors.txt new file mode 100644 index 0000000000000..6366216e44ba0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).errors.txt @@ -0,0 +1,14 @@ +unicodeExtendedEscapesInTemplates17.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInTemplates17.ts(1,18): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInTemplates17.ts(1,23): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInTemplates17.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(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).js new file mode 100644 index 0000000000000..6639b2634307f --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts] //// + +//// [unicodeExtendedEscapesInTemplates17.ts] +var x = `\u{r}\u{n}\u{t}`; + + +//// [unicodeExtendedEscapesInTemplates17.js] +var x = "\\u{r}\\u{n}\\u{t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).symbols new file mode 100644 index 0000000000000..7fbcab3c447e3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts] //// + +=== unicodeExtendedEscapesInTemplates17.ts === +var x = `\u{r}\u{n}\u{t}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates17.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).types similarity index 59% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).types index 89b830bc99f02..92902a8f24742 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts] //// -=== unicodeExtendedEscapesInTemplates17_ES5.ts === +=== unicodeExtendedEscapesInTemplates17.ts === var x = `\u{r}\u{n}\u{t}`; >x : string >`\u{r}\u{n}\u{t}` : "\\u{r}\\u{n}\\u{t}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).errors.txt new file mode 100644 index 0000000000000..6366216e44ba0 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).errors.txt @@ -0,0 +1,14 @@ +unicodeExtendedEscapesInTemplates17.ts(1,13): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInTemplates17.ts(1,18): error TS1125: Hexadecimal digit expected. +unicodeExtendedEscapesInTemplates17.ts(1,23): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInTemplates17.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(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).js new file mode 100644 index 0000000000000..f6f45d9a73ade --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts] //// + +//// [unicodeExtendedEscapesInTemplates17.ts] +var x = `\u{r}\u{n}\u{t}`; + + +//// [unicodeExtendedEscapesInTemplates17.js] +var x = `\u{r}\u{n}\u{t}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).symbols new file mode 100644 index 0000000000000..7fbcab3c447e3 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts] //// + +=== unicodeExtendedEscapesInTemplates17.ts === +var x = `\u{r}\u{n}\u{t}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates17.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).types similarity index 59% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).types index 23107ab92cb37..92902a8f24742 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts] //// -=== unicodeExtendedEscapesInTemplates17_ES6.ts === +=== unicodeExtendedEscapesInTemplates17.ts === var x = `\u{r}\u{n}\u{t}`; >x : string >`\u{r}\u{n}\u{t}` : "\\u{r}\\u{n}\\u{t}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt deleted file mode 100644 index 1f7d8321b7517..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -unicodeExtendedEscapesInTemplates17_ES5.ts(1,13): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInTemplates17_ES5.ts(1,18): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInTemplates17_ES5.ts(1,23): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 17a55e8b256f1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates17_ES5.ts] -var x = `\u{r}\u{n}\u{t}`; - - -//// [unicodeExtendedEscapesInTemplates17_ES5.js] -var x = "\\u{r}\\u{n}\\u{t}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.symbols deleted file mode 100644 index 11afa35c45622..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates17_ES5.ts === -var x = `\u{r}\u{n}\u{t}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates17_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt deleted file mode 100644 index 4de4e8fd92bdf..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -unicodeExtendedEscapesInTemplates17_ES6.ts(1,13): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInTemplates17_ES6.ts(1,18): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInTemplates17_ES6.ts(1,23): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index bcc71488eb7d9..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts] //// - -//// [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/unicodeExtendedEscapesInTemplates17_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.symbols deleted file mode 100644 index 22766179f09c0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates17_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates17_ES6.ts === -var x = `\u{r}\u{n}\u{t}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates17_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).js new file mode 100644 index 0000000000000..0eda81d11e76e --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts] //// + +//// [unicodeExtendedEscapesInTemplates18.ts] +var x = `\u{65}\u{65}`; + + +//// [unicodeExtendedEscapesInTemplates18.js] +var x = "ee"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).symbols new file mode 100644 index 0000000000000..9a492e91447a1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts] //// + +=== unicodeExtendedEscapesInTemplates18.ts === +var x = `\u{65}\u{65}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates18.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).types similarity index 55% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).types index 7c6356f7a13e5..cf1aae9259b27 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts] //// -=== unicodeExtendedEscapesInTemplates18_ES5.ts === +=== unicodeExtendedEscapesInTemplates18.ts === var x = `\u{65}\u{65}`; >x : string >`\u{65}\u{65}` : "ee" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).js new file mode 100644 index 0000000000000..24a9ed4205d47 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts] //// + +//// [unicodeExtendedEscapesInTemplates18.ts] +var x = `\u{65}\u{65}`; + + +//// [unicodeExtendedEscapesInTemplates18.js] +var x = `\u{65}\u{65}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).symbols new file mode 100644 index 0000000000000..9a492e91447a1 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts] //// + +=== unicodeExtendedEscapesInTemplates18.ts === +var x = `\u{65}\u{65}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates18.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).types similarity index 55% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).types index ad11e056b14cd..cf1aae9259b27 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts] //// -=== unicodeExtendedEscapesInTemplates18_ES6.ts === +=== unicodeExtendedEscapesInTemplates18.ts === var x = `\u{65}\u{65}`; >x : string >`\u{65}\u{65}` : "ee" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js deleted file mode 100644 index 5439058ac046f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates18_ES5.ts] -var x = `\u{65}\u{65}`; - - -//// [unicodeExtendedEscapesInTemplates18_ES5.js] -var x = "ee"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.symbols deleted file mode 100644 index 44a54122bf74f..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates18_ES5.ts === -var x = `\u{65}\u{65}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates18_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js deleted file mode 100644 index 7da894f50307c..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts] //// - -//// [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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.symbols deleted file mode 100644 index 2f7eff75f349b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates18_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates18_ES6.ts === -var x = `\u{65}\u{65}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates18_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).errors.txt new file mode 100644 index 0000000000000..43da8284ddeb9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInTemplates19.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInTemplates19.ts (1 errors) ==== + var x = `\u{}`; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).js new file mode 100644 index 0000000000000..bb7edd4d8d63a --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts] //// + +//// [unicodeExtendedEscapesInTemplates19.ts] +var x = `\u{}`; + + +//// [unicodeExtendedEscapesInTemplates19.js] +var x = "\\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).symbols new file mode 100644 index 0000000000000..295ff57c49e10 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts] //// + +=== unicodeExtendedEscapesInTemplates19.ts === +var x = `\u{}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates19.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).types similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).types index e991daf74d79a..67193259506b1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts] //// -=== unicodeExtendedEscapesInTemplates19_ES5.ts === +=== unicodeExtendedEscapesInTemplates19.ts === var x = `\u{}`; >x : string >`\u{}` : "\\u{}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).errors.txt new file mode 100644 index 0000000000000..43da8284ddeb9 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).errors.txt @@ -0,0 +1,8 @@ +unicodeExtendedEscapesInTemplates19.ts(1,13): error TS1125: Hexadecimal digit expected. + + +==== unicodeExtendedEscapesInTemplates19.ts (1 errors) ==== + var x = `\u{}`; + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).js new file mode 100644 index 0000000000000..d1afc5e701113 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).js @@ -0,0 +1,8 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts] //// + +//// [unicodeExtendedEscapesInTemplates19.ts] +var x = `\u{}`; + + +//// [unicodeExtendedEscapesInTemplates19.js] +var x = `\u{}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).symbols new file mode 100644 index 0000000000000..295ff57c49e10 --- /dev/null +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts] //// + +=== unicodeExtendedEscapesInTemplates19.ts === +var x = `\u{}`; +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates19.ts, 0, 3)) + diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).types similarity index 52% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).types index d951c00fc8b4c..67193259506b1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts] //// -=== unicodeExtendedEscapesInTemplates19_ES6.ts === +=== unicodeExtendedEscapesInTemplates19.ts === var x = `\u{}`; >x : string >`\u{}` : "\\u{}" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt deleted file mode 100644 index 45834a5c471da..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInTemplates19_ES5.ts(1,13): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 171c8fe224557..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts] //// - -//// [unicodeExtendedEscapesInTemplates19_ES5.ts] -var x = `\u{}`; - - -//// [unicodeExtendedEscapesInTemplates19_ES5.js] -var x = "\\u{}"; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.symbols deleted file mode 100644 index a6f9b6b0047be..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES5.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts] //// - -=== unicodeExtendedEscapesInTemplates19_ES5.ts === -var x = `\u{}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates19_ES5.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt deleted file mode 100644 index 3e9fe559f2513..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -unicodeExtendedEscapesInTemplates19_ES6.ts(1,13): error TS1125: Hexadecimal digit expected. - - -==== 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 deleted file mode 100644 index 5e2275d6e6b31..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.js +++ /dev/null @@ -1,8 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts] //// - -//// [unicodeExtendedEscapesInTemplates19_ES6.ts] -var x = `\u{}`; - - -//// [unicodeExtendedEscapesInTemplates19_ES6.js] -var x = `\u{}`; diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.symbols deleted file mode 100644 index 7702e6678417a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates19_ES6.symbols +++ /dev/null @@ -1,6 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts] //// - -=== unicodeExtendedEscapesInTemplates19_ES6.ts === -var x = `\u{}`; ->x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates19_ES6.ts, 0, 3)) - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).js similarity index 59% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).js index 8c3c000f0fbec..1d959a303f797 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts] //// -//// [unicodeExtendedEscapesInTemplates20_ES5.ts] +//// [unicodeExtendedEscapesInTemplates20.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] +//// [unicodeExtendedEscapesInTemplates20.js] var x = "Hello".concat(" ", "world"); diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).symbols similarity index 50% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).symbols index 5dc5b0d29df95..5c78b759f0e60 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).symbols @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts] //// -=== unicodeExtendedEscapesInTemplates20_ES5.ts === +=== unicodeExtendedEscapesInTemplates20.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates20_ES5.ts, 0, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates20.ts, 0, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).types similarity index 77% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).types index fd593263a9614..7a3b51a7812f1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es5).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts] //// -=== unicodeExtendedEscapesInTemplates20_ES6.ts === +=== unicodeExtendedEscapesInTemplates20.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 >`\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}` : "Hello world" diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.js b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).js similarity index 65% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.js rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).js index 1e0c92ad7df4d..6cc5cfa286880 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.js +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).js @@ -1,8 +1,8 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts] //// -//// [unicodeExtendedEscapesInTemplates20_ES6.ts] +//// [unicodeExtendedEscapesInTemplates20.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] +//// [unicodeExtendedEscapesInTemplates20.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.symbols b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).symbols similarity index 50% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.symbols rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).symbols index 9bb270e33ee44..5c78b759f0e60 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES6.symbols +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).symbols @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts] //// -=== unicodeExtendedEscapesInTemplates20_ES6.ts === +=== unicodeExtendedEscapesInTemplates20.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 : Symbol(x, Decl(unicodeExtendedEscapesInTemplates20_ES6.ts, 0, 3)) +>x : Symbol(x, Decl(unicodeExtendedEscapesInTemplates20.ts, 0, 3)) diff --git a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).types similarity index 77% rename from tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.types rename to tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).types index 6e8588547fbef..7a3b51a7812f1 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInTemplates20_ES5.types +++ b/tests/baselines/reference/unicodeExtendedEscapesInTemplates20(target=es6).types @@ -1,6 +1,6 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts] //// +//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts] //// -=== unicodeExtendedEscapesInTemplates20_ES5.ts === +=== unicodeExtendedEscapesInTemplates20.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 >`\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}` : "Hello world" diff --git a/tests/baselines/reference/useRegexpGroups.js b/tests/baselines/reference/useRegexpGroups.js index 596c8a0000b80..9f4a7b27270fb 100644 --- a/tests/baselines/reference/useRegexpGroups.js +++ b/tests/baselines/reference/useRegexpGroups.js @@ -18,13 +18,13 @@ let day2 = result[3]; let foo = "foo".match(/(?foo)/)!.groups.foo; //// [useRegexpGroups.js] -var re = /(?\d{4})-(?\d{2})-(?\d{2})/u; -var result = re.exec("2015-01-02"); -var date = result[0]; -var year1 = result.groups.year; -var year2 = result[1]; -var month1 = result.groups.month; -var month2 = result[2]; -var day1 = result.groups.day; -var day2 = result[3]; -var foo = "foo".match(/(?foo)/).groups.foo; +let re = /(?\d{4})-(?\d{2})-(?\d{2})/u; +let result = re.exec("2015-01-02"); +let date = result[0]; +let year1 = result.groups.year; +let year2 = result[1]; +let month1 = result.groups.month; +let month2 = result[2]; +let day1 = result.groups.day; +let day2 = result[3]; +let foo = "foo".match(/(?foo)/).groups.foo; diff --git a/tests/cases/compiler/regularExpressionScanning.ts b/tests/cases/compiler/regularExpressionScanning.ts new file mode 100644 index 0000000000000..d8620523362ec --- /dev/null +++ b/tests/cases/compiler/regularExpressionScanning.ts @@ -0,0 +1,45 @@ +// @target: es3,es5,es2015,esnext + +const regexes: RegExp[] = [ + // Flags + /foo/visualstudiocode, + // Pattern modifiers + /(?med-ium:bar)/, + // Capture groups + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, + /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, + /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, + /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, + // Quantifiers + /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, + // Character classes + /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, + /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, + /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, + /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, + // Character escapes + /\c[\c0\ca\cQ\c\C]\c1\C/, + /\c[\c0\ca\cQ\c\C]\c1\C/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, + /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, + // Unicode sets notation + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, + /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, + /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, + /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, + /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, + /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, + /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, + /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, + /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, + /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, + /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, +]; diff --git a/tests/cases/conformance/es2018/useRegexpGroups.ts b/tests/cases/conformance/es2018/useRegexpGroups.ts index 65d3be9fbfd39..876f8ced57801 100644 --- a/tests/cases/conformance/es2018/useRegexpGroups.ts +++ b/tests/cases/conformance/es2018/useRegexpGroups.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es2018 // @lib: es6,es2018 let re = /(?\d{4})-(?\d{2})-(?\d{2})/u; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts new file mode 100644 index 0000000000000..9798f09d9aaa7 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{0}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts deleted file mode 100644 index eb02cf47018db..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index c287f529b0f0c..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{0}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts new file mode 100644 index 0000000000000..857f6fbf13e88 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{00}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts deleted file mode 100644 index 7885e4449acfa..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 45affc888b388..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{00}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts new file mode 100644 index 0000000000000..d9616b5854210 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{0000}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts deleted file mode 100644 index 22d2a1588c72d..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index a66cfd534c716..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{0000}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts new file mode 100644 index 0000000000000..83ee4cfbd886c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{00000000}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts deleted file mode 100644 index 5359adbf8ccf8..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 1b897565ef42e..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 60% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts index 2bee2de87a0ba..87b1fcb6ef9fa 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,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; +var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts deleted file mode 100644 index 77c98f28853eb..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 65% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts index 1af6018179845..9bd152ed38f69 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06.ts @@ -1,5 +1,5 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{10FFFF}/g; +var x = /\u{10FFFF}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts deleted file mode 100644 index 9f77ab0646d0c..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts +++ /dev/null @@ -1,5 +0,0 @@ -// @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.ts similarity index 65% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts index 4a0b3d6bda61e..6e35c6b6667c5 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07.ts @@ -1,5 +1,5 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. -var x = /\u{110000}/g; +var x = /\u{110000}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts deleted file mode 100644 index 0d1a3b57dd285..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts +++ /dev/null @@ -1,5 +0,0 @@ -// @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.ts similarity index 68% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts index b8c863126533d..712c250fc9cc9 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08.ts @@ -1,6 +1,6 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (FFFF == 65535) -var x = /\u{FFFF}/g; +var x = /\u{FFFF}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts deleted file mode 100644 index 94ad08e6edfff..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @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/unicodeExtendedEscapesInStrings09_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts similarity index 68% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts index 2a756d9aaa2c3..10366eac60da2 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES6.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09.ts @@ -1,6 +1,6 @@ -// @target: es6 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. // (10000 == 65536) -var x = "\u{10000}"; +var x = /\u{10000}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts deleted file mode 100644 index cc92efd69161d..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @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 deleted file mode 100644 index a1f2f2a74bbce..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @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.ts similarity index 81% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts index 921f17b009cd5..337af0aaf89be 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10.ts @@ -1,7 +1,7 @@ -// @target: es5 +// @target: es5,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; +var x = /\u{D800}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts deleted file mode 100644 index ade4d57ae0954..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @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.ts similarity index 81% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts index 136bb692826e9..1f0e948d9859d 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11.ts @@ -1,7 +1,7 @@ -// @target: es5 +// @target: es5,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; +var x = /\u{DC00}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts deleted file mode 100644 index ecfd43a36b29e..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES6.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @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.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts new file mode 100644 index 0000000000000..7361a6dee269f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{FFFFFFFF}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts deleted file mode 100644 index 43b8ac377594e..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index c01c8f41d1e69..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{FFFFFFFF}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts new file mode 100644 index 0000000000000..997c47458d54e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{DDDDD}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts deleted file mode 100644 index 535ae033765e7..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 812e90be12054..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{DDDDD}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts new file mode 100644 index 0000000000000..c5aa73dc30031 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14.ts @@ -0,0 +1,4 @@ +// @target: es5,es6 + +// Shouldn't work, negatives are not allowed. +var x = /\u{-DDDD}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts deleted file mode 100644 index 0594590af5e9d..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts +++ /dev/null @@ -1,4 +0,0 @@ -// @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 deleted file mode 100644 index a48e688b2094f..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts +++ /dev/null @@ -1,4 +0,0 @@ -// @target: es6 - -// Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts new file mode 100644 index 0000000000000..e915a73c6ae6e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts deleted file mode 100644 index b616bf1b24d99..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index b586d3098069a..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts new file mode 100644 index 0000000000000..829daa1679884 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts deleted file mode 100644 index cd246e7413713..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 4a22da6847ea0..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts new file mode 100644 index 0000000000000..946c3f9985c26 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{r}\u{n}\u{t}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts deleted file mode 100644 index 14cb600474bff..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 5231cf6be36be..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{r}\u{n}\u{t}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts new file mode 100644 index 0000000000000..b54e9443a4166 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{65}\u{65}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts deleted file mode 100644 index 38fe89ac3b240..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index f3977bdd9c7f3..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{65}\u{65}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts new file mode 100644 index 0000000000000..b63513de743e5 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = /\u{}/gu; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts deleted file mode 100644 index 0bc5643a43c38..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 2a34f16ceefa6..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = /\u{}/g; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts new file mode 100644 index 0000000000000..85baca8ddbb30 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{0}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts deleted file mode 100644 index 45ee21b10995d..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index e6406ac6a7280..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings01_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{0}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts new file mode 100644 index 0000000000000..dc5fb128158ab --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{00}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts deleted file mode 100644 index 2e32741b6ee19..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index c98efca58a3ff..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings02_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{00}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts new file mode 100644 index 0000000000000..6a892795ec52e --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{0000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts deleted file mode 100644 index 928ed3a665281..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index b67eedd889624..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings03_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{0000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts new file mode 100644 index 0000000000000..9a19d3dcd1197 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{00000000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts deleted file mode 100644 index 2bac49c8aeb43..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 2d53d9883b42c..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings04_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{00000000}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts similarity index 75% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts index f006c0bee8909..db06d11160b3a 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,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/unicodeExtendedEscapesInStrings05_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts deleted file mode 100644 index 890e60c770ec9..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings05_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 80% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts index b456e35a76bf6..b46c7b92fac86 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts deleted file mode 100644 index 33a7e72ef5315..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings06_ES6.ts +++ /dev/null @@ -1,5 +0,0 @@ -// @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.ts similarity index 80% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts index 717212da028f3..628fb2ce7be40 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts deleted file mode 100644 index aa98d80a70543..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts +++ /dev/null @@ -1,5 +0,0 @@ -// @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.ts similarity index 82% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts index eba3f3b085b22..0f38ce53499ce 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts deleted file mode 100644 index 08e217bc8ad96..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings08_ES6.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @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.ts similarity index 82% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts index 5b3c175be0e0a..6de9926d3cb1b 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings09.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts similarity index 89% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts index 9f5bafe85f4f7..4af8a4011dd72 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts deleted file mode 100644 index f4198c989b5f4..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings10_ES6.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @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.ts similarity index 89% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts index ff2af662767c2..2f7a40b74bb6b 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts deleted file mode 100644 index 4a99f8ab9ef6f..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings11_ES6.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @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.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts new file mode 100644 index 0000000000000..9c9f7eaead496 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{FFFFFFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts deleted file mode 100644 index f8ec9e605f669..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index c1b4119fdf375..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{FFFFFFFF}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts new file mode 100644 index 0000000000000..f92347d62a6a4 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{DDDDD}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts deleted file mode 100644 index d1d8c6d3eee30..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 9d359562d40bc..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings13_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{DDDDD}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts similarity index 71% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts index b122578014c9d..422d2dd9e3d5b 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // 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 deleted file mode 100644 index 9b8786417db17..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts +++ /dev/null @@ -1,4 +0,0 @@ -// @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.ts similarity index 63% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts index 4418e2d69e2cb..fe13277e4fb20 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 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 deleted file mode 100644 index eba0d1969cabd..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings15_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 63% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts index 4f34e96a1a34f..301b4e01e50d0 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 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 deleted file mode 100644 index 9cb17be1132a1..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings16_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 51% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts index 047a74240d48c..ad38f2a5c5d71 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 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 deleted file mode 100644 index 6adcc7ff543d3..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{r}\u{n}\u{t}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts new file mode 100644 index 0000000000000..1f78145f455b1 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{65}\u{65}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts deleted file mode 100644 index 1ce7990ca67c9..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index b6f8025a66388..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings18_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{65}\u{65}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts new file mode 100644 index 0000000000000..bd010edca2f41 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts deleted file mode 100644 index 84c23026e525f..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 6cc35d178bcb3..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts new file mode 100644 index 0000000000000..06811bf08e8ba --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts deleted file mode 100644 index 0044877f223f2..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 26fb00fa4058e..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts new file mode 100644 index 0000000000000..dbb55bcb29834 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = "\u{67"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts deleted file mode 100644 index 1956008e439c2..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 318ca43a93a3d..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{67"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts similarity index 53% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts index fa2521ef6d787..2a85b907b4531 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 var x = "\u{00000000000067"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts deleted file mode 100644 index 11d5f011763dc..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{00000000000067"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts similarity index 54% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts index d78a62132a60a..5c87333c6f161 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 var x = "\u{00000000000067}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts deleted file mode 100644 index f47e18a60e909..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings23_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{00000000000067}"; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts similarity index 51% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts index 44933c03864db..425a912d44871 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 var x = "\u{00000000000067 diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts deleted file mode 100644 index dd89512753cf5..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{00000000000067 diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts similarity index 52% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts index c2e1b8c4ee531..2207cdf6a1a0e 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 var x = "\u{00000000000067} diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts deleted file mode 100644 index 21915aafccab7..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = "\u{00000000000067} diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts new file mode 100644 index 0000000000000..fa9bf4745fa5f --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{0}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts deleted file mode 100644 index a3f5ca04e9912..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index c70a5406d19e5..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates01_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{0}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts new file mode 100644 index 0000000000000..77440f21e2de6 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{00}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts deleted file mode 100644 index 408913fb44408..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 3337977619c80..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates02_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{00}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts new file mode 100644 index 0000000000000..8b51b5d479621 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{0000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts deleted file mode 100644 index 006d51b5618c2..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 88605749bb6f1..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates03_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{0000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts new file mode 100644 index 0000000000000..cc4fabe913bde --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{00000000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts deleted file mode 100644 index aa24d50d8f3f5..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index b9cd247ebf349..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates04_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{00000000}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts similarity index 75% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts index fce22dd9fbd4b..fade452ef2826 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,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/unicodeExtendedEscapesInTemplates05_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts deleted file mode 100644 index 02c9596ebfade..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates05_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 80% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts index f64e434813575..135485e70ef17 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts deleted file mode 100644 index fbd9f33ed5a8d..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates06_ES6.ts +++ /dev/null @@ -1,5 +0,0 @@ -// @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.ts similarity index 80% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts index f5ee893a5da82..3dcc352195190 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts deleted file mode 100644 index 9a7d2d08ba72b..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts +++ /dev/null @@ -1,5 +0,0 @@ -// @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.ts similarity index 82% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts index 8196cc5425782..6f55b1d630d62 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts deleted file mode 100644 index cbecb8db2b870..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates08_ES6.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @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.ts similarity index 82% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts index e298707289351..b8f023a6c12cb 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. If cp ≤ 65535, return cp. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts deleted file mode 100644 index e1fbd90adbac1..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates09_ES6.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @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.ts similarity index 89% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts index cdaaacc605d0c..7cd54d87aa491 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts deleted file mode 100644 index 3e803853fecf6..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates10_ES6.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @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.ts similarity index 89% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts index 8cc530143f0d4..8af8993e7cf2e 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) // 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts deleted file mode 100644 index bdaf39469d46b..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates11_ES6.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @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.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts new file mode 100644 index 0000000000000..cd1024690bcee --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{FFFFFFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts deleted file mode 100644 index c6208320d6ea3..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index de05ff15bc68f..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{FFFFFFFF}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts new file mode 100644 index 0000000000000..9831be074dd6c --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{DDDDD}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts deleted file mode 100644 index af7cf18db1543..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index cf4dc13951eae..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates13_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{DDDDD}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts similarity index 71% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts index dbdbfc7167359..a7e8b41c8bc8c 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14.ts @@ -1,4 +1,4 @@ -// @target: es5 +// @target: es5,es6 // 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 deleted file mode 100644 index ede4fa3b16d21..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts +++ /dev/null @@ -1,4 +0,0 @@ -// @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.ts similarity index 63% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts index f338a79458ced..d2d66f0a2cc0f 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 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 deleted file mode 100644 index 260f3efa00a0c..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates15_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 63% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts index c1cddec50d491..d7c1cdd85184e 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 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 deleted file mode 100644 index c7dd77e3cb018..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates16_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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.ts similarity index 51% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts index 9b1a60569db44..5f4e45954bf70 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,es6 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 deleted file mode 100644 index 47585de2acbe9..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{r}\u{n}\u{t}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts new file mode 100644 index 0000000000000..9df5bd6a37518 --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{65}\u{65}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts deleted file mode 100644 index 1babc2a3035e4..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 8ef16ef38bcb0..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates18_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{65}\u{65}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts new file mode 100644 index 0000000000000..33958fef226ff --- /dev/null +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19.ts @@ -0,0 +1,3 @@ +// @target: es5,es6 + +var x = `\u{}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts deleted file mode 100644 index cf55400a03388..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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 deleted file mode 100644 index 957a0c68105ae..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @target: es6 - -var x = `\u{}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts similarity index 80% rename from tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts rename to tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts index 1a258ffbf2076..d5260f9289f8d 100644 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES5.ts +++ b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20.ts @@ -1,3 +1,3 @@ -// @target: es5 +// @target: es5,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}`; diff --git a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts b/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts deleted file mode 100644 index 55d87dbfed74a..0000000000000 --- a/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates20_ES6.ts +++ /dev/null @@ -1,3 +0,0 @@ -// @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}`; diff --git a/tests/cases/conformance/parser/ecmascript2021/numericSeparators/parser.numericSeparators.unicodeEscape.ts b/tests/cases/conformance/parser/ecmascript2021/numericSeparators/parser.numericSeparators.unicodeEscape.ts index ae143939aa76f..cba59547f4be4 100644 --- a/tests/cases/conformance/parser/ecmascript2021/numericSeparators/parser.numericSeparators.unicodeEscape.ts +++ b/tests/cases/conformance/parser/ecmascript2021/numericSeparators/parser.numericSeparators.unicodeEscape.ts @@ -1,3 +1,5 @@ +// @target: es2021 + // @filename: 1.ts "\u{10_ffff}" From fefcf29bdc9ce403c357c107e286cad38b357ccc Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Fri, 1 Sep 2023 16:25:53 +0800 Subject: [PATCH 02/10] Add More Test Cases from test262 --- .../baselines/reference/7.8.3-1gs.errors.txt | 21 +++ tests/baselines/reference/7.8.3-1gs.js | 31 ++++ tests/baselines/reference/7.8.3-1gs.symbols | 19 +++ tests/baselines/reference/7.8.3-1gs.types | 20 +++ .../baselines/reference/7.8.3-2gs.errors.txt | 25 +++ tests/baselines/reference/7.8.3-2gs.js | 39 +++++ tests/baselines/reference/7.8.3-2gs.symbols | 27 ++++ tests/baselines/reference/7.8.3-2gs.types | 31 ++++ .../reference/S7.8.3_A6.1_T1.errors.txt | 22 +++ tests/baselines/reference/S7.8.3_A6.1_T1.js | 33 ++++ .../reference/S7.8.3_A6.1_T1.symbols | 20 +++ .../baselines/reference/S7.8.3_A6.1_T1.types | 20 +++ .../reference/S7.8.3_A6.1_T2.errors.txt | 22 +++ tests/baselines/reference/S7.8.3_A6.1_T2.js | 33 ++++ .../reference/S7.8.3_A6.1_T2.symbols | 20 +++ .../baselines/reference/S7.8.3_A6.1_T2.types | 20 +++ .../reference/S7.8.3_A6.2_T1.errors.txt | 25 +++ tests/baselines/reference/S7.8.3_A6.2_T1.js | 34 ++++ .../reference/S7.8.3_A6.2_T1.symbols | 20 +++ .../baselines/reference/S7.8.3_A6.2_T1.types | 21 +++ .../reference/S7.8.3_A6.2_T2.errors.txt | 25 +++ tests/baselines/reference/S7.8.3_A6.2_T2.js | 34 ++++ .../reference/S7.8.3_A6.2_T2.symbols | 20 +++ .../baselines/reference/S7.8.3_A6.2_T2.types | 21 +++ .../reference/S7.8.4_A1.1_T1.errors.txt | 27 ++++ tests/baselines/reference/S7.8.4_A1.1_T1.js | 38 +++++ .../reference/S7.8.4_A1.1_T1.symbols | 22 +++ .../baselines/reference/S7.8.4_A1.1_T1.types | 23 +++ .../reference/S7.8.4_A1.1_T2.errors.txt | 28 ++++ tests/baselines/reference/S7.8.4_A1.1_T2.js | 39 +++++ .../reference/S7.8.4_A1.1_T2.symbols | 23 +++ .../baselines/reference/S7.8.4_A1.1_T2.types | 25 +++ .../reference/S7.8.4_A1.2_T1.errors.txt | 27 ++++ tests/baselines/reference/S7.8.4_A1.2_T1.js | 38 +++++ .../reference/S7.8.4_A1.2_T1.symbols | 22 +++ .../baselines/reference/S7.8.4_A1.2_T1.types | 23 +++ .../reference/S7.8.4_A1.2_T2.errors.txt | 28 ++++ tests/baselines/reference/S7.8.4_A1.2_T2.js | 39 +++++ .../reference/S7.8.4_A1.2_T2.symbols | 23 +++ .../baselines/reference/S7.8.4_A1.2_T2.types | 25 +++ .../reference/S7.8.4_A3.1_T1.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A3.1_T1.js | 33 ++++ .../reference/S7.8.4_A3.1_T1.symbols | 20 +++ .../baselines/reference/S7.8.4_A3.1_T1.types | 20 +++ .../reference/S7.8.4_A3.1_T2.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A3.1_T2.js | 33 ++++ .../reference/S7.8.4_A3.1_T2.symbols | 20 +++ .../baselines/reference/S7.8.4_A3.1_T2.types | 20 +++ .../reference/S7.8.4_A3.2_T1.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A3.2_T1.js | 33 ++++ .../reference/S7.8.4_A3.2_T1.symbols | 20 +++ .../baselines/reference/S7.8.4_A3.2_T1.types | 20 +++ .../reference/S7.8.4_A3.2_T2.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A3.2_T2.js | 33 ++++ .../reference/S7.8.4_A3.2_T2.symbols | 20 +++ .../baselines/reference/S7.8.4_A3.2_T2.types | 20 +++ .../reference/S7.8.4_A4.3_T1.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A4.3_T1.js | 33 ++++ .../reference/S7.8.4_A4.3_T1.symbols | 20 +++ .../baselines/reference/S7.8.4_A4.3_T1.types | 20 +++ .../reference/S7.8.4_A4.3_T2.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A4.3_T2.js | 33 ++++ .../reference/S7.8.4_A4.3_T2.symbols | 20 +++ .../baselines/reference/S7.8.4_A4.3_T2.types | 20 +++ .../reference/S7.8.4_A7.1_T4.errors.txt | 24 +++ tests/baselines/reference/S7.8.4_A7.1_T4.js | 37 +++++ .../reference/S7.8.4_A7.1_T4.symbols | 22 +++ .../baselines/reference/S7.8.4_A7.1_T4.types | 22 +++ .../reference/S7.8.4_A7.2_T1.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A7.2_T1.js | 33 ++++ .../reference/S7.8.4_A7.2_T1.symbols | 20 +++ .../baselines/reference/S7.8.4_A7.2_T1.types | 20 +++ .../reference/S7.8.4_A7.2_T2.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A7.2_T2.js | 33 ++++ .../reference/S7.8.4_A7.2_T2.symbols | 20 +++ .../baselines/reference/S7.8.4_A7.2_T2.types | 20 +++ .../reference/S7.8.4_A7.2_T3.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A7.2_T3.js | 33 ++++ .../reference/S7.8.4_A7.2_T3.symbols | 20 +++ .../baselines/reference/S7.8.4_A7.2_T3.types | 20 +++ .../reference/S7.8.4_A7.2_T4.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A7.2_T4.js | 33 ++++ .../reference/S7.8.4_A7.2_T4.symbols | 20 +++ .../baselines/reference/S7.8.4_A7.2_T4.types | 20 +++ .../reference/S7.8.4_A7.2_T5.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A7.2_T5.js | 33 ++++ .../reference/S7.8.4_A7.2_T5.symbols | 20 +++ .../baselines/reference/S7.8.4_A7.2_T5.types | 20 +++ .../reference/S7.8.4_A7.2_T6.errors.txt | 22 +++ tests/baselines/reference/S7.8.4_A7.2_T6.js | 33 ++++ .../reference/S7.8.4_A7.2_T6.symbols | 20 +++ .../baselines/reference/S7.8.4_A7.2_T6.types | 20 +++ .../reference/S7.8.5_A1.2_T1.errors.txt | 29 ++++ tests/baselines/reference/S7.8.5_A1.2_T1.js | 48 ++++++ .../reference/S7.8.5_A1.2_T1.symbols | 27 ++++ .../baselines/reference/S7.8.5_A1.2_T1.types | 27 ++++ .../reference/S7.8.5_A1.2_T2.errors.txt | 32 ++++ tests/baselines/reference/S7.8.5_A1.2_T2.js | 53 +++++++ .../reference/S7.8.5_A1.2_T2.symbols | 30 ++++ .../baselines/reference/S7.8.5_A1.2_T2.types | 30 ++++ .../reference/S7.8.5_A1.2_T3.errors.txt | 36 +++++ tests/baselines/reference/S7.8.5_A1.2_T3.js | 35 +++++ .../reference/S7.8.5_A1.2_T3.symbols | 31 ++++ .../baselines/reference/S7.8.5_A1.2_T3.types | 31 ++++ .../reference/S7.8.5_A1.2_T4.errors.txt | 36 +++++ tests/baselines/reference/S7.8.5_A1.2_T4.js | 35 +++++ .../reference/S7.8.5_A1.2_T4.symbols | 31 ++++ .../baselines/reference/S7.8.5_A1.2_T4.types | 31 ++++ .../reference/S7.8.5_A1.3_T1.errors.txt | 42 +++++ tests/baselines/reference/S7.8.5_A1.3_T1.js | 62 ++++++++ .../reference/S7.8.5_A1.3_T1.symbols | 34 ++++ .../baselines/reference/S7.8.5_A1.3_T1.types | 38 +++++ .../reference/S7.8.5_A1.3_T3.errors.txt | 42 +++++ tests/baselines/reference/S7.8.5_A1.3_T3.js | 62 ++++++++ .../reference/S7.8.5_A1.3_T3.symbols | 34 ++++ .../baselines/reference/S7.8.5_A1.3_T3.types | 38 +++++ .../reference/S7.8.5_A1.5_T1.errors.txt | 36 +++++ tests/baselines/reference/S7.8.5_A1.5_T1.js | 50 ++++++ .../reference/S7.8.5_A1.5_T1.symbols | 28 ++++ .../baselines/reference/S7.8.5_A1.5_T1.types | 32 ++++ .../reference/S7.8.5_A1.5_T3.errors.txt | 35 +++++ tests/baselines/reference/S7.8.5_A1.5_T3.js | 48 ++++++ .../reference/S7.8.5_A1.5_T3.symbols | 27 ++++ .../baselines/reference/S7.8.5_A1.5_T3.types | 31 ++++ .../reference/S7.8.5_A2.2_T1.errors.txt | 29 ++++ tests/baselines/reference/S7.8.5_A2.2_T1.js | 47 ++++++ .../reference/S7.8.5_A2.2_T1.symbols | 27 ++++ .../baselines/reference/S7.8.5_A2.2_T1.types | 27 ++++ .../reference/S7.8.5_A2.2_T2.errors.txt | 32 ++++ tests/baselines/reference/S7.8.5_A2.2_T2.js | 47 ++++++ .../reference/S7.8.5_A2.2_T2.symbols | 27 ++++ .../baselines/reference/S7.8.5_A2.2_T2.types | 31 ++++ .../reference/S7.8.5_A2.3_T1.errors.txt | 45 ++++++ tests/baselines/reference/S7.8.5_A2.3_T1.js | 68 ++++++++ .../reference/S7.8.5_A2.3_T1.symbols | 37 +++++ .../baselines/reference/S7.8.5_A2.3_T1.types | 41 +++++ .../reference/S7.8.5_A2.3_T3.errors.txt | 46 ++++++ tests/baselines/reference/S7.8.5_A2.3_T3.js | 70 +++++++++ .../reference/S7.8.5_A2.3_T3.symbols | 38 +++++ .../baselines/reference/S7.8.5_A2.3_T3.types | 42 +++++ .../reference/S7.8.5_A2.5_T1.errors.txt | 44 ++++++ tests/baselines/reference/S7.8.5_A2.5_T1.js | 60 +++++++ .../reference/S7.8.5_A2.5_T1.symbols | 33 ++++ .../baselines/reference/S7.8.5_A2.5_T1.types | 37 +++++ .../reference/S7.8.5_A2.5_T3.errors.txt | 44 ++++++ tests/baselines/reference/S7.8.5_A2.5_T3.js | 60 +++++++ .../reference/S7.8.5_A2.5_T3.symbols | 33 ++++ .../baselines/reference/S7.8.5_A2.5_T3.types | 37 +++++ .../bigint-binary-invalid-digit.errors.txt | 32 ++++ .../reference/bigint-binary-invalid-digit.js | 54 +++++++ .../bigint-binary-invalid-digit.symbols | 30 ++++ .../bigint-binary-invalid-digit.types | 31 ++++ ...rator-literal-bil-bd-nsl-bd-err.errors.txt | 50 ++++++ ...ric-separator-literal-bil-bd-nsl-bd-err.js | 89 +++++++++++ ...eparator-literal-bil-bd-nsl-bd-err.symbols | 48 ++++++ ...-separator-literal-bil-bd-nsl-bd-err.types | 48 ++++++ ...r-literal-bil-nsl-bd-dunder-err.errors.txt | 50 ++++++ ...separator-literal-bil-nsl-bd-dunder-err.js | 89 +++++++++++ ...ator-literal-bil-nsl-bd-dunder-err.symbols | 48 ++++++ ...arator-literal-bil-nsl-bd-dunder-err.types | 48 ++++++ ...eparator-literal-bil-nsl-bd-err.errors.txt | 49 ++++++ ...umeric-separator-literal-bil-nsl-bd-err.js | 87 +++++++++++ ...c-separator-literal-bil-nsl-bd-err.symbols | 47 ++++++ ...ric-separator-literal-bil-nsl-bd-err.types | 47 ++++++ ...r-literal-dd-nsl-dds-dunder-err.errors.txt | 42 +++++ ...separator-literal-dd-nsl-dds-dunder-err.js | 73 +++++++++ ...ator-literal-dd-nsl-dds-dunder-err.symbols | 40 +++++ ...arator-literal-dd-nsl-dds-dunder-err.types | 40 +++++ ...ic-separator-literal-dd-nsl-err.errors.txt | 44 ++++++ ...nt-numeric-separator-literal-dd-nsl-err.js | 77 +++++++++ ...meric-separator-literal-dd-nsl-err.symbols | 42 +++++ ...numeric-separator-literal-dd-nsl-err.types | 42 +++++ ...-literal-dds-nsl-dds-dunder-err.errors.txt | 42 +++++ ...eparator-literal-dds-nsl-dds-dunder-err.js | 73 +++++++++ ...tor-literal-dds-nsl-dds-dunder-err.symbols | 40 +++++ ...rator-literal-dds-nsl-dds-dunder-err.types | 40 +++++ ...c-separator-literal-dds-nsl-err.errors.txt | 45 ++++++ ...t-numeric-separator-literal-dds-nsl-err.js | 79 ++++++++++ ...eric-separator-literal-dds-nsl-err.symbols | 43 +++++ ...umeric-separator-literal-dds-nsl-err.types | 43 +++++ ...rator-literal-hil-hd-nsl-hd-err.errors.txt | 50 ++++++ ...ric-separator-literal-hil-hd-nsl-hd-err.js | 89 +++++++++++ ...eparator-literal-hil-hd-nsl-hd-err.symbols | 48 ++++++ ...-separator-literal-hil-hd-nsl-hd-err.types | 48 ++++++ ...r-literal-hil-nsl-hd-dunder-err.errors.txt | 50 ++++++ ...separator-literal-hil-nsl-hd-dunder-err.js | 89 +++++++++++ ...ator-literal-hil-nsl-hd-dunder-err.symbols | 48 ++++++ ...arator-literal-hil-nsl-hd-dunder-err.types | 48 ++++++ ...eparator-literal-hil-nsl-hd-err.errors.txt | 50 ++++++ ...umeric-separator-literal-hil-nsl-hd-err.js | 89 +++++++++++ ...c-separator-literal-hil-nsl-hd-err.symbols | 48 ++++++ ...ric-separator-literal-hil-nsl-hd-err.types | 48 ++++++ ...ic-separator-literal-lol-00-err.errors.txt | 64 ++++++++ ...nt-numeric-separator-literal-lol-00-err.js | 106 +++++++++++++ ...meric-separator-literal-lol-00-err.symbols | 56 +++++++ ...numeric-separator-literal-lol-00-err.types | 57 +++++++ ...ic-separator-literal-lol-01-err.errors.txt | 64 ++++++++ ...nt-numeric-separator-literal-lol-01-err.js | 106 +++++++++++++ ...meric-separator-literal-lol-01-err.symbols | 56 +++++++ ...numeric-separator-literal-lol-01-err.types | 57 +++++++ ...ic-separator-literal-lol-07-err.errors.txt | 66 ++++++++ ...nt-numeric-separator-literal-lol-07-err.js | 110 +++++++++++++ ...meric-separator-literal-lol-07-err.symbols | 58 +++++++ ...numeric-separator-literal-lol-07-err.types | 59 +++++++ ...c-separator-literal-lol-0_0-err.errors.txt | 58 +++++++ ...t-numeric-separator-literal-lol-0_0-err.js | 105 +++++++++++++ ...eric-separator-literal-lol-0_0-err.symbols | 56 +++++++ ...umeric-separator-literal-lol-0_0-err.types | 56 +++++++ ...c-separator-literal-lol-0_1-err.errors.txt | 58 +++++++ ...t-numeric-separator-literal-lol-0_1-err.js | 105 +++++++++++++ ...eric-separator-literal-lol-0_1-err.symbols | 56 +++++++ ...umeric-separator-literal-lol-0_1-err.types | 56 +++++++ ...c-separator-literal-lol-0_7-err.errors.txt | 59 +++++++ ...t-numeric-separator-literal-lol-0_7-err.js | 107 +++++++++++++ ...eric-separator-literal-lol-0_7-err.symbols | 57 +++++++ ...umeric-separator-literal-lol-0_7-err.types | 57 +++++++ ...parator-literal-nonoctal-08-err.errors.txt | 61 ++++++++ ...meric-separator-literal-nonoctal-08-err.js | 100 ++++++++++++ ...-separator-literal-nonoctal-08-err.symbols | 53 +++++++ ...ic-separator-literal-nonoctal-08-err.types | 54 +++++++ ...parator-literal-nonoctal-09-err.errors.txt | 61 ++++++++ ...meric-separator-literal-nonoctal-09-err.js | 100 ++++++++++++ ...-separator-literal-nonoctal-09-err.symbols | 53 +++++++ ...ic-separator-literal-nonoctal-09-err.types | 54 +++++++ ...arator-literal-nonoctal-0_8-err.errors.txt | 55 +++++++ ...eric-separator-literal-nonoctal-0_8-err.js | 99 ++++++++++++ ...separator-literal-nonoctal-0_8-err.symbols | 53 +++++++ ...c-separator-literal-nonoctal-0_8-err.types | 53 +++++++ ...arator-literal-nonoctal-0_9-err.errors.txt | 55 +++++++ ...eric-separator-literal-nonoctal-0_9-err.js | 99 ++++++++++++ ...separator-literal-nonoctal-0_9-err.symbols | 53 +++++++ ...c-separator-literal-nonoctal-0_9-err.types | 53 +++++++ ...-literal-nzd-nsl-dds-dunder-err.errors.txt | 48 ++++++ ...eparator-literal-nzd-nsl-dds-dunder-err.js | 79 ++++++++++ ...tor-literal-nzd-nsl-dds-dunder-err.symbols | 43 +++++ ...rator-literal-nzd-nsl-dds-dunder-err.types | 43 +++++ ...al-nzd-nsl-dds-leading-zero-err.errors.txt | 43 +++++ ...or-literal-nzd-nsl-dds-leading-zero-err.js | 75 +++++++++ ...teral-nzd-nsl-dds-leading-zero-err.symbols | 41 +++++ ...literal-nzd-nsl-dds-leading-zero-err.types | 41 +++++ ...r-literal-oil-nsl-od-dunder-err.errors.txt | 50 ++++++ ...separator-literal-oil-nsl-od-dunder-err.js | 89 +++++++++++ ...ator-literal-oil-nsl-od-dunder-err.symbols | 48 ++++++ ...arator-literal-oil-nsl-od-dunder-err.types | 48 ++++++ ...eparator-literal-oil-nsl-od-err.errors.txt | 50 ++++++ ...umeric-separator-literal-oil-nsl-od-err.js | 89 +++++++++++ ...c-separator-literal-oil-nsl-od-err.symbols | 48 ++++++ ...ric-separator-literal-oil-nsl-od-err.types | 48 ++++++ ...rator-literal-oil-od-nsl-od-err.errors.txt | 50 ++++++ ...ric-separator-literal-oil-od-nsl-od-err.js | 89 +++++++++++ ...eparator-literal-oil-od-nsl-od-err.symbols | 48 ++++++ ...-separator-literal-oil-od-nsl-od-err.types | 48 ++++++ ...c-separator-literal-unicode-err.errors.txt | 45 ++++++ ...t-numeric-separator-literal-unicode-err.js | 74 +++++++++ ...eric-separator-literal-unicode-err.symbols | 40 +++++ ...umeric-separator-literal-unicode-err.types | 41 +++++ .../bigint-octal-invalid-digit.errors.txt | 32 ++++ .../reference/bigint-octal-invalid-digit.js | 54 +++++++ .../bigint-octal-invalid-digit.symbols | 30 ++++ .../bigint-octal-invalid-digit.types | 31 ++++ .../reference/binary-invalid-digit.errors.txt | 29 ++++ .../reference/binary-invalid-digit.js | 48 ++++++ .../reference/binary-invalid-digit.symbols | 27 ++++ .../reference/binary-invalid-digit.types | 28 ++++ .../binary-invalid-leading.errors.txt | 35 +++++ .../reference/binary-invalid-leading.js | 48 ++++++ .../reference/binary-invalid-leading.symbols | 27 ++++ .../reference/binary-invalid-leading.types | 28 ++++ .../binary-invalid-truncated.errors.txt | 29 ++++ .../reference/binary-invalid-truncated.js | 47 ++++++ .../binary-invalid-truncated.symbols | 27 ++++ .../reference/binary-invalid-truncated.types | 27 ++++ .../binary-invalid-unicode.errors.txt | 32 ++++ .../reference/binary-invalid-unicode.js | 48 ++++++ .../reference/binary-invalid-unicode.symbols | 27 ++++ .../reference/binary-invalid-unicode.types | 28 ++++ .../reference/early-err-bad-flag.errors.txt | 24 +++ .../baselines/reference/early-err-bad-flag.js | 38 +++++ .../reference/early-err-bad-flag.symbols | 22 +++ .../reference/early-err-bad-flag.types | 22 +++ .../reference/early-err-dup-flag.errors.txt | 24 +++ .../baselines/reference/early-err-dup-flag.js | 38 +++++ .../reference/early-err-dup-flag.symbols | 22 +++ .../reference/early-err-dup-flag.types | 22 +++ .../early-err-flags-unicode-escape.errors.txt | 27 ++++ .../early-err-flags-unicode-escape.js | 39 +++++ .../early-err-flags-unicode-escape.symbols | 22 +++ .../early-err-flags-unicode-escape.types | 23 +++ .../reference/early-err-pattern.errors.txt | 23 +++ .../baselines/reference/early-err-pattern.js | 36 +++++ .../reference/early-err-pattern.symbols | 21 +++ .../reference/early-err-pattern.types | 21 +++ .../reference/exponent-part.errors.txt | 22 +++ tests/baselines/reference/exponent-part.js | 33 ++++ .../baselines/reference/exponent-part.symbols | 20 +++ tests/baselines/reference/exponent-part.types | 20 +++ .../hexadecimal-invalid-digit.errors.txt | 35 +++++ .../reference/hexadecimal-invalid-digit.js | 54 +++++++ .../hexadecimal-invalid-digit.symbols | 30 ++++ .../reference/hexadecimal-invalid-digit.types | 31 ++++ ...invalid-braced-quantifier-exact.errors.txt | 31 ++++ .../invalid-braced-quantifier-exact.js | 52 +++++++ .../invalid-braced-quantifier-exact.symbols | 29 ++++ .../invalid-braced-quantifier-exact.types | 29 ++++ ...invalid-braced-quantifier-lower.errors.txt | 31 ++++ .../invalid-braced-quantifier-lower.js | 52 +++++++ .../invalid-braced-quantifier-lower.symbols | 29 ++++ .../invalid-braced-quantifier-lower.types | 29 ++++ ...invalid-braced-quantifier-range.errors.txt | 31 ++++ .../invalid-braced-quantifier-range.js | 52 +++++++ .../invalid-braced-quantifier-range.symbols | 29 ++++ .../invalid-braced-quantifier-range.types | 29 ++++ .../invalid-dangling-groupname-2-u.errors.txt | 32 ++++ .../invalid-dangling-groupname-2-u.js | 41 +++++ .../invalid-dangling-groupname-2-u.symbols | 24 +++ .../invalid-dangling-groupname-2-u.types | 24 +++ .../invalid-dangling-groupname-2.errors.txt | 29 ++++ .../reference/invalid-dangling-groupname-2.js | 41 +++++ .../invalid-dangling-groupname-2.symbols | 24 +++ .../invalid-dangling-groupname-2.types | 24 +++ .../invalid-dangling-groupname-3-u.errors.txt | 32 ++++ .../invalid-dangling-groupname-3-u.js | 41 +++++ .../invalid-dangling-groupname-3-u.symbols | 24 +++ .../invalid-dangling-groupname-3-u.types | 24 +++ .../invalid-dangling-groupname-3.errors.txt | 29 ++++ .../reference/invalid-dangling-groupname-3.js | 41 +++++ .../invalid-dangling-groupname-3.symbols | 24 +++ .../invalid-dangling-groupname-3.types | 24 +++ .../invalid-dangling-groupname-4-u.errors.txt | 32 ++++ .../invalid-dangling-groupname-4-u.js | 41 +++++ .../invalid-dangling-groupname-4-u.symbols | 24 +++ .../invalid-dangling-groupname-4-u.types | 24 +++ .../invalid-dangling-groupname-4.errors.txt | 29 ++++ .../reference/invalid-dangling-groupname-4.js | 41 +++++ .../invalid-dangling-groupname-4.symbols | 24 +++ .../invalid-dangling-groupname-4.types | 24 +++ .../invalid-dangling-groupname-5.errors.txt | 29 ++++ .../reference/invalid-dangling-groupname-5.js | 41 +++++ .../invalid-dangling-groupname-5.symbols | 24 +++ .../invalid-dangling-groupname-5.types | 24 +++ .../invalid-dangling-groupname-u.errors.txt | 32 ++++ .../reference/invalid-dangling-groupname-u.js | 41 +++++ .../invalid-dangling-groupname-u.symbols | 24 +++ .../invalid-dangling-groupname-u.types | 24 +++ ...gling-groupname-without-group-u.errors.txt | 29 ++++ ...alid-dangling-groupname-without-group-u.js | 41 +++++ ...dangling-groupname-without-group-u.symbols | 24 +++ ...d-dangling-groupname-without-group-u.types | 24 +++ .../invalid-dangling-groupname.errors.txt | 29 ++++ .../reference/invalid-dangling-groupname.js | 41 +++++ .../invalid-dangling-groupname.symbols | 24 +++ .../invalid-dangling-groupname.types | 24 +++ ...id-duplicate-groupspecifier-2-u.errors.txt | 37 +++++ .../invalid-duplicate-groupspecifier-2-u.js | 39 +++++ ...valid-duplicate-groupspecifier-2-u.symbols | 23 +++ ...invalid-duplicate-groupspecifier-2-u.types | 23 +++ ...alid-duplicate-groupspecifier-2.errors.txt | 34 ++++ .../invalid-duplicate-groupspecifier-2.js | 39 +++++ ...invalid-duplicate-groupspecifier-2.symbols | 23 +++ .../invalid-duplicate-groupspecifier-2.types | 23 +++ ...alid-duplicate-groupspecifier-u.errors.txt | 34 ++++ .../invalid-duplicate-groupspecifier-u.js | 39 +++++ ...invalid-duplicate-groupspecifier-u.symbols | 23 +++ .../invalid-duplicate-groupspecifier-u.types | 23 +++ ...nvalid-duplicate-groupspecifier.errors.txt | 31 ++++ .../invalid-duplicate-groupspecifier.js | 39 +++++ .../invalid-duplicate-groupspecifier.symbols | 23 +++ .../invalid-duplicate-groupspecifier.types | 23 +++ .../invalid-empty-groupspecifier-u.errors.txt | 27 ++++ .../invalid-empty-groupspecifier-u.js | 31 ++++ .../invalid-empty-groupspecifier-u.symbols | 19 +++ .../invalid-empty-groupspecifier-u.types | 19 +++ .../invalid-empty-groupspecifier.errors.txt | 24 +++ .../reference/invalid-empty-groupspecifier.js | 31 ++++ .../invalid-empty-groupspecifier.symbols | 19 +++ .../invalid-empty-groupspecifier.types | 19 +++ ...id-identity-escape-in-capture-u.errors.txt | 27 ++++ .../invalid-identity-escape-in-capture-u.js | 31 ++++ ...valid-identity-escape-in-capture-u.symbols | 19 +++ ...invalid-identity-escape-in-capture-u.types | 19 +++ ...nvalid-incomplete-groupname-2-u.errors.txt | 27 ++++ .../invalid-incomplete-groupname-2-u.js | 31 ++++ .../invalid-incomplete-groupname-2-u.symbols | 19 +++ .../invalid-incomplete-groupname-2-u.types | 19 +++ .../invalid-incomplete-groupname-2.errors.txt | 24 +++ .../invalid-incomplete-groupname-2.js | 31 ++++ .../invalid-incomplete-groupname-2.symbols | 19 +++ .../invalid-incomplete-groupname-2.types | 19 +++ ...nvalid-incomplete-groupname-3-u.errors.txt | 27 ++++ .../invalid-incomplete-groupname-3-u.js | 31 ++++ .../invalid-incomplete-groupname-3-u.symbols | 19 +++ .../invalid-incomplete-groupname-3-u.types | 19 +++ .../invalid-incomplete-groupname-3.errors.txt | 24 +++ .../invalid-incomplete-groupname-3.js | 31 ++++ .../invalid-incomplete-groupname-3.symbols | 19 +++ .../invalid-incomplete-groupname-3.types | 19 +++ .../invalid-incomplete-groupname-4.errors.txt | 24 +++ .../invalid-incomplete-groupname-4.js | 31 ++++ .../invalid-incomplete-groupname-4.symbols | 19 +++ .../invalid-incomplete-groupname-4.types | 19 +++ .../invalid-incomplete-groupname-5.errors.txt | 24 +++ .../invalid-incomplete-groupname-5.js | 31 ++++ .../invalid-incomplete-groupname-5.symbols | 19 +++ .../invalid-incomplete-groupname-5.types | 19 +++ .../invalid-incomplete-groupname-6.errors.txt | 21 +++ .../invalid-incomplete-groupname-6.js | 31 ++++ .../invalid-incomplete-groupname-6.symbols | 19 +++ .../invalid-incomplete-groupname-6.types | 19 +++ .../invalid-incomplete-groupname-u.errors.txt | 27 ++++ .../invalid-incomplete-groupname-u.js | 31 ++++ .../invalid-incomplete-groupname-u.symbols | 19 +++ .../invalid-incomplete-groupname-u.types | 19 +++ ...ete-groupname-without-group-2-u.errors.txt | 24 +++ ...-incomplete-groupname-without-group-2-u.js | 31 ++++ ...mplete-groupname-without-group-2-u.symbols | 19 +++ ...complete-groupname-without-group-2-u.types | 19 +++ ...ete-groupname-without-group-3-u.errors.txt | 24 +++ ...-incomplete-groupname-without-group-3-u.js | 31 ++++ ...mplete-groupname-without-group-3-u.symbols | 19 +++ ...complete-groupname-without-group-3-u.types | 19 +++ ...plete-groupname-without-group-u.errors.txt | 27 ++++ ...id-incomplete-groupname-without-group-u.js | 31 ++++ ...complete-groupname-without-group-u.symbols | 19 +++ ...incomplete-groupname-without-group-u.types | 19 +++ .../invalid-incomplete-groupname.errors.txt | 21 +++ .../reference/invalid-incomplete-groupname.js | 31 ++++ .../invalid-incomplete-groupname.symbols | 19 +++ .../invalid-incomplete-groupname.types | 19 +++ ...-id-continue-groupspecifier-4-u.errors.txt | 30 ++++ ...alid-non-id-continue-groupspecifier-4-u.js | 31 ++++ ...non-id-continue-groupspecifier-4-u.symbols | 19 +++ ...d-non-id-continue-groupspecifier-4-u.types | 19 +++ ...on-id-continue-groupspecifier-4.errors.txt | 24 +++ ...nvalid-non-id-continue-groupspecifier-4.js | 31 ++++ ...d-non-id-continue-groupspecifier-4.symbols | 19 +++ ...lid-non-id-continue-groupspecifier-4.types | 19 +++ ...-non-id-continue-groupspecifier.errors.txt | 24 +++ .../invalid-non-id-continue-groupspecifier.js | 31 ++++ ...lid-non-id-continue-groupspecifier.symbols | 19 +++ ...valid-non-id-continue-groupspecifier.types | 19 +++ ...non-id-start-groupspecifier-2-u.errors.txt | 27 ++++ ...invalid-non-id-start-groupspecifier-2-u.js | 31 ++++ ...id-non-id-start-groupspecifier-2-u.symbols | 19 +++ ...alid-non-id-start-groupspecifier-2-u.types | 19 +++ ...d-non-id-start-groupspecifier-2.errors.txt | 24 +++ .../invalid-non-id-start-groupspecifier-2.js | 31 ++++ ...alid-non-id-start-groupspecifier-2.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-2.types | 19 +++ ...d-non-id-start-groupspecifier-3.errors.txt | 24 +++ .../invalid-non-id-start-groupspecifier-3.js | 31 ++++ ...alid-non-id-start-groupspecifier-3.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-3.types | 19 +++ ...non-id-start-groupspecifier-4-u.errors.txt | 27 ++++ ...invalid-non-id-start-groupspecifier-4-u.js | 31 ++++ ...id-non-id-start-groupspecifier-4-u.symbols | 19 +++ ...alid-non-id-start-groupspecifier-4-u.types | 19 +++ ...d-non-id-start-groupspecifier-4.errors.txt | 24 +++ .../invalid-non-id-start-groupspecifier-4.js | 31 ++++ ...alid-non-id-start-groupspecifier-4.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-4.types | 19 +++ ...non-id-start-groupspecifier-5-u.errors.txt | 27 ++++ ...invalid-non-id-start-groupspecifier-5-u.js | 31 ++++ ...id-non-id-start-groupspecifier-5-u.symbols | 19 +++ ...alid-non-id-start-groupspecifier-5-u.types | 19 +++ ...d-non-id-start-groupspecifier-5.errors.txt | 24 +++ .../invalid-non-id-start-groupspecifier-5.js | 31 ++++ ...alid-non-id-start-groupspecifier-5.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-5.types | 19 +++ ...d-non-id-start-groupspecifier-6.errors.txt | 30 ++++ .../invalid-non-id-start-groupspecifier-6.js | 31 ++++ ...alid-non-id-start-groupspecifier-6.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-6.types | 19 +++ ...d-non-id-start-groupspecifier-7.errors.txt | 30 ++++ .../invalid-non-id-start-groupspecifier-7.js | 31 ++++ ...alid-non-id-start-groupspecifier-7.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-7.types | 19 +++ ...non-id-start-groupspecifier-8-u.errors.txt | 30 ++++ ...invalid-non-id-start-groupspecifier-8-u.js | 31 ++++ ...id-non-id-start-groupspecifier-8-u.symbols | 19 +++ ...alid-non-id-start-groupspecifier-8-u.types | 19 +++ ...d-non-id-start-groupspecifier-8.errors.txt | 24 +++ .../invalid-non-id-start-groupspecifier-8.js | 31 ++++ ...alid-non-id-start-groupspecifier-8.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-8.types | 19 +++ ...non-id-start-groupspecifier-9-u.errors.txt | 30 ++++ ...invalid-non-id-start-groupspecifier-9-u.js | 31 ++++ ...id-non-id-start-groupspecifier-9-u.symbols | 19 +++ ...alid-non-id-start-groupspecifier-9-u.types | 19 +++ ...d-non-id-start-groupspecifier-u.errors.txt | 27 ++++ .../invalid-non-id-start-groupspecifier-u.js | 31 ++++ ...alid-non-id-start-groupspecifier-u.symbols | 19 +++ ...nvalid-non-id-start-groupspecifier-u.types | 19 +++ ...lid-non-id-start-groupspecifier.errors.txt | 24 +++ .../invalid-non-id-start-groupspecifier.js | 31 ++++ ...nvalid-non-id-start-groupspecifier.symbols | 19 +++ .../invalid-non-id-start-groupspecifier.types | 19 +++ ...nvalid-numeric-groupspecifier-u.errors.txt | 27 ++++ .../invalid-numeric-groupspecifier-u.js | 31 ++++ .../invalid-numeric-groupspecifier-u.symbols | 19 +++ .../invalid-numeric-groupspecifier-u.types | 19 +++ .../invalid-numeric-groupspecifier.errors.txt | 24 +++ .../invalid-numeric-groupspecifier.js | 31 ++++ .../invalid-numeric-groupspecifier.symbols | 19 +++ .../invalid-numeric-groupspecifier.types | 19 +++ .../invalid-optional-lookbehind.errors.txt | 26 ++++ .../reference/invalid-optional-lookbehind.js | 42 +++++ .../invalid-optional-lookbehind.symbols | 24 +++ .../invalid-optional-lookbehind.types | 24 +++ ...id-optional-negative-lookbehind.errors.txt | 26 ++++ .../invalid-optional-negative-lookbehind.js | 42 +++++ ...valid-optional-negative-lookbehind.symbols | 24 +++ ...invalid-optional-negative-lookbehind.types | 24 +++ ...uator-starting-groupspecifier-u.errors.txt | 27 ++++ ...id-punctuator-starting-groupspecifier-u.js | 31 ++++ ...nctuator-starting-groupspecifier-u.symbols | 19 +++ ...punctuator-starting-groupspecifier-u.types | 19 +++ ...ctuator-starting-groupspecifier.errors.txt | 24 +++ ...alid-punctuator-starting-groupspecifier.js | 31 ++++ ...punctuator-starting-groupspecifier.symbols | 19 +++ ...d-punctuator-starting-groupspecifier.types | 19 +++ ...ctuator-within-groupspecifier-u.errors.txt | 27 ++++ ...alid-punctuator-within-groupspecifier-u.js | 31 ++++ ...punctuator-within-groupspecifier-u.symbols | 19 +++ ...d-punctuator-within-groupspecifier-u.types | 19 +++ ...unctuator-within-groupspecifier.errors.txt | 24 +++ ...nvalid-punctuator-within-groupspecifier.js | 31 ++++ ...d-punctuator-within-groupspecifier.symbols | 19 +++ ...lid-punctuator-within-groupspecifier.types | 19 +++ .../invalid-range-lookbehind.errors.txt | 26 ++++ .../reference/invalid-range-lookbehind.js | 42 +++++ .../invalid-range-lookbehind.symbols | 24 +++ .../reference/invalid-range-lookbehind.types | 24 +++ ...valid-range-negative-lookbehind.errors.txt | 26 ++++ .../invalid-range-negative-lookbehind.js | 42 +++++ .../invalid-range-negative-lookbehind.symbols | 24 +++ .../invalid-range-negative-lookbehind.types | 24 +++ ...d-unterminated-groupspecifier-u.errors.txt | 27 ++++ .../invalid-unterminated-groupspecifier-u.js | 31 ++++ ...alid-unterminated-groupspecifier-u.symbols | 19 +++ ...nvalid-unterminated-groupspecifier-u.types | 19 +++ ...lid-unterminated-groupspecifier.errors.txt | 24 +++ .../invalid-unterminated-groupspecifier.js | 31 ++++ ...nvalid-unterminated-groupspecifier.symbols | 19 +++ .../invalid-unterminated-groupspecifier.types | 19 +++ ...quence-1-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-1-strict-explicit-pragma.js | 57 +++++++ ...-sequence-1-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-1-strict-explicit-pragma.types | 32 ++++ ...quence-2-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-2-strict-explicit-pragma.js | 57 +++++++ ...-sequence-2-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-2-strict-explicit-pragma.types | 32 ++++ ...quence-3-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-3-strict-explicit-pragma.js | 57 +++++++ ...-sequence-3-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-3-strict-explicit-pragma.types | 32 ++++ ...quence-4-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-4-strict-explicit-pragma.js | 57 +++++++ ...-sequence-4-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-4-strict-explicit-pragma.types | 32 ++++ ...quence-5-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-5-strict-explicit-pragma.js | 57 +++++++ ...-sequence-5-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-5-strict-explicit-pragma.types | 32 ++++ ...quence-6-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-6-strict-explicit-pragma.js | 57 +++++++ ...-sequence-6-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-6-strict-explicit-pragma.types | 32 ++++ ...quence-7-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-7-strict-explicit-pragma.js | 57 +++++++ ...-sequence-7-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-7-strict-explicit-pragma.types | 32 ++++ ...quence-8-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-8-strict-explicit-pragma.js | 57 +++++++ ...-sequence-8-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-8-strict-explicit-pragma.types | 32 ++++ ...-octal-escape-sequence-8-strict.errors.txt | 37 +++++ ...gacy-non-octal-escape-sequence-8-strict.js | 64 ++++++++ ...non-octal-escape-sequence-8-strict.symbols | 35 +++++ ...y-non-octal-escape-sequence-8-strict.types | 35 +++++ ...quence-9-strict-explicit-pragma.errors.txt | 32 ++++ ...scape-sequence-9-strict-explicit-pragma.js | 57 +++++++ ...-sequence-9-strict-explicit-pragma.symbols | 30 ++++ ...pe-sequence-9-strict-explicit-pragma.types | 32 ++++ ...-octal-escape-sequence-9-strict.errors.txt | 37 +++++ ...gacy-non-octal-escape-sequence-9-strict.js | 64 ++++++++ ...non-octal-escape-sequence-9-strict.symbols | 35 +++++ ...y-non-octal-escape-sequence-9-strict.types | 35 +++++ ...on-octal-escape-sequence-strict.errors.txt | 33 ++++ ...legacy-non-octal-escape-sequence-strict.js | 56 +++++++ ...y-non-octal-escape-sequence-strict.symbols | 31 ++++ ...acy-non-octal-escape-sequence-strict.types | 31 ++++ ...escape-sequence-prologue-strict.errors.txt | 25 +++ ...y-octal-escape-sequence-prologue-strict.js | 39 +++++ ...al-escape-sequence-prologue-strict.symbols | 23 +++ ...ctal-escape-sequence-prologue-strict.types | 29 ++++ ...cy-octal-escape-sequence-strict.errors.txt | 33 ++++ .../legacy-octal-escape-sequence-strict.js | 56 +++++++ ...egacy-octal-escape-sequence-strict.symbols | 31 ++++ .../legacy-octal-escape-sequence-strict.types | 31 ++++ .../legacy-octal-integer-strict.errors.txt | 39 +++++ .../reference/legacy-octal-integer-strict.js | 68 ++++++++ .../legacy-octal-integer-strict.symbols | 37 +++++ .../legacy-octal-integer-strict.types | 37 +++++ ...egacy-octal-integery-000-strict.errors.txt | 21 +++ .../legacy-octal-integery-000-strict.js | 31 ++++ .../legacy-octal-integery-000-strict.symbols | 19 +++ .../legacy-octal-integery-000-strict.types | 19 +++ ...egacy-octal-integery-005-strict.errors.txt | 21 +++ .../legacy-octal-integery-005-strict.js | 31 ++++ .../legacy-octal-integery-005-strict.symbols | 19 +++ .../legacy-octal-integery-005-strict.types | 19 +++ ...legacy-octal-integery-01-strict.errors.txt | 21 +++ .../legacy-octal-integery-01-strict.js | 31 ++++ .../legacy-octal-integery-01-strict.symbols | 19 +++ .../legacy-octal-integery-01-strict.types | 19 +++ ...egacy-octal-integery-010-strict.errors.txt | 21 +++ .../legacy-octal-integery-010-strict.js | 31 ++++ .../legacy-octal-integery-010-strict.symbols | 19 +++ .../legacy-octal-integery-010-strict.types | 19 +++ ...legacy-octal-integery-06-strict.errors.txt | 21 +++ .../legacy-octal-integery-06-strict.js | 31 ++++ .../legacy-octal-integery-06-strict.symbols | 19 +++ .../legacy-octal-integery-06-strict.types | 19 +++ ...legacy-octal-integery-07-strict.errors.txt | 21 +++ .../legacy-octal-integery-07-strict.js | 31 ++++ .../legacy-octal-integery-07-strict.symbols | 19 +++ .../legacy-octal-integery-07-strict.types | 19 +++ .../legacy-octal-like-invalid-00n.errors.txt | 40 +++++ .../legacy-octal-like-invalid-00n.js | 58 +++++++ .../legacy-octal-like-invalid-00n.symbols | 32 ++++ .../legacy-octal-like-invalid-00n.types | 33 ++++ .../legacy-octal-like-invalid-01n.errors.txt | 40 +++++ .../legacy-octal-like-invalid-01n.js | 58 +++++++ .../legacy-octal-like-invalid-01n.symbols | 32 ++++ .../legacy-octal-like-invalid-01n.types | 33 ++++ .../legacy-octal-like-invalid-07n.errors.txt | 40 +++++ .../legacy-octal-like-invalid-07n.js | 58 +++++++ .../legacy-octal-like-invalid-07n.symbols | 32 ++++ .../legacy-octal-like-invalid-07n.types | 33 ++++ .../mv-is-not-integer-dil-dot-dds.errors.txt | 33 ++++ .../mv-is-not-integer-dil-dot-dds.js | 55 +++++++ .../mv-is-not-integer-dil-dot-dds.symbols | 31 ++++ .../mv-is-not-integer-dil-dot-dds.types | 31 ++++ .../mv-is-not-integer-dot-dds.errors.txt | 33 ++++ .../reference/mv-is-not-integer-dot-dds.js | 55 +++++++ .../mv-is-not-integer-dot-dds.symbols | 31 ++++ .../reference/mv-is-not-integer-dot-dds.types | 31 ++++ ...on-octal-decimal-integer-strict.errors.txt | 45 ++++++ .../non-octal-decimal-integer-strict.js | 80 ++++++++++ .../non-octal-decimal-integer-strict.symbols | 43 +++++ .../non-octal-decimal-integer-strict.types | 43 +++++ .../non-octal-like-invalid-0008n.errors.txt | 40 +++++ .../reference/non-octal-like-invalid-0008n.js | 58 +++++++ .../non-octal-like-invalid-0008n.symbols | 32 ++++ .../non-octal-like-invalid-0008n.types | 33 ++++ .../non-octal-like-invalid-012348n.errors.txt | 40 +++++ .../non-octal-like-invalid-012348n.js | 58 +++++++ .../non-octal-like-invalid-012348n.symbols | 32 ++++ .../non-octal-like-invalid-012348n.types | 33 ++++ .../non-octal-like-invalid-08n.errors.txt | 40 +++++ .../reference/non-octal-like-invalid-08n.js | 58 +++++++ .../non-octal-like-invalid-08n.symbols | 32 ++++ .../non-octal-like-invalid-08n.types | 33 ++++ .../non-octal-like-invalid-09n.errors.txt | 40 +++++ .../reference/non-octal-like-invalid-09n.js | 58 +++++++ .../non-octal-like-invalid-09n.symbols | 32 ++++ .../non-octal-like-invalid-09n.types | 33 ++++ .../numeric-followed-by-ident.errors.txt | 24 +++ .../reference/numeric-followed-by-ident.js | 37 +++++ .../numeric-followed-by-ident.symbols | 22 +++ .../reference/numeric-followed-by-ident.types | 24 +++ ...rator-literal-bil-bd-nsl-bd-err.errors.txt | 40 +++++ ...ric-separator-literal-bil-bd-nsl-bd-err.js | 69 ++++++++ ...eparator-literal-bil-bd-nsl-bd-err.symbols | 38 +++++ ...-separator-literal-bil-bd-nsl-bd-err.types | 38 +++++ ...r-literal-bil-nsl-bd-dunder-err.errors.txt | 40 +++++ ...separator-literal-bil-nsl-bd-dunder-err.js | 69 ++++++++ ...ator-literal-bil-nsl-bd-dunder-err.symbols | 38 +++++ ...arator-literal-bil-nsl-bd-dunder-err.types | 38 +++++ ...eparator-literal-bil-nsl-bd-err.errors.txt | 40 +++++ ...umeric-separator-literal-bil-nsl-bd-err.js | 69 ++++++++ ...c-separator-literal-bil-nsl-bd-err.symbols | 38 +++++ ...ric-separator-literal-bil-nsl-bd-err.types | 38 +++++ ...r-literal-dd-nsl-dds-dunder-err.errors.txt | 32 ++++ ...separator-literal-dd-nsl-dds-dunder-err.js | 53 +++++++ ...ator-literal-dd-nsl-dds-dunder-err.symbols | 30 ++++ ...arator-literal-dd-nsl-dds-dunder-err.types | 30 ++++ ...ic-separator-literal-dd-nsl-err.errors.txt | 34 ++++ .../numeric-separator-literal-dd-nsl-err.js | 57 +++++++ ...meric-separator-literal-dd-nsl-err.symbols | 32 ++++ ...numeric-separator-literal-dd-nsl-err.types | 32 ++++ ...-literal-dds-nsl-dds-dunder-err.errors.txt | 32 ++++ ...eparator-literal-dds-nsl-dds-dunder-err.js | 53 +++++++ ...tor-literal-dds-nsl-dds-dunder-err.symbols | 30 ++++ ...rator-literal-dds-nsl-dds-dunder-err.types | 30 ++++ ...c-separator-literal-dds-nsl-err.errors.txt | 35 +++++ .../numeric-separator-literal-dds-nsl-err.js | 59 +++++++ ...eric-separator-literal-dds-nsl-err.symbols | 33 ++++ ...umeric-separator-literal-dds-nsl-err.types | 33 ++++ ...teral-dil-dot-dds-nsl-ep-dd-err.errors.txt | 34 ++++ ...rator-literal-dil-dot-dds-nsl-ep-dd-err.js | 57 +++++++ ...-literal-dil-dot-dds-nsl-ep-dd-err.symbols | 32 ++++ ...or-literal-dil-dot-dds-nsl-ep-dd-err.types | 32 ++++ ...ator-literal-dil-dot-nsl-dd-err.errors.txt | 34 ++++ ...ic-separator-literal-dil-dot-nsl-dd-err.js | 57 +++++++ ...parator-literal-dil-dot-nsl-dd-err.symbols | 32 ++++ ...separator-literal-dil-dot-nsl-dd-err.types | 32 ++++ ...ator-literal-dil-dot-nsl-ep-err.errors.txt | 37 +++++ ...ic-separator-literal-dil-dot-nsl-ep-err.js | 63 ++++++++ ...parator-literal-dil-dot-nsl-ep-err.symbols | 35 +++++ ...separator-literal-dil-dot-nsl-ep-err.types | 35 +++++ ...parator-literal-dil-dot-nsl-err.errors.txt | 35 +++++ ...meric-separator-literal-dil-dot-nsl-err.js | 59 +++++++ ...-separator-literal-dil-dot-nsl-err.symbols | 33 ++++ ...ic-separator-literal-dil-dot-nsl-err.types | 33 ++++ ...ator-literal-dot-dds-nsl-ep-err.errors.txt | 36 +++++ ...ic-separator-literal-dot-dds-nsl-ep-err.js | 61 ++++++++ ...parator-literal-dot-dds-nsl-ep-err.symbols | 34 ++++ ...separator-literal-dot-dds-nsl-ep-err.types | 34 ++++ ...eparator-literal-dot-nsl-ep-err.errors.txt | 40 +++++ ...umeric-separator-literal-dot-nsl-ep-err.js | 39 +++++ ...c-separator-literal-dot-nsl-ep-err.symbols | 35 +++++ ...ric-separator-literal-dot-nsl-ep-err.types | 35 +++++ ...c-separator-literal-dot-nsl-err.errors.txt | 38 +++++ .../numeric-separator-literal-dot-nsl-err.js | 37 +++++ ...eric-separator-literal-dot-nsl-err.symbols | 33 ++++ ...umeric-separator-literal-dot-nsl-err.types | 33 ++++ ...rator-literal-hil-hd-nsl-hd-err.errors.txt | 40 +++++ ...ric-separator-literal-hil-hd-nsl-hd-err.js | 69 ++++++++ ...eparator-literal-hil-hd-nsl-hd-err.symbols | 38 +++++ ...-separator-literal-hil-hd-nsl-hd-err.types | 38 +++++ ...r-literal-hil-nsl-hd-dunder-err.errors.txt | 40 +++++ ...separator-literal-hil-nsl-hd-dunder-err.js | 69 ++++++++ ...ator-literal-hil-nsl-hd-dunder-err.symbols | 38 +++++ ...arator-literal-hil-nsl-hd-dunder-err.types | 38 +++++ ...eparator-literal-hil-nsl-hd-err.errors.txt | 40 +++++ ...umeric-separator-literal-hil-nsl-hd-err.js | 69 ++++++++ ...c-separator-literal-hil-nsl-hd-err.symbols | 38 +++++ ...ric-separator-literal-hil-nsl-hd-err.types | 38 +++++ ...ic-separator-literal-lol-00-err.errors.txt | 53 +++++++ .../numeric-separator-literal-lol-00-err.js | 84 ++++++++++ ...meric-separator-literal-lol-00-err.symbols | 45 ++++++ ...numeric-separator-literal-lol-00-err.types | 46 ++++++ ...ic-separator-literal-lol-01-err.errors.txt | 53 +++++++ .../numeric-separator-literal-lol-01-err.js | 84 ++++++++++ ...meric-separator-literal-lol-01-err.symbols | 45 ++++++ ...numeric-separator-literal-lol-01-err.types | 46 ++++++ ...ic-separator-literal-lol-07-err.errors.txt | 55 +++++++ .../numeric-separator-literal-lol-07-err.js | 88 +++++++++++ ...meric-separator-literal-lol-07-err.symbols | 47 ++++++ ...numeric-separator-literal-lol-07-err.types | 48 ++++++ ...c-separator-literal-lol-0_0-err.errors.txt | 47 ++++++ .../numeric-separator-literal-lol-0_0-err.js | 83 ++++++++++ ...eric-separator-literal-lol-0_0-err.symbols | 45 ++++++ ...umeric-separator-literal-lol-0_0-err.types | 45 ++++++ ...c-separator-literal-lol-0_1-err.errors.txt | 47 ++++++ .../numeric-separator-literal-lol-0_1-err.js | 83 ++++++++++ ...eric-separator-literal-lol-0_1-err.symbols | 45 ++++++ ...umeric-separator-literal-lol-0_1-err.types | 45 ++++++ ...c-separator-literal-lol-0_7-err.errors.txt | 48 ++++++ .../numeric-separator-literal-lol-0_7-err.js | 85 ++++++++++ ...eric-separator-literal-lol-0_7-err.symbols | 46 ++++++ ...umeric-separator-literal-lol-0_7-err.types | 46 ++++++ ...parator-literal-nonoctal-08-err.errors.txt | 50 ++++++ ...meric-separator-literal-nonoctal-08-err.js | 78 ++++++++++ ...-separator-literal-nonoctal-08-err.symbols | 42 +++++ ...ic-separator-literal-nonoctal-08-err.types | 43 +++++ ...parator-literal-nonoctal-09-err.errors.txt | 50 ++++++ ...meric-separator-literal-nonoctal-09-err.js | 78 ++++++++++ ...-separator-literal-nonoctal-09-err.symbols | 42 +++++ ...ic-separator-literal-nonoctal-09-err.types | 43 +++++ ...arator-literal-nonoctal-0_8-err.errors.txt | 44 ++++++ ...eric-separator-literal-nonoctal-0_8-err.js | 77 +++++++++ ...separator-literal-nonoctal-0_8-err.symbols | 42 +++++ ...c-separator-literal-nonoctal-0_8-err.types | 42 +++++ ...arator-literal-nonoctal-0_9-err.errors.txt | 44 ++++++ ...eric-separator-literal-nonoctal-0_9-err.js | 77 +++++++++ ...separator-literal-nonoctal-0_9-err.symbols | 42 +++++ ...c-separator-literal-nonoctal-0_9-err.types | 42 +++++ ...-literal-nzd-nsl-dds-dunder-err.errors.txt | 38 +++++ ...eparator-literal-nzd-nsl-dds-dunder-err.js | 59 +++++++ ...tor-literal-nzd-nsl-dds-dunder-err.symbols | 33 ++++ ...rator-literal-nzd-nsl-dds-dunder-err.types | 33 ++++ ...al-nzd-nsl-dds-leading-zero-err.errors.txt | 33 ++++ ...or-literal-nzd-nsl-dds-leading-zero-err.js | 55 +++++++ ...teral-nzd-nsl-dds-leading-zero-err.symbols | 31 ++++ ...literal-nzd-nsl-dds-leading-zero-err.types | 31 ++++ ...r-literal-oil-nsl-od-dunder-err.errors.txt | 40 +++++ ...separator-literal-oil-nsl-od-dunder-err.js | 69 ++++++++ ...ator-literal-oil-nsl-od-dunder-err.symbols | 38 +++++ ...arator-literal-oil-nsl-od-dunder-err.types | 38 +++++ ...eparator-literal-oil-nsl-od-err.errors.txt | 40 +++++ ...umeric-separator-literal-oil-nsl-od-err.js | 69 ++++++++ ...c-separator-literal-oil-nsl-od-err.symbols | 38 +++++ ...ric-separator-literal-oil-nsl-od-err.types | 38 +++++ ...rator-literal-oil-od-nsl-od-err.errors.txt | 40 +++++ ...ric-separator-literal-oil-od-nsl-od-err.js | 69 ++++++++ ...eparator-literal-oil-od-nsl-od-err.symbols | 38 +++++ ...-separator-literal-oil-od-nsl-od-err.types | 38 +++++ ...c-separator-literal-unicode-err.errors.txt | 35 +++++ .../numeric-separator-literal-unicode-err.js | 54 +++++++ ...eric-separator-literal-unicode-err.symbols | 30 ++++ ...umeric-separator-literal-unicode-err.types | 31 ++++ .../reference/octal-invalid-digit.errors.txt | 29 ++++ .../reference/octal-invalid-digit.js | 48 ++++++ .../reference/octal-invalid-digit.symbols | 27 ++++ .../reference/octal-invalid-digit.types | 28 ++++ .../octal-invalid-leading.errors.txt | 35 +++++ .../reference/octal-invalid-leading.js | 48 ++++++ .../reference/octal-invalid-leading.symbols | 27 ++++ .../reference/octal-invalid-leading.types | 28 ++++ .../octal-invalid-truncated.errors.txt | 29 ++++ .../reference/octal-invalid-truncated.js | 47 ++++++ .../reference/octal-invalid-truncated.symbols | 27 ++++ .../reference/octal-invalid-truncated.types | 27 ++++ .../octal-invalid-unicode.errors.txt | 32 ++++ .../reference/octal-invalid-unicode.js | 48 ++++++ .../reference/octal-invalid-unicode.symbols | 27 ++++ .../reference/octal-invalid-unicode.types | 28 ++++ ...xp-first-char-no-line-separator.errors.txt | 45 ++++++ .../regexp-first-char-no-line-separator.js | 68 ++++++++ ...egexp-first-char-no-line-separator.symbols | 38 +++++ .../regexp-first-char-no-line-separator.types | 42 +++++ ...rst-char-no-paragraph-separator.errors.txt | 45 ++++++ ...egexp-first-char-no-paragraph-separator.js | 68 ++++++++ ...-first-char-no-paragraph-separator.symbols | 38 +++++ ...xp-first-char-no-paragraph-separator.types | 42 +++++ ...p-source-char-no-line-separator.errors.txt | 44 ++++++ .../regexp-source-char-no-line-separator.js | 67 ++++++++ ...gexp-source-char-no-line-separator.symbols | 38 +++++ ...regexp-source-char-no-line-separator.types | 42 +++++ ...rce-char-no-paragraph-separator.errors.txt | 45 ++++++ ...gexp-source-char-no-paragraph-separator.js | 69 ++++++++ ...source-char-no-paragraph-separator.symbols | 40 +++++ ...p-source-char-no-paragraph-separator.types | 43 +++++ .../u-invalid-class-escape.errors.txt | 32 ++++ .../reference/u-invalid-class-escape.js | 48 ++++++ .../reference/u-invalid-class-escape.symbols | 27 ++++ .../reference/u-invalid-class-escape.types | 27 ++++ ...u-invalid-extended-pattern-char.errors.txt | 29 ++++ .../u-invalid-extended-pattern-char.js | 42 +++++ .../u-invalid-extended-pattern-char.symbols | 24 +++ .../u-invalid-extended-pattern-char.types | 24 +++ .../u-invalid-identity-escape.errors.txt | 31 ++++ .../reference/u-invalid-identity-escape.js | 46 ++++++ .../u-invalid-identity-escape.symbols | 26 ++++ .../reference/u-invalid-identity-escape.types | 26 ++++ .../u-invalid-legacy-octal-escape.errors.txt | 34 ++++ .../u-invalid-legacy-octal-escape.js | 52 +++++++ .../u-invalid-legacy-octal-escape.symbols | 29 ++++ .../u-invalid-legacy-octal-escape.types | 29 ++++ ...on-empty-class-ranges-no-dash-a.errors.txt | 41 +++++ ...nvalid-non-empty-class-ranges-no-dash-a.js | 66 ++++++++ ...d-non-empty-class-ranges-no-dash-a.symbols | 36 +++++ ...lid-non-empty-class-ranges-no-dash-a.types | 36 +++++ ...n-empty-class-ranges-no-dash-ab.errors.txt | 44 ++++++ ...valid-non-empty-class-ranges-no-dash-ab.js | 66 ++++++++ ...-non-empty-class-ranges-no-dash-ab.symbols | 36 +++++ ...id-non-empty-class-ranges-no-dash-ab.types | 36 +++++ ...on-empty-class-ranges-no-dash-b.errors.txt | 41 +++++ ...nvalid-non-empty-class-ranges-no-dash-b.js | 66 ++++++++ ...d-non-empty-class-ranges-no-dash-b.symbols | 36 +++++ ...lid-non-empty-class-ranges-no-dash-b.types | 36 +++++ ...-invalid-non-empty-class-ranges.errors.txt | 40 +++++ .../u-invalid-non-empty-class-ranges.js | 64 ++++++++ .../u-invalid-non-empty-class-ranges.symbols | 35 +++++ .../u-invalid-non-empty-class-ranges.types | 35 +++++ .../u-invalid-oob-decimal-escape.errors.txt | 29 ++++ .../reference/u-invalid-oob-decimal-escape.js | 42 +++++ .../u-invalid-oob-decimal-escape.symbols | 24 +++ .../u-invalid-oob-decimal-escape.types | 24 +++ .../u-invalid-optional-lookahead.errors.txt | 29 ++++ .../reference/u-invalid-optional-lookahead.js | 42 +++++ .../u-invalid-optional-lookahead.symbols | 24 +++ .../u-invalid-optional-lookahead.types | 24 +++ .../u-invalid-optional-lookbehind.errors.txt | 29 ++++ .../u-invalid-optional-lookbehind.js | 42 +++++ .../u-invalid-optional-lookbehind.symbols | 24 +++ .../u-invalid-optional-lookbehind.types | 24 +++ ...lid-optional-negative-lookahead.errors.txt | 29 ++++ .../u-invalid-optional-negative-lookahead.js | 42 +++++ ...nvalid-optional-negative-lookahead.symbols | 24 +++ ...-invalid-optional-negative-lookahead.types | 24 +++ ...id-optional-negative-lookbehind.errors.txt | 29 ++++ .../u-invalid-optional-negative-lookbehind.js | 42 +++++ ...valid-optional-negative-lookbehind.symbols | 24 +++ ...invalid-optional-negative-lookbehind.types | 24 +++ .../u-invalid-range-lookahead.errors.txt | 29 ++++ .../reference/u-invalid-range-lookahead.js | 42 +++++ .../u-invalid-range-lookahead.symbols | 24 +++ .../reference/u-invalid-range-lookahead.types | 24 +++ .../u-invalid-range-lookbehind.errors.txt | 29 ++++ .../reference/u-invalid-range-lookbehind.js | 42 +++++ .../u-invalid-range-lookbehind.symbols | 24 +++ .../u-invalid-range-lookbehind.types | 24 +++ ...nvalid-range-negative-lookahead.errors.txt | 29 ++++ .../u-invalid-range-negative-lookahead.js | 42 +++++ ...u-invalid-range-negative-lookahead.symbols | 24 +++ .../u-invalid-range-negative-lookahead.types | 24 +++ ...valid-range-negative-lookbehind.errors.txt | 29 ++++ .../u-invalid-range-negative-lookbehind.js | 42 +++++ ...-invalid-range-negative-lookbehind.symbols | 24 +++ .../u-invalid-range-negative-lookbehind.types | 24 +++ .../reference/u-unicode-esc-bounds.errors.txt | 29 ++++ .../reference/u-unicode-esc-bounds.js | 41 +++++ .../reference/u-unicode-esc-bounds.symbols | 24 +++ .../reference/u-unicode-esc-bounds.types | 24 +++ .../u-unicode-esc-non-hex.errors.txt | 27 ++++ .../reference/u-unicode-esc-non-hex.js | 31 ++++ .../reference/u-unicode-esc-non-hex.symbols | 19 +++ .../reference/u-unicode-esc-non-hex.types | 19 +++ .../unicode-escape-nls-err-double.errors.txt | 55 +++++++ .../unicode-escape-nls-err-double.js | 99 ++++++++++++ .../unicode-escape-nls-err-double.symbols | 53 +++++++ .../unicode-escape-nls-err-double.types | 53 +++++++ .../unicode-escape-nls-err-single.errors.txt | 55 +++++++ .../unicode-escape-nls-err-single.js | 99 ++++++++++++ .../unicode-escape-nls-err-single.symbols | 53 +++++++ .../unicode-escape-nls-err-single.types | 53 +++++++ .../unicode-escape-nls-err.errors.txt | 85 ++++++++++ .../reference/unicode-escape-nls-err.js | 147 ++++++++++++++++++ .../reference/unicode-escape-nls-err.symbols | 77 +++++++++ .../reference/unicode-escape-nls-err.types | 77 +++++++++ ...nicode-escape-no-hex-err-double.errors.txt | 52 +++++++ .../unicode-escape-no-hex-err-double.js | 93 +++++++++++ .../unicode-escape-no-hex-err-double.symbols | 50 ++++++ .../unicode-escape-no-hex-err-double.types | 50 ++++++ ...nicode-escape-no-hex-err-single.errors.txt | 52 +++++++ .../unicode-escape-no-hex-err-single.js | 93 +++++++++++ .../unicode-escape-no-hex-err-single.symbols | 50 ++++++ .../unicode-escape-no-hex-err-single.types | 50 ++++++ .../bigint/bigint-binary-invalid-digit.ts | 25 +++ .../bigint/bigint-octal-invalid-digit.ts | 25 +++ .../language/literals/bigint/exponent-part.ts | 15 ++ .../bigint/hexadecimal-invalid-digit.ts | 25 +++ .../bigint/legacy-octal-like-invalid-00n.ts | 27 ++++ .../bigint/legacy-octal-like-invalid-01n.ts | 27 ++++ .../bigint/legacy-octal-like-invalid-07n.ts | 27 ++++ .../bigint/mv-is-not-integer-dil-dot-dds.ts | 26 ++++ .../bigint/mv-is-not-integer-dot-dds.ts | 26 ++++ .../bigint/non-octal-like-invalid-0008n.ts | 27 ++++ .../bigint/non-octal-like-invalid-012348n.ts | 27 ++++ .../bigint/non-octal-like-invalid-08n.ts | 27 ++++ .../bigint/non-octal-like-invalid-09n.ts | 27 ++++ ...ric-separator-literal-bil-bd-nsl-bd-err.ts | 43 +++++ ...separator-literal-bil-nsl-bd-dunder-err.ts | 43 +++++ ...umeric-separator-literal-bil-nsl-bd-err.ts | 42 +++++ ...separator-literal-dd-nsl-dds-dunder-err.ts | 35 +++++ ...nt-numeric-separator-literal-dd-nsl-err.ts | 37 +++++ ...eparator-literal-dds-nsl-dds-dunder-err.ts | 35 +++++ ...t-numeric-separator-literal-dds-nsl-err.ts | 38 +++++ ...ric-separator-literal-hil-hd-nsl-hd-err.ts | 43 +++++ ...separator-literal-hil-nsl-hd-dunder-err.ts | 43 +++++ ...umeric-separator-literal-hil-nsl-hd-err.ts | 43 +++++ ...nt-numeric-separator-literal-lol-00-err.ts | 51 ++++++ ...nt-numeric-separator-literal-lol-01-err.ts | 51 ++++++ ...nt-numeric-separator-literal-lol-07-err.ts | 53 +++++++ ...t-numeric-separator-literal-lol-0_0-err.ts | 51 ++++++ ...t-numeric-separator-literal-lol-0_1-err.ts | 51 ++++++ ...t-numeric-separator-literal-lol-0_7-err.ts | 52 +++++++ ...meric-separator-literal-nonoctal-08-err.ts | 48 ++++++ ...meric-separator-literal-nonoctal-09-err.ts | 48 ++++++ ...eric-separator-literal-nonoctal-0_8-err.ts | 48 ++++++ ...eric-separator-literal-nonoctal-0_9-err.ts | 48 ++++++ ...eparator-literal-nzd-nsl-dds-dunder-err.ts | 38 +++++ ...or-literal-nzd-nsl-dds-leading-zero-err.ts | 36 +++++ ...separator-literal-oil-nsl-od-dunder-err.ts | 43 +++++ ...umeric-separator-literal-oil-nsl-od-err.ts | 43 +++++ ...ric-separator-literal-oil-od-nsl-od-err.ts | 43 +++++ ...t-numeric-separator-literal-unicode-err.ts | 35 +++++ .../language/literals/numeric/7.8.3-1gs.ts | 14 ++ .../language/literals/numeric/7.8.3-2gs.ts | 18 +++ .../literals/numeric/S7.8.3_A6.1_T1.ts | 15 ++ .../literals/numeric/S7.8.3_A6.1_T2.ts | 15 ++ .../literals/numeric/S7.8.3_A6.2_T1.ts | 15 ++ .../literals/numeric/S7.8.3_A6.2_T2.ts | 15 ++ .../literals/numeric/binary-invalid-digit.ts | 22 +++ .../numeric/binary-invalid-leading.ts | 22 +++ .../numeric/binary-invalid-truncated.ts | 22 +++ .../numeric/binary-invalid-unicode.ts | 22 +++ .../numeric/legacy-octal-integer-strict.ts | 32 ++++ .../legacy-octal-integery-000-strict.ts | 14 ++ .../legacy-octal-integery-005-strict.ts | 14 ++ .../legacy-octal-integery-01-strict.ts | 14 ++ .../legacy-octal-integery-010-strict.ts | 14 ++ .../legacy-octal-integery-06-strict.ts | 14 ++ .../legacy-octal-integery-07-strict.ts | 14 ++ .../non-octal-decimal-integer-strict.ts | 38 +++++ .../numeric/numeric-followed-by-ident.ts | 17 ++ ...ric-separator-literal-bil-bd-nsl-bd-err.ts | 33 ++++ ...separator-literal-bil-nsl-bd-dunder-err.ts | 33 ++++ ...umeric-separator-literal-bil-nsl-bd-err.ts | 33 ++++ ...separator-literal-dd-nsl-dds-dunder-err.ts | 25 +++ .../numeric-separator-literal-dd-nsl-err.ts | 27 ++++ ...eparator-literal-dds-nsl-dds-dunder-err.ts | 25 +++ .../numeric-separator-literal-dds-nsl-err.ts | 28 ++++ ...rator-literal-dil-dot-dds-nsl-ep-dd-err.ts | 27 ++++ ...ic-separator-literal-dil-dot-nsl-dd-err.ts | 27 ++++ ...ic-separator-literal-dil-dot-nsl-ep-err.ts | 30 ++++ ...meric-separator-literal-dil-dot-nsl-err.ts | 28 ++++ ...ic-separator-literal-dot-dds-nsl-ep-err.ts | 29 ++++ ...umeric-separator-literal-dot-nsl-ep-err.ts | 30 ++++ .../numeric-separator-literal-dot-nsl-err.ts | 28 ++++ ...ric-separator-literal-hil-hd-nsl-hd-err.ts | 33 ++++ ...separator-literal-hil-nsl-hd-dunder-err.ts | 33 ++++ ...umeric-separator-literal-hil-nsl-hd-err.ts | 33 ++++ .../numeric-separator-literal-lol-00-err.ts | 40 +++++ .../numeric-separator-literal-lol-01-err.ts | 40 +++++ .../numeric-separator-literal-lol-07-err.ts | 42 +++++ .../numeric-separator-literal-lol-0_0-err.ts | 40 +++++ .../numeric-separator-literal-lol-0_1-err.ts | 40 +++++ .../numeric-separator-literal-lol-0_7-err.ts | 41 +++++ ...meric-separator-literal-nonoctal-08-err.ts | 37 +++++ ...meric-separator-literal-nonoctal-09-err.ts | 37 +++++ ...eric-separator-literal-nonoctal-0_8-err.ts | 37 +++++ ...eric-separator-literal-nonoctal-0_9-err.ts | 37 +++++ ...eparator-literal-nzd-nsl-dds-dunder-err.ts | 28 ++++ ...or-literal-nzd-nsl-dds-leading-zero-err.ts | 26 ++++ ...separator-literal-oil-nsl-od-dunder-err.ts | 33 ++++ ...umeric-separator-literal-oil-nsl-od-err.ts | 33 ++++ ...ric-separator-literal-oil-od-nsl-od-err.ts | 33 ++++ .../numeric-separator-literal-unicode-err.ts | 25 +++ .../literals/numeric/octal-invalid-digit.ts | 22 +++ .../literals/numeric/octal-invalid-leading.ts | 22 +++ .../numeric/octal-invalid-truncated.ts | 22 +++ .../literals/numeric/octal-invalid-unicode.ts | 22 +++ .../literals/regexp/S7.8.5_A1.2_T1.ts | 22 +++ .../literals/regexp/S7.8.5_A1.2_T2.ts | 25 +++ .../literals/regexp/S7.8.5_A1.2_T3.ts | 26 ++++ .../literals/regexp/S7.8.5_A1.2_T4.ts | 26 ++++ .../literals/regexp/S7.8.5_A1.3_T1.ts | 29 ++++ .../literals/regexp/S7.8.5_A1.3_T3.ts | 29 ++++ .../literals/regexp/S7.8.5_A1.5_T1.ts | 23 +++ .../literals/regexp/S7.8.5_A1.5_T3.ts | 22 +++ .../literals/regexp/S7.8.5_A2.2_T1.ts | 22 +++ .../literals/regexp/S7.8.5_A2.2_T2.ts | 22 +++ .../literals/regexp/S7.8.5_A2.3_T1.ts | 32 ++++ .../literals/regexp/S7.8.5_A2.3_T3.ts | 33 ++++ .../literals/regexp/S7.8.5_A2.5_T1.ts | 28 ++++ .../literals/regexp/S7.8.5_A2.5_T3.ts | 28 ++++ .../literals/regexp/early-err-bad-flag.ts | 17 ++ .../literals/regexp/early-err-dup-flag.ts | 17 ++ .../regexp/early-err-flags-unicode-escape.ts | 17 ++ .../literals/regexp/early-err-pattern.ts | 16 ++ .../regexp/invalid-braced-quantifier-exact.ts | 24 +++ .../regexp/invalid-braced-quantifier-lower.ts | 24 +++ .../regexp/invalid-braced-quantifier-range.ts | 24 +++ .../regexp/invalid-optional-lookbehind.ts | 19 +++ .../invalid-optional-negative-lookbehind.ts | 19 +++ .../regexp/invalid-range-lookbehind.ts | 19 +++ .../invalid-range-negative-lookbehind.ts | 19 +++ .../invalid-dangling-groupname-2-u.ts | 19 +++ .../invalid-dangling-groupname-2.ts | 19 +++ .../invalid-dangling-groupname-3-u.ts | 19 +++ .../invalid-dangling-groupname-3.ts | 19 +++ .../invalid-dangling-groupname-4-u.ts | 19 +++ .../invalid-dangling-groupname-4.ts | 19 +++ .../invalid-dangling-groupname-5.ts | 19 +++ .../invalid-dangling-groupname-u.ts | 19 +++ ...alid-dangling-groupname-without-group-u.ts | 19 +++ .../invalid-dangling-groupname.ts | 19 +++ .../invalid-duplicate-groupspecifier-2-u.ts | 18 +++ .../invalid-duplicate-groupspecifier-2.ts | 18 +++ .../invalid-duplicate-groupspecifier-u.ts | 18 +++ .../invalid-duplicate-groupspecifier.ts | 18 +++ .../invalid-empty-groupspecifier-u.ts | 14 ++ .../invalid-empty-groupspecifier.ts | 14 ++ .../invalid-identity-escape-in-capture-u.ts | 14 ++ .../invalid-incomplete-groupname-2-u.ts | 14 ++ .../invalid-incomplete-groupname-2.ts | 14 ++ .../invalid-incomplete-groupname-3-u.ts | 14 ++ .../invalid-incomplete-groupname-3.ts | 14 ++ .../invalid-incomplete-groupname-4.ts | 14 ++ .../invalid-incomplete-groupname-5.ts | 14 ++ .../invalid-incomplete-groupname-6.ts | 14 ++ .../invalid-incomplete-groupname-u.ts | 14 ++ ...-incomplete-groupname-without-group-2-u.ts | 14 ++ ...-incomplete-groupname-without-group-3-u.ts | 14 ++ ...id-incomplete-groupname-without-group-u.ts | 14 ++ .../invalid-incomplete-groupname.ts | 14 ++ ...alid-non-id-continue-groupspecifier-4-u.ts | 14 ++ ...nvalid-non-id-continue-groupspecifier-4.ts | 14 ++ .../invalid-non-id-continue-groupspecifier.ts | 14 ++ ...invalid-non-id-start-groupspecifier-2-u.ts | 14 ++ .../invalid-non-id-start-groupspecifier-2.ts | 14 ++ .../invalid-non-id-start-groupspecifier-3.ts | 14 ++ ...invalid-non-id-start-groupspecifier-4-u.ts | 14 ++ .../invalid-non-id-start-groupspecifier-4.ts | 14 ++ ...invalid-non-id-start-groupspecifier-5-u.ts | 14 ++ .../invalid-non-id-start-groupspecifier-5.ts | 14 ++ .../invalid-non-id-start-groupspecifier-6.ts | 14 ++ .../invalid-non-id-start-groupspecifier-7.ts | 14 ++ ...invalid-non-id-start-groupspecifier-8-u.ts | 14 ++ .../invalid-non-id-start-groupspecifier-8.ts | 14 ++ ...invalid-non-id-start-groupspecifier-9-u.ts | 14 ++ .../invalid-non-id-start-groupspecifier-u.ts | 14 ++ .../invalid-non-id-start-groupspecifier.ts | 14 ++ .../invalid-numeric-groupspecifier-u.ts | 14 ++ .../invalid-numeric-groupspecifier.ts | 14 ++ ...id-punctuator-starting-groupspecifier-u.ts | 14 ++ ...alid-punctuator-starting-groupspecifier.ts | 14 ++ ...alid-punctuator-within-groupspecifier-u.ts | 14 ++ ...nvalid-punctuator-within-groupspecifier.ts | 14 ++ .../invalid-unterminated-groupspecifier-u.ts | 14 ++ .../invalid-unterminated-groupspecifier.ts | 14 ++ .../regexp-first-char-no-line-separator.ts | 32 ++++ ...egexp-first-char-no-paragraph-separator.ts | 32 ++++ .../regexp-source-char-no-line-separator.ts | 31 ++++ ...gexp-source-char-no-paragraph-separator.ts | 32 ++++ .../literals/regexp/u-invalid-class-escape.ts | 22 +++ .../regexp/u-invalid-extended-pattern-char.ts | 19 +++ .../regexp/u-invalid-identity-escape.ts | 21 +++ .../regexp/u-invalid-legacy-octal-escape.ts | 24 +++ ...nvalid-non-empty-class-ranges-no-dash-a.ts | 31 ++++ ...valid-non-empty-class-ranges-no-dash-ab.ts | 31 ++++ ...nvalid-non-empty-class-ranges-no-dash-b.ts | 31 ++++ .../u-invalid-non-empty-class-ranges.ts | 30 ++++ .../regexp/u-invalid-oob-decimal-escape.ts | 19 +++ .../regexp/u-invalid-optional-lookahead.ts | 19 +++ .../regexp/u-invalid-optional-lookbehind.ts | 19 +++ .../u-invalid-optional-negative-lookahead.ts | 19 +++ .../u-invalid-optional-negative-lookbehind.ts | 19 +++ .../regexp/u-invalid-range-lookahead.ts | 19 +++ .../regexp/u-invalid-range-lookbehind.ts | 19 +++ .../u-invalid-range-negative-lookahead.ts | 19 +++ .../u-invalid-range-negative-lookbehind.ts | 19 +++ .../literals/regexp/u-unicode-esc-bounds.ts | 19 +++ .../literals/regexp/u-unicode-esc-non-hex.ts | 14 ++ .../literals/regexp/unicode-escape-nls-err.ts | 72 +++++++++ .../literals/string/S7.8.4_A1.1_T1.ts | 17 ++ .../literals/string/S7.8.4_A1.1_T2.ts | 18 +++ .../literals/string/S7.8.4_A1.2_T1.ts | 17 ++ .../literals/string/S7.8.4_A1.2_T2.ts | 18 +++ .../literals/string/S7.8.4_A3.1_T1.ts | 15 ++ .../literals/string/S7.8.4_A3.1_T2.ts | 15 ++ .../literals/string/S7.8.4_A3.2_T1.ts | 15 ++ .../literals/string/S7.8.4_A3.2_T2.ts | 15 ++ .../literals/string/S7.8.4_A4.3_T1.ts | 15 ++ .../literals/string/S7.8.4_A4.3_T2.ts | 15 ++ .../literals/string/S7.8.4_A7.1_T4.ts | 17 ++ .../literals/string/S7.8.4_A7.2_T1.ts | 15 ++ .../literals/string/S7.8.4_A7.2_T2.ts | 15 ++ .../literals/string/S7.8.4_A7.2_T3.ts | 15 ++ .../literals/string/S7.8.4_A7.2_T4.ts | 15 ++ .../literals/string/S7.8.4_A7.2_T5.ts | 15 ++ .../literals/string/S7.8.4_A7.2_T6.ts | 15 ++ ...scape-sequence-1-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-2-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-3-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-4-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-5-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-6-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-7-strict-explicit-pragma.ts | 25 +++ ...scape-sequence-8-strict-explicit-pragma.ts | 25 +++ ...gacy-non-octal-escape-sequence-8-strict.ts | 30 ++++ ...scape-sequence-9-strict-explicit-pragma.ts | 25 +++ ...gacy-non-octal-escape-sequence-9-strict.ts | 30 ++++ ...legacy-non-octal-escape-sequence-strict.ts | 26 ++++ ...y-octal-escape-sequence-prologue-strict.ts | 18 +++ .../legacy-octal-escape-sequence-strict.ts | 26 ++++ .../string/unicode-escape-nls-err-double.ts | 48 ++++++ .../string/unicode-escape-nls-err-single.ts | 48 ++++++ .../unicode-escape-no-hex-err-double.ts | 45 ++++++ .../unicode-escape-no-hex-err-single.ts | 45 ++++++ 1165 files changed, 40251 insertions(+) create mode 100644 tests/baselines/reference/7.8.3-1gs.errors.txt create mode 100644 tests/baselines/reference/7.8.3-1gs.js create mode 100644 tests/baselines/reference/7.8.3-1gs.symbols create mode 100644 tests/baselines/reference/7.8.3-1gs.types create mode 100644 tests/baselines/reference/7.8.3-2gs.errors.txt create mode 100644 tests/baselines/reference/7.8.3-2gs.js create mode 100644 tests/baselines/reference/7.8.3-2gs.symbols create mode 100644 tests/baselines/reference/7.8.3-2gs.types create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.js create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.symbols create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.types create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.js create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.symbols create mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.types create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.js create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.symbols create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.types create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.js create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.symbols create mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.js create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.symbols create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.types create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.js create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.symbols create mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.js create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.symbols create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.types create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.js create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.symbols create mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.js create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.symbols create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.types create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.js create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.symbols create mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.js create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.symbols create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.types create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.js create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.symbols create mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.js create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.symbols create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.types create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.js create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.symbols create mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.js create mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.types create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.js create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.types create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.js create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.types create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.js create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.types create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.js create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.types create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.js create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.types create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.js create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.symbols create mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.types create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.js create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.types create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.js create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.types create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.js create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.types create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.js create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.types create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.js create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.types create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.js create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.types create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.js create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.types create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.js create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.symbols create mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.types create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.js create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.symbols create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.types create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.js create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.symbols create mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.types create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.js create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.symbols create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.types create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.js create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.symbols create mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.types create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.js create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.symbols create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.types create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.js create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.symbols create mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.types create mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.errors.txt create mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.js create mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.symbols create mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols create mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types create mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.errors.txt create mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.js create mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.symbols create mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.types create mode 100644 tests/baselines/reference/binary-invalid-digit.errors.txt create mode 100644 tests/baselines/reference/binary-invalid-digit.js create mode 100644 tests/baselines/reference/binary-invalid-digit.symbols create mode 100644 tests/baselines/reference/binary-invalid-digit.types create mode 100644 tests/baselines/reference/binary-invalid-leading.errors.txt create mode 100644 tests/baselines/reference/binary-invalid-leading.js create mode 100644 tests/baselines/reference/binary-invalid-leading.symbols create mode 100644 tests/baselines/reference/binary-invalid-leading.types create mode 100644 tests/baselines/reference/binary-invalid-truncated.errors.txt create mode 100644 tests/baselines/reference/binary-invalid-truncated.js create mode 100644 tests/baselines/reference/binary-invalid-truncated.symbols create mode 100644 tests/baselines/reference/binary-invalid-truncated.types create mode 100644 tests/baselines/reference/binary-invalid-unicode.errors.txt create mode 100644 tests/baselines/reference/binary-invalid-unicode.js create mode 100644 tests/baselines/reference/binary-invalid-unicode.symbols create mode 100644 tests/baselines/reference/binary-invalid-unicode.types create mode 100644 tests/baselines/reference/early-err-bad-flag.errors.txt create mode 100644 tests/baselines/reference/early-err-bad-flag.js create mode 100644 tests/baselines/reference/early-err-bad-flag.symbols create mode 100644 tests/baselines/reference/early-err-bad-flag.types create mode 100644 tests/baselines/reference/early-err-dup-flag.errors.txt create mode 100644 tests/baselines/reference/early-err-dup-flag.js create mode 100644 tests/baselines/reference/early-err-dup-flag.symbols create mode 100644 tests/baselines/reference/early-err-dup-flag.types create mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.errors.txt create mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.js create mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.symbols create mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.types create mode 100644 tests/baselines/reference/early-err-pattern.errors.txt create mode 100644 tests/baselines/reference/early-err-pattern.js create mode 100644 tests/baselines/reference/early-err-pattern.symbols create mode 100644 tests/baselines/reference/early-err-pattern.types create mode 100644 tests/baselines/reference/exponent-part.errors.txt create mode 100644 tests/baselines/reference/exponent-part.js create mode 100644 tests/baselines/reference/exponent-part.symbols create mode 100644 tests/baselines/reference/exponent-part.types create mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.errors.txt create mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.js create mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.symbols create mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.types create mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt create mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.js create mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.symbols create mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.types create mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt create mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.js create mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.symbols create mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.types create mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.errors.txt create mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.js create mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.symbols create mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.types create mode 100644 tests/baselines/reference/invalid-dangling-groupname.errors.txt create mode 100644 tests/baselines/reference/invalid-dangling-groupname.js create mode 100644 tests/baselines/reference/invalid-dangling-groupname.symbols create mode 100644 tests/baselines/reference/invalid-dangling-groupname.types create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.js create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.types create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt create mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.js create mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols create mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.types create mode 100644 tests/baselines/reference/invalid-incomplete-groupname.errors.txt create mode 100644 tests/baselines/reference/invalid-incomplete-groupname.js create mode 100644 tests/baselines/reference/invalid-incomplete-groupname.symbols create mode 100644 tests/baselines/reference/invalid-incomplete-groupname.types create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-optional-lookbehind.errors.txt create mode 100644 tests/baselines/reference/invalid-optional-lookbehind.js create mode 100644 tests/baselines/reference/invalid-optional-lookbehind.symbols create mode 100644 tests/baselines/reference/invalid-optional-lookbehind.types create mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt create mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.js create mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.symbols create mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.types create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.types create mode 100644 tests/baselines/reference/invalid-range-lookbehind.errors.txt create mode 100644 tests/baselines/reference/invalid-range-lookbehind.js create mode 100644 tests/baselines/reference/invalid-range-lookbehind.symbols create mode 100644 tests/baselines/reference/invalid-range-lookbehind.types create mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt create mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.js create mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.symbols create mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.types create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.errors.txt create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.js create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.symbols create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.types create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.errors.txt create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.js create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.symbols create mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols create mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.js create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integer-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integer-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integer-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integer-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.types create mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.js create mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.symbols create mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.types create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.js create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.symbols create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.types create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.js create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.symbols create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.types create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.js create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.symbols create mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.types create mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt create mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js create mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols create mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types create mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt create mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.js create mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.symbols create mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.types create mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt create mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.js create mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.symbols create mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.types create mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt create mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.js create mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.symbols create mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.types create mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt create mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.js create mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.symbols create mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.types create mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.errors.txt create mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.js create mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.symbols create mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.types create mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.errors.txt create mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.js create mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.symbols create mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.types create mode 100644 tests/baselines/reference/numeric-followed-by-ident.errors.txt create mode 100644 tests/baselines/reference/numeric-followed-by-ident.js create mode 100644 tests/baselines/reference/numeric-followed-by-ident.symbols create mode 100644 tests/baselines/reference/numeric-followed-by-ident.types create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types create mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt create mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.js create mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.symbols create mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.types create mode 100644 tests/baselines/reference/octal-invalid-digit.errors.txt create mode 100644 tests/baselines/reference/octal-invalid-digit.js create mode 100644 tests/baselines/reference/octal-invalid-digit.symbols create mode 100644 tests/baselines/reference/octal-invalid-digit.types create mode 100644 tests/baselines/reference/octal-invalid-leading.errors.txt create mode 100644 tests/baselines/reference/octal-invalid-leading.js create mode 100644 tests/baselines/reference/octal-invalid-leading.symbols create mode 100644 tests/baselines/reference/octal-invalid-leading.types create mode 100644 tests/baselines/reference/octal-invalid-truncated.errors.txt create mode 100644 tests/baselines/reference/octal-invalid-truncated.js create mode 100644 tests/baselines/reference/octal-invalid-truncated.symbols create mode 100644 tests/baselines/reference/octal-invalid-truncated.types create mode 100644 tests/baselines/reference/octal-invalid-unicode.errors.txt create mode 100644 tests/baselines/reference/octal-invalid-unicode.js create mode 100644 tests/baselines/reference/octal-invalid-unicode.symbols create mode 100644 tests/baselines/reference/octal-invalid-unicode.types create mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt create mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.js create mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.symbols create mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.types create mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt create mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.js create mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols create mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.types create mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt create mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.js create mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.symbols create mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.types create mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt create mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.js create mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols create mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.types create mode 100644 tests/baselines/reference/u-invalid-class-escape.errors.txt create mode 100644 tests/baselines/reference/u-invalid-class-escape.js create mode 100644 tests/baselines/reference/u-invalid-class-escape.symbols create mode 100644 tests/baselines/reference/u-invalid-class-escape.types create mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt create mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.js create mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.symbols create mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.types create mode 100644 tests/baselines/reference/u-invalid-identity-escape.errors.txt create mode 100644 tests/baselines/reference/u-invalid-identity-escape.js create mode 100644 tests/baselines/reference/u-invalid-identity-escape.symbols create mode 100644 tests/baselines/reference/u-invalid-identity-escape.types create mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt create mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.js create mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.symbols create mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.types create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.js create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols create mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.types create mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt create mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.js create mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.symbols create mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.types create mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.errors.txt create mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.js create mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.symbols create mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.types create mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt create mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.js create mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.symbols create mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.types create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.js create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.types create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.js create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.symbols create mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.types create mode 100644 tests/baselines/reference/u-invalid-range-lookahead.errors.txt create mode 100644 tests/baselines/reference/u-invalid-range-lookahead.js create mode 100644 tests/baselines/reference/u-invalid-range-lookahead.symbols create mode 100644 tests/baselines/reference/u-invalid-range-lookahead.types create mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.errors.txt create mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.js create mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.symbols create mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.types create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.js create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.symbols create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.types create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.js create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.symbols create mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.types create mode 100644 tests/baselines/reference/u-unicode-esc-bounds.errors.txt create mode 100644 tests/baselines/reference/u-unicode-esc-bounds.js create mode 100644 tests/baselines/reference/u-unicode-esc-bounds.symbols create mode 100644 tests/baselines/reference/u-unicode-esc-bounds.types create mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.errors.txt create mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.js create mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.symbols create mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.types create mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.errors.txt create mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.js create mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.symbols create mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.types create mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.errors.txt create mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.js create mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.symbols create mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.types create mode 100644 tests/baselines/reference/unicode-escape-nls-err.errors.txt create mode 100644 tests/baselines/reference/unicode-escape-nls-err.js create mode 100644 tests/baselines/reference/unicode-escape-nls-err.symbols create mode 100644 tests/baselines/reference/unicode-escape-nls-err.types create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.js create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.symbols create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.types create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.js create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.symbols create mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.types create mode 100644 tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts create mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-range-negative-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookahead.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookbehind.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts create mode 100644 tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts create mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts diff --git a/tests/baselines/reference/7.8.3-1gs.errors.txt b/tests/baselines/reference/7.8.3-1gs.errors.txt new file mode 100644 index 0000000000000..4dc80fd54deaa --- /dev/null +++ b/tests/baselines/reference/7.8.3-1gs.errors.txt @@ -0,0 +1,21 @@ +7.8.3-1gs.ts(14,9): error TS1121: Octal literals are not allowed. Use the syntax '0o10'. + + +==== 7.8.3-1gs.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-1gs + description: Strict Mode - octal extension(010) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + var y = 010; + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o10'. + \ No newline at end of file diff --git a/tests/baselines/reference/7.8.3-1gs.js b/tests/baselines/reference/7.8.3-1gs.js new file mode 100644 index 0000000000000..f3edc50c03d78 --- /dev/null +++ b/tests/baselines/reference/7.8.3-1gs.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts] //// + +//// [7.8.3-1gs.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1gs +description: Strict Mode - octal extension(010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var y = 010; + + +//// [7.8.3-1gs.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-1gs +description: Strict Mode - octal extension(010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +var y = 8; diff --git a/tests/baselines/reference/7.8.3-1gs.symbols b/tests/baselines/reference/7.8.3-1gs.symbols new file mode 100644 index 0000000000000..1cda6c4a99171 --- /dev/null +++ b/tests/baselines/reference/7.8.3-1gs.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts] //// + +=== 7.8.3-1gs.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1gs +description: Strict Mode - octal extension(010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var y = 010; +>y : Symbol(y, Decl(7.8.3-1gs.ts, 13, 3)) + diff --git a/tests/baselines/reference/7.8.3-1gs.types b/tests/baselines/reference/7.8.3-1gs.types new file mode 100644 index 0000000000000..862baca664d6c --- /dev/null +++ b/tests/baselines/reference/7.8.3-1gs.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts] //// + +=== 7.8.3-1gs.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1gs +description: Strict Mode - octal extension(010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var y = 010; +>y : number +>010 : 8 + diff --git a/tests/baselines/reference/7.8.3-2gs.errors.txt b/tests/baselines/reference/7.8.3-2gs.errors.txt new file mode 100644 index 0000000000000..682638a41319a --- /dev/null +++ b/tests/baselines/reference/7.8.3-2gs.errors.txt @@ -0,0 +1,25 @@ +7.8.3-2gs.ts(18,5): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + + +==== 7.8.3-2gs.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-2gs + description: > + Strict Mode - octal extension is forbidden in strict mode (after a + hex number is assigned to a variable) + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + var a; + a = 0x1; + a = 01; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + \ No newline at end of file diff --git a/tests/baselines/reference/7.8.3-2gs.js b/tests/baselines/reference/7.8.3-2gs.js new file mode 100644 index 0000000000000..e86bf071e1da2 --- /dev/null +++ b/tests/baselines/reference/7.8.3-2gs.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts] //// + +//// [7.8.3-2gs.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-2gs +description: > + Strict Mode - octal extension is forbidden in strict mode (after a + hex number is assigned to a variable) +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var a; +a = 0x1; +a = 01; + + +//// [7.8.3-2gs.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-2gs +description: > + Strict Mode - octal extension is forbidden in strict mode (after a + hex number is assigned to a variable) +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +var a; +a = 0x1; +a = 1; diff --git a/tests/baselines/reference/7.8.3-2gs.symbols b/tests/baselines/reference/7.8.3-2gs.symbols new file mode 100644 index 0000000000000..131b1b05ac933 --- /dev/null +++ b/tests/baselines/reference/7.8.3-2gs.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts] //// + +=== 7.8.3-2gs.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-2gs +description: > + Strict Mode - octal extension is forbidden in strict mode (after a + hex number is assigned to a variable) +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var a; +>a : Symbol(a, Decl(7.8.3-2gs.ts, 15, 3)) + +a = 0x1; +>a : Symbol(a, Decl(7.8.3-2gs.ts, 15, 3)) + +a = 01; +>a : Symbol(a, Decl(7.8.3-2gs.ts, 15, 3)) + diff --git a/tests/baselines/reference/7.8.3-2gs.types b/tests/baselines/reference/7.8.3-2gs.types new file mode 100644 index 0000000000000..9766fcefb87db --- /dev/null +++ b/tests/baselines/reference/7.8.3-2gs.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts] //// + +=== 7.8.3-2gs.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-2gs +description: > + Strict Mode - octal extension is forbidden in strict mode (after a + hex number is assigned to a variable) +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var a; +>a : any + +a = 0x1; +>a = 0x1 : 1 +>a : any +>0x1 : 1 + +a = 01; +>a = 01 : 1 +>a : any +>01 : 1 + diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt b/tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt new file mode 100644 index 0000000000000..b292ee9fd98e2 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt @@ -0,0 +1,22 @@ +S7.8.3_A6.1_T1.ts(15,3): error TS1125: Hexadecimal digit expected. + + +==== S7.8.3_A6.1_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "HexIntegerLiteral :: 0(x/X) is incorrect" + es5id: 7.8.3_A6.1_T1 + description: Checking if execution of "0x" passes + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + 0x + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.js b/tests/baselines/reference/S7.8.3_A6.1_T1.js new file mode 100644 index 0000000000000..c401c183a769b --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T1.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts] //// + +//// [S7.8.3_A6.1_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T1 +description: Checking if execution of "0x" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0x + + +//// [S7.8.3_A6.1_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T1 +description: Checking if execution of "0x" passes +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +0x; diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.symbols b/tests/baselines/reference/S7.8.3_A6.1_T1.symbols new file mode 100644 index 0000000000000..984d3bcf02532 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T1.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts] //// + +=== S7.8.3_A6.1_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T1 +description: Checking if execution of "0x" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0x + diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.types b/tests/baselines/reference/S7.8.3_A6.1_T1.types new file mode 100644 index 0000000000000..990c6dfda3ce7 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T1.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts] //// + +=== S7.8.3_A6.1_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T1 +description: Checking if execution of "0x" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0x +>0x : 0 + diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt b/tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt new file mode 100644 index 0000000000000..90621ffaa6253 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt @@ -0,0 +1,22 @@ +S7.8.3_A6.1_T2.ts(15,3): error TS1125: Hexadecimal digit expected. + + +==== S7.8.3_A6.1_T2.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "HexIntegerLiteral :: 0(x/X) is incorrect" + es5id: 7.8.3_A6.1_T2 + description: Checking if execution of "0X" passes + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + 0X + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.js b/tests/baselines/reference/S7.8.3_A6.1_T2.js new file mode 100644 index 0000000000000..8e88f1b300dc8 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T2.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts] //// + +//// [S7.8.3_A6.1_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T2 +description: Checking if execution of "0X" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0X + + +//// [S7.8.3_A6.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T2 +description: Checking if execution of "0X" passes +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +0X; diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.symbols b/tests/baselines/reference/S7.8.3_A6.1_T2.symbols new file mode 100644 index 0000000000000..c7c9cdc0c272e --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T2.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts] //// + +=== S7.8.3_A6.1_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T2 +description: Checking if execution of "0X" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0X + diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.types b/tests/baselines/reference/S7.8.3_A6.1_T2.types new file mode 100644 index 0000000000000..755344a12d151 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.1_T2.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts] //// + +=== S7.8.3_A6.1_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T2 +description: Checking if execution of "0X" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0X +>0X : 0 + diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt b/tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt new file mode 100644 index 0000000000000..9e0fa4f5e0796 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt @@ -0,0 +1,25 @@ +S7.8.3_A6.2_T1.ts(15,3): error TS1125: Hexadecimal digit expected. +S7.8.3_A6.2_T1.ts(15,3): error TS2304: Cannot find name 'G'. + + +==== S7.8.3_A6.2_T1.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: 0xG is incorrect + es5id: 7.8.3_A6.2_T1 + description: Checking if execution of "0xG" fails + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + 0xG + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS2304: Cannot find name 'G'. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.js b/tests/baselines/reference/S7.8.3_A6.2_T1.js new file mode 100644 index 0000000000000..2941903133ca7 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T1.js @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts] //// + +//// [S7.8.3_A6.2_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T1 +description: Checking if execution of "0xG" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xG + + +//// [S7.8.3_A6.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T1 +description: Checking if execution of "0xG" fails +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +0x; +G; diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.symbols b/tests/baselines/reference/S7.8.3_A6.2_T1.symbols new file mode 100644 index 0000000000000..ecf535d8ff489 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T1.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts] //// + +=== S7.8.3_A6.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T1 +description: Checking if execution of "0xG" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xG + diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.types b/tests/baselines/reference/S7.8.3_A6.2_T1.types new file mode 100644 index 0000000000000..23809dc853d05 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T1.types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts] //// + +=== S7.8.3_A6.2_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T1 +description: Checking if execution of "0xG" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xG +>0x : 0 +>G : any + diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt b/tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt new file mode 100644 index 0000000000000..ef8f1a0e8c2d4 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt @@ -0,0 +1,25 @@ +S7.8.3_A6.2_T2.ts(15,3): error TS1125: Hexadecimal digit expected. +S7.8.3_A6.2_T2.ts(15,3): error TS2304: Cannot find name 'g'. + + +==== S7.8.3_A6.2_T2.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: 0xG is incorrect + es5id: 7.8.3_A6.2_T2 + description: Checking if execution of "0xg" fails + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + 0xg + +!!! error TS1125: Hexadecimal digit expected. + ~ +!!! error TS2304: Cannot find name 'g'. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.js b/tests/baselines/reference/S7.8.3_A6.2_T2.js new file mode 100644 index 0000000000000..020d212405162 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T2.js @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts] //// + +//// [S7.8.3_A6.2_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T2 +description: Checking if execution of "0xg" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xg + + +//// [S7.8.3_A6.2_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T2 +description: Checking if execution of "0xg" fails +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +0x; +g; diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.symbols b/tests/baselines/reference/S7.8.3_A6.2_T2.symbols new file mode 100644 index 0000000000000..72192ff90de5a --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T2.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts] //// + +=== S7.8.3_A6.2_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T2 +description: Checking if execution of "0xg" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xg + diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.types b/tests/baselines/reference/S7.8.3_A6.2_T2.types new file mode 100644 index 0000000000000..25333efa54a61 --- /dev/null +++ b/tests/baselines/reference/S7.8.3_A6.2_T2.types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts] //// + +=== S7.8.3_A6.2_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T2 +description: Checking if execution of "0xg" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xg +>0x : 0 +>g : any + diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt b/tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt new file mode 100644 index 0000000000000..784e7d73e049e --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt @@ -0,0 +1,27 @@ +S7.8.4_A1.1_T1.ts(17,3): error TS1005: ';' expected. +S7.8.4_A1.1_T1.ts(17,4): error TS1002: Unterminated string literal. + + +==== S7.8.4_A1.1_T1.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: \"DoubleStringCharacters_opt\"" + es5id: 7.8.4_A1.1_T1 + description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + """ + ~ +!!! error TS1005: ';' expected. + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.js b/tests/baselines/reference/S7.8.4_A1.1_T1.js new file mode 100644 index 0000000000000..74aaba3b3f4b1 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T1.js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts] //// + +//// [S7.8.4_A1.1_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T1 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +""" + + +//// [S7.8.4_A1.1_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T1 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +""; +"; diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.symbols b/tests/baselines/reference/S7.8.4_A1.1_T1.symbols new file mode 100644 index 0000000000000..5863e80527247 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T1.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts] //// + +=== S7.8.4_A1.1_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T1 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +""" + diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.types b/tests/baselines/reference/S7.8.4_A1.1_T1.types new file mode 100644 index 0000000000000..15b72257d33d5 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T1.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts] //// + +=== S7.8.4_A1.1_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T1 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +""" +>"" : "" +>" : "" + diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt b/tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt new file mode 100644 index 0000000000000..4ef4e829fbbb2 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt @@ -0,0 +1,28 @@ +S7.8.4_A1.1_T2.ts(17,2): error TS1002: Unterminated string literal. +S7.8.4_A1.1_T2.ts(18,2): error TS1002: Unterminated string literal. + + +==== S7.8.4_A1.1_T2.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: \"DoubleStringCharacters_opt\"" + es5id: 7.8.4_A1.1_T2 + description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + " + +!!! error TS1002: Unterminated string literal. + " + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.js b/tests/baselines/reference/S7.8.4_A1.1_T2.js new file mode 100644 index 0000000000000..7d3a8a175fb17 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T2.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts] //// + +//// [S7.8.4_A1.1_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T2 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +" +" + + +//// [S7.8.4_A1.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T2 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"; +"; diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.symbols b/tests/baselines/reference/S7.8.4_A1.1_T2.symbols new file mode 100644 index 0000000000000..60f9bca70c75d --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T2.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts] //// + +=== S7.8.4_A1.1_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T2 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +" +" + diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.types b/tests/baselines/reference/S7.8.4_A1.1_T2.types new file mode 100644 index 0000000000000..9c6959c7ab338 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.1_T2.types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts] //// + +=== S7.8.4_A1.1_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T2 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +" +>" : "" + +" +>" : "" + diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt b/tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt new file mode 100644 index 0000000000000..e0313dae5f9ac --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt @@ -0,0 +1,27 @@ +S7.8.4_A1.2_T1.ts(17,3): error TS1005: ';' expected. +S7.8.4_A1.2_T1.ts(17,4): error TS1002: Unterminated string literal. + + +==== S7.8.4_A1.2_T1.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: 'SingleStringCharacters_opt'" + es5id: 7.8.4_A1.2_T1 + description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + ''' + ~ +!!! error TS1005: ';' expected. + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.js b/tests/baselines/reference/S7.8.4_A1.2_T1.js new file mode 100644 index 0000000000000..5f1e2cf091954 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T1.js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts] //// + +//// [S7.8.4_A1.2_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T1 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +''' + + +//// [S7.8.4_A1.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T1 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +''; +'; diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.symbols b/tests/baselines/reference/S7.8.4_A1.2_T1.symbols new file mode 100644 index 0000000000000..f26c4e07c77bd --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T1.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts] //// + +=== S7.8.4_A1.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T1 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +''' + diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.types b/tests/baselines/reference/S7.8.4_A1.2_T1.types new file mode 100644 index 0000000000000..5456502a94046 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T1.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts] //// + +=== S7.8.4_A1.2_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T1 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +''' +>'' : "" +>' : "" + diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt b/tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt new file mode 100644 index 0000000000000..03109eb22c268 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt @@ -0,0 +1,28 @@ +S7.8.4_A1.2_T2.ts(17,2): error TS1002: Unterminated string literal. +S7.8.4_A1.2_T2.ts(18,2): error TS1002: Unterminated string literal. + + +==== S7.8.4_A1.2_T2.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: 'SingleStringCharacters_opt'" + es5id: 7.8.4_A1.2_T2 + description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + ' + +!!! error TS1002: Unterminated string literal. + ' + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.js b/tests/baselines/reference/S7.8.4_A1.2_T2.js new file mode 100644 index 0000000000000..150236624a17d --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T2.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts] //// + +//// [S7.8.4_A1.2_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T2 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +' +' + + +//// [S7.8.4_A1.2_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T2 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +'; +'; diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.symbols b/tests/baselines/reference/S7.8.4_A1.2_T2.symbols new file mode 100644 index 0000000000000..5ae7def319b0f --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T2.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts] //// + +=== S7.8.4_A1.2_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T2 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +' +' + diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.types b/tests/baselines/reference/S7.8.4_A1.2_T2.types new file mode 100644 index 0000000000000..e268c73f8a405 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A1.2_T2.types @@ -0,0 +1,25 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts] //// + +=== S7.8.4_A1.2_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T2 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +' +>' : "" + +' +>' : "" + diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt b/tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt new file mode 100644 index 0000000000000..c56a6869dd335 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A3.1_T1.ts(15,4): error TS1002: Unterminated string literal. + + +==== S7.8.4_A3.1_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: \"\\\" or '\\' is not correct" + es5id: 7.8.4_A3.1_T1 + description: Checking if execution of "\" fails + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\" + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.js b/tests/baselines/reference/S7.8.4_A3.1_T1.js new file mode 100644 index 0000000000000..1ac39c4909010 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T1.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts] //// + +//// [S7.8.4_A3.1_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T1 +description: Checking if execution of "\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\" + + +//// [S7.8.4_A3.1_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T1 +description: Checking if execution of "\" fails +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\"; diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.symbols b/tests/baselines/reference/S7.8.4_A3.1_T1.symbols new file mode 100644 index 0000000000000..b1d345b2d72e3 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T1.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts] //// + +=== S7.8.4_A3.1_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T1 +description: Checking if execution of "\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\" + diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.types b/tests/baselines/reference/S7.8.4_A3.1_T1.types new file mode 100644 index 0000000000000..8244f6656672c --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T1.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts] //// + +=== S7.8.4_A3.1_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T1 +description: Checking if execution of "\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\" +>"\" : "\"" + diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt b/tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt new file mode 100644 index 0000000000000..b3474f786086f --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A3.1_T2.ts(15,4): error TS1002: Unterminated string literal. + + +==== S7.8.4_A3.1_T2.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: \"\\\" or '\\' is not correct" + es5id: 7.8.4_A3.1_T2 + description: Checking if execution of "'\'" fails + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + '\' + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.js b/tests/baselines/reference/S7.8.4_A3.1_T2.js new file mode 100644 index 0000000000000..e44f2d17870b6 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T2.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts] //// + +//// [S7.8.4_A3.1_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T2 +description: Checking if execution of "'\'" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\' + + +//// [S7.8.4_A3.1_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T2 +description: Checking if execution of "'\'" fails +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +'\'; diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.symbols b/tests/baselines/reference/S7.8.4_A3.1_T2.symbols new file mode 100644 index 0000000000000..805fc1c3512ab --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T2.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts] //// + +=== S7.8.4_A3.1_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T2 +description: Checking if execution of "'\'" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\' + diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.types b/tests/baselines/reference/S7.8.4_A3.1_T2.types new file mode 100644 index 0000000000000..4d4c2c64b0854 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.1_T2.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts] //// + +=== S7.8.4_A3.1_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T2 +description: Checking if execution of "'\'" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\' +>'\' : "'" + diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt b/tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt new file mode 100644 index 0000000000000..ba821b67610c1 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A3.2_T1.ts(15,6): error TS1002: Unterminated string literal. + + +==== S7.8.4_A3.2_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" + es5id: 7.8.4_A3.2_T1 + description: Checking if execution of "\\\" fails + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\\\" + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.js b/tests/baselines/reference/S7.8.4_A3.2_T1.js new file mode 100644 index 0000000000000..9c4b8200a80b1 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T1.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts] //// + +//// [S7.8.4_A3.2_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T1 +description: Checking if execution of "\\\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\\\" + + +//// [S7.8.4_A3.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T1 +description: Checking if execution of "\\\" fails +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\\\"; diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.symbols b/tests/baselines/reference/S7.8.4_A3.2_T1.symbols new file mode 100644 index 0000000000000..9c447033297f3 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T1.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts] //// + +=== S7.8.4_A3.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T1 +description: Checking if execution of "\\\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\\\" + diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.types b/tests/baselines/reference/S7.8.4_A3.2_T1.types new file mode 100644 index 0000000000000..a0ed040d3c498 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T1.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts] //// + +=== S7.8.4_A3.2_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T1 +description: Checking if execution of "\\\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\\\" +>"\\\" : "\\\"" + diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt b/tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt new file mode 100644 index 0000000000000..1927cbe4b778e --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A3.2_T2.ts(15,6): error TS1002: Unterminated string literal. + + +==== S7.8.4_A3.2_T2.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" + es5id: 7.8.4_A3.2_T2 + description: Checking if execution of '\\\' fails + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + '\\\' + +!!! error TS1002: Unterminated string literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.js b/tests/baselines/reference/S7.8.4_A3.2_T2.js new file mode 100644 index 0000000000000..ecbb41c705f26 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T2.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts] //// + +//// [S7.8.4_A3.2_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T2 +description: Checking if execution of '\\\' fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\\\' + + +//// [S7.8.4_A3.2_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T2 +description: Checking if execution of '\\\' fails +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +'\\\'; diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.symbols b/tests/baselines/reference/S7.8.4_A3.2_T2.symbols new file mode 100644 index 0000000000000..3052cd76a5c59 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T2.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts] //// + +=== S7.8.4_A3.2_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T2 +description: Checking if execution of '\\\' fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\\\' + diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.types b/tests/baselines/reference/S7.8.4_A3.2_T2.types new file mode 100644 index 0000000000000..d5eacae9de9b9 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A3.2_T2.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts] //// + +=== S7.8.4_A3.2_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T2 +description: Checking if execution of '\\\' fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\\\' +>'\\\' : "\\'" + diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt b/tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt new file mode 100644 index 0000000000000..8ae29e946e26a --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A4.3_T1.ts(15,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + + +==== S7.8.4_A4.3_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: NonEscapeSequence is not EscapeCharacter + es5id: 7.8.4_A4.3_T1 + description: "EscapeCharacter :: DecimalDigits :: 1" + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + "\1" + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.js b/tests/baselines/reference/S7.8.4_A4.3_T1.js new file mode 100644 index 0000000000000..caabb26390afc --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T1.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts] //// + +//// [S7.8.4_A4.3_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T1 +description: "EscapeCharacter :: DecimalDigits :: 1" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\1" + + +//// [S7.8.4_A4.3_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T1 +description: "EscapeCharacter :: DecimalDigits :: 1" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +"\1"; diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.symbols b/tests/baselines/reference/S7.8.4_A4.3_T1.symbols new file mode 100644 index 0000000000000..702f8989ffd79 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T1.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts] //// + +=== S7.8.4_A4.3_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T1 +description: "EscapeCharacter :: DecimalDigits :: 1" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\1" + diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.types b/tests/baselines/reference/S7.8.4_A4.3_T1.types new file mode 100644 index 0000000000000..71f24986703d5 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T1.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts] //// + +=== S7.8.4_A4.3_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T1 +description: "EscapeCharacter :: DecimalDigits :: 1" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\1" +>"\1" : "\u0001" + diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt b/tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt new file mode 100644 index 0000000000000..579fff15d68b2 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A4.3_T2.ts(15,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. + + +==== S7.8.4_A4.3_T2.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: NonEscapeSequence is not EscapeCharacter + es5id: 7.8.4_A4.3_T2 + description: "EscapeCharacter :: DecimalDigits :: 7" + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + "\7" + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.js b/tests/baselines/reference/S7.8.4_A4.3_T2.js new file mode 100644 index 0000000000000..f99e981264d0c --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T2.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts] //// + +//// [S7.8.4_A4.3_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T2 +description: "EscapeCharacter :: DecimalDigits :: 7" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\7" + + +//// [S7.8.4_A4.3_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T2 +description: "EscapeCharacter :: DecimalDigits :: 7" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +"\7"; diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.symbols b/tests/baselines/reference/S7.8.4_A4.3_T2.symbols new file mode 100644 index 0000000000000..cbf4e16f47c93 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T2.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts] //// + +=== S7.8.4_A4.3_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T2 +description: "EscapeCharacter :: DecimalDigits :: 7" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\7" + diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.types b/tests/baselines/reference/S7.8.4_A4.3_T2.types new file mode 100644 index 0000000000000..cd3ea86d7ae4f --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A4.3_T2.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts] //// + +=== S7.8.4_A4.3_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T2 +description: "EscapeCharacter :: DecimalDigits :: 7" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\7" +>"\7" : "\u0007" + diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt b/tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt new file mode 100644 index 0000000000000..22072b5fabe46 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt @@ -0,0 +1,24 @@ +S7.8.4_A7.1_T4.ts(17,7): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.1_T4.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: | + EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit + es5id: 7.8.4_A7.1_T4 + description: "UnicodeEscapeSequence :: u000G is incorrect" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK# + "\u000G" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.js b/tests/baselines/reference/S7.8.4_A7.1_T4.js new file mode 100644 index 0000000000000..e2fb4baa600dd --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.1_T4.js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts] //// + +//// [S7.8.4_A7.1_T4.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: | + EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +es5id: 7.8.4_A7.1_T4 +description: "UnicodeEscapeSequence :: u000G is incorrect" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK# +"\u000G" + + +//// [S7.8.4_A7.1_T4.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: | + EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +es5id: 7.8.4_A7.1_T4 +description: "UnicodeEscapeSequence :: u000G is incorrect" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK# +"\u000G"; diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.symbols b/tests/baselines/reference/S7.8.4_A7.1_T4.symbols new file mode 100644 index 0000000000000..7717635f34cd1 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.1_T4.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts] //// + +=== S7.8.4_A7.1_T4.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: | + EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +es5id: 7.8.4_A7.1_T4 +description: "UnicodeEscapeSequence :: u000G is incorrect" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK# +"\u000G" + diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.types b/tests/baselines/reference/S7.8.4_A7.1_T4.types new file mode 100644 index 0000000000000..b5cf529a9c407 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.1_T4.types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts] //// + +=== S7.8.4_A7.1_T4.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: | + EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +es5id: 7.8.4_A7.1_T4 +description: "UnicodeEscapeSequence :: u000G is incorrect" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK# +"\u000G" +>"\u000G" : "\\u000G" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt new file mode 100644 index 0000000000000..9d178547ff940 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A7.2_T1.ts(15,5): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.2_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" + es5id: 7.8.4_A7.2_T1 + description: ":: HexDigit :: 1" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\u1" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.js b/tests/baselines/reference/S7.8.4_A7.2_T1.js new file mode 100644 index 0000000000000..b5ca06471b5fc --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T1.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts] //// + +//// [S7.8.4_A7.2_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T1 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u1" + + +//// [S7.8.4_A7.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T1 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\u1"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.symbols b/tests/baselines/reference/S7.8.4_A7.2_T1.symbols new file mode 100644 index 0000000000000..bc9a934c07248 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T1.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts] //// + +=== S7.8.4_A7.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T1 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u1" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.types b/tests/baselines/reference/S7.8.4_A7.2_T1.types new file mode 100644 index 0000000000000..104426a343320 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T1.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts] //// + +=== S7.8.4_A7.2_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T1 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u1" +>"\u1" : "\\u1" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt new file mode 100644 index 0000000000000..cd634fb978a47 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A7.2_T2.ts(15,5): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.2_T2.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" + es5id: 7.8.4_A7.2_T2 + description: ":: HexDigit :: A" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\uA" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.js b/tests/baselines/reference/S7.8.4_A7.2_T2.js new file mode 100644 index 0000000000000..1a535979ec71c --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T2.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts] //// + +//// [S7.8.4_A7.2_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T2 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uA" + + +//// [S7.8.4_A7.2_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T2 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\uA"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.symbols b/tests/baselines/reference/S7.8.4_A7.2_T2.symbols new file mode 100644 index 0000000000000..580ae62cf8c96 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T2.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts] //// + +=== S7.8.4_A7.2_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T2 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uA" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.types b/tests/baselines/reference/S7.8.4_A7.2_T2.types new file mode 100644 index 0000000000000..aa1b6547d037a --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T2.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts] //// + +=== S7.8.4_A7.2_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T2 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uA" +>"\uA" : "\\uA" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt new file mode 100644 index 0000000000000..b7ce42ffe0881 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A7.2_T3.ts(15,6): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.2_T3.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" + es5id: 7.8.4_A7.2_T3 + description: ":: HexDigit :: 1" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\u11" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.js b/tests/baselines/reference/S7.8.4_A7.2_T3.js new file mode 100644 index 0000000000000..07ad67d3146d9 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T3.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts] //// + +//// [S7.8.4_A7.2_T3.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T3 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u11" + + +//// [S7.8.4_A7.2_T3.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T3 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\u11"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.symbols b/tests/baselines/reference/S7.8.4_A7.2_T3.symbols new file mode 100644 index 0000000000000..43ce0a3b3391e --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T3.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts] //// + +=== S7.8.4_A7.2_T3.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T3 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u11" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.types b/tests/baselines/reference/S7.8.4_A7.2_T3.types new file mode 100644 index 0000000000000..4323dfcdffd34 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T3.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts] //// + +=== S7.8.4_A7.2_T3.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T3 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u11" +>"\u11" : "\\u11" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt new file mode 100644 index 0000000000000..af6b1a9f71a40 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A7.2_T4.ts(15,6): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.2_T4.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" + es5id: 7.8.4_A7.2_T4 + description: ":: HexDigit :: A" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\uAA" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.js b/tests/baselines/reference/S7.8.4_A7.2_T4.js new file mode 100644 index 0000000000000..17e56673f6bea --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T4.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts] //// + +//// [S7.8.4_A7.2_T4.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T4 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAA" + + +//// [S7.8.4_A7.2_T4.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T4 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\uAA"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.symbols b/tests/baselines/reference/S7.8.4_A7.2_T4.symbols new file mode 100644 index 0000000000000..eb7b77f4e30c2 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T4.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts] //// + +=== S7.8.4_A7.2_T4.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T4 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAA" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.types b/tests/baselines/reference/S7.8.4_A7.2_T4.types new file mode 100644 index 0000000000000..09682aadbce67 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T4.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts] //// + +=== S7.8.4_A7.2_T4.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T4 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAA" +>"\uAA" : "\\uAA" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt new file mode 100644 index 0000000000000..21cc068d28d1b --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A7.2_T5.ts(15,7): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.2_T5.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" + es5id: 7.8.4_A7.2_T5 + description: ":: HexDigit :: 1" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\u111" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.js b/tests/baselines/reference/S7.8.4_A7.2_T5.js new file mode 100644 index 0000000000000..91023852ca5af --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T5.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts] //// + +//// [S7.8.4_A7.2_T5.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T5 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u111" + + +//// [S7.8.4_A7.2_T5.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T5 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\u111"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.symbols b/tests/baselines/reference/S7.8.4_A7.2_T5.symbols new file mode 100644 index 0000000000000..933ca679de3c4 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T5.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts] //// + +=== S7.8.4_A7.2_T5.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T5 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u111" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.types b/tests/baselines/reference/S7.8.4_A7.2_T5.types new file mode 100644 index 0000000000000..b4d6cc7733361 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T5.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts] //// + +=== S7.8.4_A7.2_T5.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T5 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u111" +>"\u111" : "\\u111" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt new file mode 100644 index 0000000000000..8823be5401043 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt @@ -0,0 +1,22 @@ +S7.8.4_A7.2_T6.ts(15,7): error TS1125: Hexadecimal digit expected. + + +==== S7.8.4_A7.2_T6.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" + es5id: 7.8.4_A7.2_T6 + description: ":: HexDigit :: A" + negative: + phase: parse + type: SyntaxError + ---*/ + + + //CHECK#1 + "\uAAA" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.js b/tests/baselines/reference/S7.8.4_A7.2_T6.js new file mode 100644 index 0000000000000..710fcda0c7554 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T6.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts] //// + +//// [S7.8.4_A7.2_T6.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T6 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAAA" + + +//// [S7.8.4_A7.2_T6.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T6 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ +//CHECK#1 +"\uAAA"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.symbols b/tests/baselines/reference/S7.8.4_A7.2_T6.symbols new file mode 100644 index 0000000000000..ca9d2c149442e --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T6.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts] //// + +=== S7.8.4_A7.2_T6.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T6 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAAA" + diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.types b/tests/baselines/reference/S7.8.4_A7.2_T6.types new file mode 100644 index 0000000000000..39465047c93b6 --- /dev/null +++ b/tests/baselines/reference/S7.8.4_A7.2_T6.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts] //// + +=== S7.8.4_A7.2_T6.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T6 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAAA" +>"\uAAA" : "\\uAAA" + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt new file mode 100644 index 0000000000000..497fe1fdbcd8e --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt @@ -0,0 +1,29 @@ +S7.8.5_A1.2_T1.ts(23,1): error TS1010: '*/' expected. + + +==== S7.8.5_A1.2_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionFirstChar + info: | + RegularExpressionChars :: + [empty] + RegularExpressionCharsRegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + description: > + The first character of a regular expression may not be "*" + negative: + phase: parse + type: SyntaxError + ---*/ + + + /*/ + + +!!! error TS1010: '*/' expected. \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.js b/tests/baselines/reference/S7.8.5_A1.2_T1.js new file mode 100644 index 0000000000000..da5f7842ae0e0 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T1.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts] //// + +//// [S7.8.5_A1.2_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionFirstChar +info: | + RegularExpressionChars :: + [empty] + RegularExpressionCharsRegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "*" +negative: + phase: parse + type: SyntaxError +---*/ + + +/*/ + + +//// [S7.8.5_A1.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionFirstChar +info: | + RegularExpressionChars :: + [empty] + RegularExpressionCharsRegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "*" +negative: + phase: parse + type: SyntaxError +---*/ +/*/ + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.symbols b/tests/baselines/reference/S7.8.5_A1.2_T1.symbols new file mode 100644 index 0000000000000..2bfa8c5b9d3ee --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T1.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts] //// + +=== S7.8.5_A1.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionFirstChar +info: | + RegularExpressionChars :: + [empty] + RegularExpressionCharsRegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "*" +negative: + phase: parse + type: SyntaxError +---*/ + + +/*/ + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.types b/tests/baselines/reference/S7.8.5_A1.2_T1.types new file mode 100644 index 0000000000000..2bfa8c5b9d3ee --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T1.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts] //// + +=== S7.8.5_A1.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionFirstChar +info: | + RegularExpressionChars :: + [empty] + RegularExpressionCharsRegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "*" +negative: + phase: parse + type: SyntaxError +---*/ + + +/*/ + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt new file mode 100644 index 0000000000000..dc0303ddb2484 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt @@ -0,0 +1,32 @@ +S7.8.5_A1.2_T2.ts(25,2): error TS1161: Unterminated regular expression literal. + + +==== S7.8.5_A1.2_T2.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-literals-regular-expression-literals + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + description: > + The first character of a regular expression may not be "\" + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\/ + +!!! error TS1161: Unterminated regular expression literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.js b/tests/baselines/reference/S7.8.5_A1.2_T2.js new file mode 100644 index 0000000000000..7d3b2cd9d7a8c --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T2.js @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts] //// + +//// [S7.8.5_A1.2_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "\" +negative: + phase: parse + type: SyntaxError +---*/ + + +/\/ + + +//// [S7.8.5_A1.2_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "\" +negative: + phase: parse + type: SyntaxError +---*/ +/\/; diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.symbols b/tests/baselines/reference/S7.8.5_A1.2_T2.symbols new file mode 100644 index 0000000000000..289ac964d37d1 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T2.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts] //// + +=== S7.8.5_A1.2_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "\" +negative: + phase: parse + type: SyntaxError +---*/ + + +/\/ + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.types b/tests/baselines/reference/S7.8.5_A1.2_T2.types new file mode 100644 index 0000000000000..dee585d1fa1e2 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T2.types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts] //// + +=== S7.8.5_A1.2_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "\" +negative: + phase: parse + type: SyntaxError +---*/ + + +/\/ +>/\/ : RegExp + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt new file mode 100644 index 0000000000000..17e666708893b --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt @@ -0,0 +1,36 @@ +S7.8.5_A1.2_T3.ts(26,1): error TS1128: Declaration or statement expected. +S7.8.5_A1.2_T3.ts(26,2): error TS2304: Cannot find name 'source'. + + +==== S7.8.5_A1.2_T3.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-literals-regular-expression-literals + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + description: > + The first character of a regular expression may not be "/" + negative: + phase: parse + type: SyntaxError + ---*/ + + + /// + .source; + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'source'. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.js b/tests/baselines/reference/S7.8.5_A1.2_T3.js new file mode 100644 index 0000000000000..1f34ef6064366 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T3.js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts] //// + +//// [S7.8.5_A1.2_T3.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "/" +negative: + phase: parse + type: SyntaxError +---*/ + + +/// +.source; + + +//// [S7.8.5_A1.2_T3.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +source; diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.symbols b/tests/baselines/reference/S7.8.5_A1.2_T3.symbols new file mode 100644 index 0000000000000..0c51b327dbaeb --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T3.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts] //// + +=== S7.8.5_A1.2_T3.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "/" +negative: + phase: parse + type: SyntaxError +---*/ + + +/// +.source; + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.types b/tests/baselines/reference/S7.8.5_A1.2_T3.types new file mode 100644 index 0000000000000..000bb270f2b27 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T3.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts] //// + +=== S7.8.5_A1.2_T3.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "/" +negative: + phase: parse + type: SyntaxError +---*/ + + +/// +.source; +>source : any + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt new file mode 100644 index 0000000000000..2643ab228e4b5 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt @@ -0,0 +1,36 @@ +S7.8.5_A1.2_T4.ts(26,1): error TS1128: Declaration or statement expected. +S7.8.5_A1.2_T4.ts(26,2): error TS2304: Cannot find name 'source'. + + +==== S7.8.5_A1.2_T4.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-literals-regular-expression-literals + info: | + RegularExpressionLiteral:: + / RegularExpressionBody / RegularExpressionFlags + + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars:: + [empty] + + MemberExpression . IdentifierName + + description: A regular expression may not be empty. + negative: + phase: parse + type: SyntaxError + ---*/ + + + // + .source; + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'source'. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.js b/tests/baselines/reference/S7.8.5_A1.2_T4.js new file mode 100644 index 0000000000000..31cc5d8373afa --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T4.js @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts] //// + +//// [S7.8.5_A1.2_T4.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionLiteral:: + / RegularExpressionBody / RegularExpressionFlags + + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars:: + [empty] + + MemberExpression . IdentifierName + +description: A regular expression may not be empty. +negative: + phase: parse + type: SyntaxError +---*/ + + +// +.source; + + +//// [S7.8.5_A1.2_T4.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +source; diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.symbols b/tests/baselines/reference/S7.8.5_A1.2_T4.symbols new file mode 100644 index 0000000000000..265708e6b84e9 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T4.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts] //// + +=== S7.8.5_A1.2_T4.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionLiteral:: + / RegularExpressionBody / RegularExpressionFlags + + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars:: + [empty] + + MemberExpression . IdentifierName + +description: A regular expression may not be empty. +negative: + phase: parse + type: SyntaxError +---*/ + + +// +.source; + diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.types b/tests/baselines/reference/S7.8.5_A1.2_T4.types new file mode 100644 index 0000000000000..e492b8ef0b3ca --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.2_T4.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts] //// + +=== S7.8.5_A1.2_T4.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionLiteral:: + / RegularExpressionBody / RegularExpressionFlags + + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars:: + [empty] + + MemberExpression . IdentifierName + +description: A regular expression may not be empty. +negative: + phase: parse + type: SyntaxError +---*/ + + +// +.source; +>source : any + diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt b/tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt new file mode 100644 index 0000000000000..e42b8cbbbeee2 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt @@ -0,0 +1,42 @@ +S7.8.5_A1.3_T1.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A1.3_T1.ts(28,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A1.3_T1.ts(29,2): error TS1109: Expression expected. + + +==== S7.8.5_A1.3_T1.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionNonTerminator + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + The first character of a regular expression may not be a (\u000A) + negative: + phase: parse + type: SyntaxError + ---*/ + + + / + ~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.js b/tests/baselines/reference/S7.8.5_A1.3_T1.js new file mode 100644 index 0000000000000..f7723e5a4ad8b --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T1.js @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts] //// + +//// [S7.8.5_A1.3_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a (\u000A) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ + + +//// [S7.8.5_A1.3_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a (\u000A) +negative: + phase: parse + type: SyntaxError +---*/ +/ + / +; diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.symbols b/tests/baselines/reference/S7.8.5_A1.3_T1.symbols new file mode 100644 index 0000000000000..a7e1ee7c913e6 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T1.symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts] //// + +=== S7.8.5_A1.3_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a (\u000A) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ + diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.types b/tests/baselines/reference/S7.8.5_A1.3_T1.types new file mode 100644 index 0000000000000..ac2dbc62ca52b --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T1.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts] //// + +=== S7.8.5_A1.3_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a (\u000A) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +>// : number +>/ : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt b/tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt new file mode 100644 index 0000000000000..2cd0909b4f8ef --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt @@ -0,0 +1,42 @@ +S7.8.5_A1.3_T3.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A1.3_T3.ts(28,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A1.3_T3.ts(29,2): error TS1109: Expression expected. + + +==== S7.8.5_A1.3_T3.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionNonTerminator + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + The first character of a regular expression may not be a , (\u000D) + negative: + phase: parse + type: SyntaxError + ---*/ + + + / + ~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.js b/tests/baselines/reference/S7.8.5_A1.3_T3.js new file mode 100644 index 0000000000000..a07f6a961d9ad --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T3.js @@ -0,0 +1,62 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts] //// + +//// [S7.8.5_A1.3_T3.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a , (\u000D) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ + + +//// [S7.8.5_A1.3_T3.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a , (\u000D) +negative: + phase: parse + type: SyntaxError +---*/ +/ + / +; diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.symbols b/tests/baselines/reference/S7.8.5_A1.3_T3.symbols new file mode 100644 index 0000000000000..7aec2bf7291c5 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T3.symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts] //// + +=== S7.8.5_A1.3_T3.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a , (\u000D) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ + diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.types b/tests/baselines/reference/S7.8.5_A1.3_T3.types new file mode 100644 index 0000000000000..7729603905b83 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.3_T3.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts] //// + +=== S7.8.5_A1.3_T3.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a , (\u000D) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +>// : number +>/ : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt b/tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt new file mode 100644 index 0000000000000..1865f5c9ccc22 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt @@ -0,0 +1,36 @@ +S7.8.5_A1.5_T1.ts(22,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A1.5_T1.ts(22,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A1.5_T1.ts(23,2): error TS1109: Expression expected. + + +==== S7.8.5_A1.5_T1.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionBackslashSequence + info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + A RegularExpressionBackslashSequence may not contain a + + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\ + ~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.js b/tests/baselines/reference/S7.8.5_A1.5_T1.js new file mode 100644 index 0000000000000..5905267544711 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T1.js @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts] //// + +//// [S7.8.5_A1.5_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a + +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +/ + + +//// [S7.8.5_A1.5_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a + +negative: + phase: parse + type: SyntaxError +---*/ +/\ + / +; diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.symbols b/tests/baselines/reference/S7.8.5_A1.5_T1.symbols new file mode 100644 index 0000000000000..0ef6d000cec57 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T1.symbols @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts] //// + +=== S7.8.5_A1.5_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a + +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +/ + diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.types b/tests/baselines/reference/S7.8.5_A1.5_T1.types new file mode 100644 index 0000000000000..ac5849acb0ffe --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T1.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts] //// + +=== S7.8.5_A1.5_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a + +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +>/\/ : number +>/\ : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt b/tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt new file mode 100644 index 0000000000000..17c3e500de12c --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt @@ -0,0 +1,35 @@ +S7.8.5_A1.5_T3.ts(21,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A1.5_T3.ts(21,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A1.5_T3.ts(22,2): error TS1109: Expression expected. + + +==== S7.8.5_A1.5_T3.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionBackslashSequence + info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + A RegularExpressionBackslashSequence may not contain a + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\ + ~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.js b/tests/baselines/reference/S7.8.5_A1.5_T3.js new file mode 100644 index 0000000000000..afe8ba738b13c --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T3.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts] //// + +//// [S7.8.5_A1.5_T3.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +/ + + +//// [S7.8.5_A1.5_T3.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a +negative: + phase: parse + type: SyntaxError +---*/ +/\ + / +; diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.symbols b/tests/baselines/reference/S7.8.5_A1.5_T3.symbols new file mode 100644 index 0000000000000..45ec2119d0865 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T3.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts] //// + +=== S7.8.5_A1.5_T3.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +/ + diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.types b/tests/baselines/reference/S7.8.5_A1.5_T3.types new file mode 100644 index 0000000000000..f5c024fa1f547 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A1.5_T3.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts] //// + +=== S7.8.5_A1.5_T3.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +>/\/ : number +>/\ : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt b/tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt new file mode 100644 index 0000000000000..81377d5f9a423 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt @@ -0,0 +1,29 @@ +S7.8.5_A2.2_T1.ts(22,2): error TS1161: Unterminated regular expression literal. + + +==== S7.8.5_A2.2_T1.ts (1 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionChar + info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + A regular express may not contain a "\" as a SourceCharacter + + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a\/ + +!!! error TS1161: Unterminated regular expression literal. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.js b/tests/baselines/reference/S7.8.5_A2.2_T1.js new file mode 100644 index 0000000000000..fb687bed32464 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T1.js @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts] //// + +//// [S7.8.5_A2.2_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular express may not contain a "\" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\/ + + +//// [S7.8.5_A2.2_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular express may not contain a "\" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ +/a\/; diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.symbols b/tests/baselines/reference/S7.8.5_A2.2_T1.symbols new file mode 100644 index 0000000000000..885be77962ff5 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T1.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts] //// + +=== S7.8.5_A2.2_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular express may not contain a "\" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\/ + diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.types b/tests/baselines/reference/S7.8.5_A2.2_T1.types new file mode 100644 index 0000000000000..4b2427c3247a3 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T1.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts] //// + +=== S7.8.5_A2.2_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular express may not contain a "\" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\/ +>/a\/ : RegExp + diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt b/tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt new file mode 100644 index 0000000000000..4894bccbf95f0 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt @@ -0,0 +1,32 @@ +S7.8.5_A2.2_T2.ts(22,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A2.2_T2.ts(22,5): error TS1109: Expression expected. + + +==== S7.8.5_A2.2_T2.ts (2 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionChar + info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + A regular expression may not contain a "/" as a SourceCharacter + + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a//.source; + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~ +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.js b/tests/baselines/reference/S7.8.5_A2.2_T2.js new file mode 100644 index 0000000000000..7a23f7f67d3d9 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T2.js @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts] //// + +//// [S7.8.5_A2.2_T2.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a "/" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a//.source; + + +//// [S7.8.5_A2.2_T2.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a "/" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ +/a/ / .source; diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.symbols b/tests/baselines/reference/S7.8.5_A2.2_T2.symbols new file mode 100644 index 0000000000000..ee47efb678a3b --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T2.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts] //// + +=== S7.8.5_A2.2_T2.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a "/" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a//.source; + diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.types b/tests/baselines/reference/S7.8.5_A2.2_T2.types new file mode 100644 index 0000000000000..d3f12b08226bb --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.2_T2.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts] //// + +=== S7.8.5_A2.2_T2.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a "/" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a//.source; +>/a//.source : number +>/a/ : RegExp +>.source : any +> : any +>source : any + diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt b/tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt new file mode 100644 index 0000000000000..5d608d426c27e --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt @@ -0,0 +1,45 @@ +S7.8.5_A2.3_T1.ts(31,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A2.3_T1.ts(31,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A2.3_T1.ts(32,2): error TS1109: Expression expected. + + +==== S7.8.5_A2.3_T1.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-literals-regular-expression-literals + info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + + description: > + A regular expression may not contain a as a SourceCharacter + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a + ~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.js b/tests/baselines/reference/S7.8.5_A2.3_T1.js new file mode 100644 index 0000000000000..bcca9a1e7ed00 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T1.js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts] //// + +//// [S7.8.5_A2.3_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +/ + + +//// [S7.8.5_A2.3_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ +/a + / +; diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.symbols b/tests/baselines/reference/S7.8.5_A2.3_T1.symbols new file mode 100644 index 0000000000000..ebb4641d2f9c1 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T1.symbols @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts] //// + +=== S7.8.5_A2.3_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +/ + diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.types b/tests/baselines/reference/S7.8.5_A2.3_T1.types new file mode 100644 index 0000000000000..a37c32309b0e7 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T1.types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts] //// + +=== S7.8.5_A2.3_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +>/a/ : number +>/a : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt b/tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt new file mode 100644 index 0000000000000..a913504bb96dd --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt @@ -0,0 +1,46 @@ +S7.8.5_A2.3_T3.ts(32,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A2.3_T3.ts(32,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A2.3_T3.ts(33,2): error TS1109: Expression expected. + + +==== S7.8.5_A2.3_T3.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-literals-regular-expression-literals + info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + + description: > + A regular expression may not contain a as a SourceCharacter + + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a + ~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.js b/tests/baselines/reference/S7.8.5_A2.3_T3.js new file mode 100644 index 0000000000000..e211a40f224cf --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T3.js @@ -0,0 +1,70 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts] //// + +//// [S7.8.5_A2.3_T3.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +/ + + +//// [S7.8.5_A2.3_T3.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ +/a + / +; diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.symbols b/tests/baselines/reference/S7.8.5_A2.3_T3.symbols new file mode 100644 index 0000000000000..77f0685414979 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T3.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts] //// + +=== S7.8.5_A2.3_T3.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +/ + diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.types b/tests/baselines/reference/S7.8.5_A2.3_T3.types new file mode 100644 index 0000000000000..be6d681c633c6 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.3_T3.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts] //// + +=== S7.8.5_A2.3_T3.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +>/a/ : number +>/a : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt b/tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt new file mode 100644 index 0000000000000..acc57dbe8e986 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt @@ -0,0 +1,44 @@ +S7.8.5_A2.5_T1.ts(27,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A2.5_T1.ts(27,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A2.5_T1.ts(27,3): error TS1511: Undetermined character escape. +S7.8.5_A2.5_T1.ts(28,2): error TS1109: Expression expected. + + +==== S7.8.5_A2.5_T1.ts (4 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionBackslashSequence + info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + + description: > + A regular expression may not contain a as a SourceCharacter + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a\ + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + ~ +!!! error TS1511: Undetermined character escape. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.js b/tests/baselines/reference/S7.8.5_A2.5_T1.js new file mode 100644 index 0000000000000..b963924614e59 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T1.js @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts] //// + +//// [S7.8.5_A2.5_T1.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +/ + + +//// [S7.8.5_A2.5_T1.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ +/a\ + / +; diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.symbols b/tests/baselines/reference/S7.8.5_A2.5_T1.symbols new file mode 100644 index 0000000000000..8d73f277d5807 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T1.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts] //// + +=== S7.8.5_A2.5_T1.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +/ + diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.types b/tests/baselines/reference/S7.8.5_A2.5_T1.types new file mode 100644 index 0000000000000..40e9994b74f7c --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T1.types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts] //// + +=== S7.8.5_A2.5_T1.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +>/a\/ : number +>/a\ : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt b/tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt new file mode 100644 index 0000000000000..d9443f092c6b0 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt @@ -0,0 +1,44 @@ +S7.8.5_A2.5_T3.ts(27,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +S7.8.5_A2.5_T3.ts(27,2): error TS1161: Unterminated regular expression literal. +S7.8.5_A2.5_T3.ts(27,3): error TS1511: Undetermined character escape. +S7.8.5_A2.5_T3.ts(28,2): error TS1109: Expression expected. + + +==== S7.8.5_A2.5_T3.ts (4 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionBackslashSequence + info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + + description: > + A regular expression may not contain a as a SourceCharacter + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a\ + ~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + ~ +!!! error TS1511: Undetermined character escape. + / + +!!! error TS1109: Expression expected. + \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.js b/tests/baselines/reference/S7.8.5_A2.5_T3.js new file mode 100644 index 0000000000000..ae283c03ea11e --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T3.js @@ -0,0 +1,60 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts] //// + +//// [S7.8.5_A2.5_T3.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +/ + + +//// [S7.8.5_A2.5_T3.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ +/a\ + / +; diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.symbols b/tests/baselines/reference/S7.8.5_A2.5_T3.symbols new file mode 100644 index 0000000000000..a2e9a3b10e1d7 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T3.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts] //// + +=== S7.8.5_A2.5_T3.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +/ + diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.types b/tests/baselines/reference/S7.8.5_A2.5_T3.types new file mode 100644 index 0000000000000..f71dfe346e031 --- /dev/null +++ b/tests/baselines/reference/S7.8.5_A2.5_T3.types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts] //// + +=== S7.8.5_A2.5_T3.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +>/a\/ : number +>/a\ : RegExp + +/ + +> : any + diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.errors.txt b/tests/baselines/reference/bigint-binary-invalid-digit.errors.txt new file mode 100644 index 0000000000000..564d0fe3a60da --- /dev/null +++ b/tests/baselines/reference/bigint-binary-invalid-digit.errors.txt @@ -0,0 +1,32 @@ +bigint-binary-invalid-digit.ts(25,3): error TS1177: Binary digit expected. + + +==== bigint-binary-invalid-digit.ts (1 errors) ==== + // Copyright (C) 2017 Robin Templeton. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Binary BigInt literal containing an invalid digit + esid: prod-NumericLiteral + info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n + negative: + phase: parse + type: SyntaxError + features: [BigInt] + ---*/ + + + 0b2n; + +!!! error TS1177: Binary digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.js b/tests/baselines/reference/bigint-binary-invalid-digit.js new file mode 100644 index 0000000000000..a579123caeade --- /dev/null +++ b/tests/baselines/reference/bigint-binary-invalid-digit.js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts] //// + +//// [bigint-binary-invalid-digit.ts] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Binary BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0b2n; + + +//// [bigint-binary-invalid-digit.js] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Binary BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ +0; +2n; diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.symbols b/tests/baselines/reference/bigint-binary-invalid-digit.symbols new file mode 100644 index 0000000000000..d3c0dc01a205c --- /dev/null +++ b/tests/baselines/reference/bigint-binary-invalid-digit.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts] //// + +=== bigint-binary-invalid-digit.ts === + +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Binary BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0b2n; + diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.types b/tests/baselines/reference/bigint-binary-invalid-digit.types new file mode 100644 index 0000000000000..b0bee55196d42 --- /dev/null +++ b/tests/baselines/reference/bigint-binary-invalid-digit.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts] //// + +=== bigint-binary-invalid-digit.ts === +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Binary BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0b2n; +>0b : 0 +>2n : 2n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt new file mode 100644 index 0000000000000..f3eeb0d30d0c8 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts(43,3): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0b_1n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js new file mode 100644 index 0000000000000..eba7e68778925 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// + +//// [bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b_1n; + + +//// [bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols new file mode 100644 index 0000000000000..bc765cbfbaa7c --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// + +=== bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b_1n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types new file mode 100644 index 0000000000000..2dd9cf7b261ce --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// + +=== bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b_1n; +>0b_1n : 1n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt new file mode 100644 index 0000000000000..ef1381bc7cf73 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts(43,5): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0b0__0n; + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js new file mode 100644 index 0000000000000..4753596bca841 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// + +//// [bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0__0n; + + +//// [bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols new file mode 100644 index 0000000000000..8f66dc0e9d134 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0__0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types new file mode 100644 index 0000000000000..5aff521191af7 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0__0n; +>0b0__0n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt new file mode 100644 index 0000000000000..7652dc1380d41 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt @@ -0,0 +1,49 @@ +bigint-numeric-separator-literal-bil-nsl-bd-err.ts(42,4): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-bil-nsl-bd-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral (before n) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0b0_n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js new file mode 100644 index 0000000000000..996f3ab202ce4 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js @@ -0,0 +1,87 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts] //// + +//// [bigint-numeric-separator-literal-bil-nsl-bd-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral (before n) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0_n; + + +//// [bigint-numeric-separator-literal-bil-nsl-bd-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral (before n) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols new file mode 100644 index 0000000000000..3a822cc0fd77f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts] //// + +=== bigint-numeric-separator-literal-bil-nsl-bd-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral (before n) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0_n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types new file mode 100644 index 0000000000000..2bb3dc224da3c --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts] //// + +=== bigint-numeric-separator-literal-bil-nsl-bd-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral (before n) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0_n; +>0b0_n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt new file mode 100644 index 0000000000000..475387690d5eb --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt @@ -0,0 +1,42 @@ +bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts(35,3): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 1__0123456789n; + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js new file mode 100644 index 0000000000000..7c751302da27e --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js @@ -0,0 +1,73 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// + +//// [bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1__0123456789n; + + +//// [bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +10123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols new file mode 100644 index 0000000000000..4ccc44a363a6f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1__0123456789n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types new file mode 100644 index 0000000000000..2ec58a3b2cabf --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1__0123456789n; +>1__0123456789n : 10123456789n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt new file mode 100644 index 0000000000000..aecd082daeb83 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt @@ -0,0 +1,44 @@ +bigint-numeric-separator-literal-dd-nsl-err.ts(37,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-dd-nsl-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 1_n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js new file mode 100644 index 0000000000000..4ea1384bb3536 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts] //// + +//// [bigint-numeric-separator-literal-dd-nsl-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1_n; + + +//// [bigint-numeric-separator-literal-dd-nsl-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols new file mode 100644 index 0000000000000..845fa4238632e --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts] //// + +=== bigint-numeric-separator-literal-dd-nsl-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1_n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types new file mode 100644 index 0000000000000..a00c3a3119361 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts] //// + +=== bigint-numeric-separator-literal-dd-nsl-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1_n; +>1_n : 1n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt new file mode 100644 index 0000000000000..b34cb831b69ee --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt @@ -0,0 +1,42 @@ +bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts(35,4): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 10__0123456789n; + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js new file mode 100644 index 0000000000000..19fbad39f9b3a --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js @@ -0,0 +1,73 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// + +//// [bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10__0123456789n; + + +//// [bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +100123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols new file mode 100644 index 0000000000000..91d70465d61e8 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10__0123456789n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types new file mode 100644 index 0000000000000..ce21b07b68faf --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10__0123456789n; +>10__0123456789n : 100123456789n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt new file mode 100644 index 0000000000000..330eccb5bbd41 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt @@ -0,0 +1,45 @@ +bigint-numeric-separator-literal-dds-nsl-err.ts(38,3): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-dds-nsl-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 10_n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js new file mode 100644 index 0000000000000..1e926a7e08224 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js @@ -0,0 +1,79 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts] //// + +//// [bigint-numeric-separator-literal-dds-nsl-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10_n; + + +//// [bigint-numeric-separator-literal-dds-nsl-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +10n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols new file mode 100644 index 0000000000000..db398bfba576e --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts] //// + +=== bigint-numeric-separator-literal-dds-nsl-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10_n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types new file mode 100644 index 0000000000000..d171fd4f10a7a --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts] //// + +=== bigint-numeric-separator-literal-dds-nsl-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10_n; +>10_n : 10n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt new file mode 100644 index 0000000000000..3faf8a313f6a6 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts(43,3): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0x_1n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js new file mode 100644 index 0000000000000..6e2df228ad23e --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// + +//// [bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x_1n; + + +//// [bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0x1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols new file mode 100644 index 0000000000000..1e6b9cb2f1e8f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// + +=== bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x_1n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types new file mode 100644 index 0000000000000..87391bc8a4e17 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// + +=== bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x_1n; +>0x_1n : 1n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt new file mode 100644 index 0000000000000..2e8504102e188 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts(43,5): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0x0__0n; + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js new file mode 100644 index 0000000000000..c94dcd21e9cc9 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// + +//// [bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0__0n; + + +//// [bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0x00n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols new file mode 100644 index 0000000000000..95c643d5e7f67 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0__0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types new file mode 100644 index 0000000000000..02760f5349401 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0__0n; +>0x0__0n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt new file mode 100644 index 0000000000000..c1df168d4bab5 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-hil-nsl-hd-err.ts(43,4): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-hil-nsl-hd-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0x0_n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js new file mode 100644 index 0000000000000..c07bdee531502 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts] //// + +//// [bigint-numeric-separator-literal-hil-nsl-hd-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0_n; + + +//// [bigint-numeric-separator-literal-hil-nsl-hd-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0x0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols new file mode 100644 index 0000000000000..57a85a88e9653 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts] //// + +=== bigint-numeric-separator-literal-hil-nsl-hd-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0_n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types new file mode 100644 index 0000000000000..69f5ba9a4a6d2 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts] //// + +=== bigint-numeric-separator-literal-hil-nsl-hd-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0_n; +>0x0_n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt new file mode 100644 index 0000000000000..f1f6fbcb7dadf --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt @@ -0,0 +1,64 @@ +bigint-numeric-separator-literal-lol-00-err.ts(51,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. +bigint-numeric-separator-literal-lol-00-err.ts(51,3): error TS1005: ';' expected. +bigint-numeric-separator-literal-lol-00-err.ts(51,3): error TS2304: Cannot find name '_0n'. + + +==== bigint-numeric-separator-literal-lol-00-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 00_0n; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + ~~~ +!!! error TS1005: ';' expected. + ~~~ +!!! error TS2304: Cannot find name '_0n'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js new file mode 100644 index 0000000000000..007821b1040e9 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts] //// + +//// [bigint-numeric-separator-literal-lol-00-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +00_0n; + + +//// [bigint-numeric-separator-literal-lol-00-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0; +_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols new file mode 100644 index 0000000000000..3b6b7b4c729a9 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts] //// + +=== bigint-numeric-separator-literal-lol-00-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +00_0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types new file mode 100644 index 0000000000000..ea393ed6d2fb0 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts] //// + +=== bigint-numeric-separator-literal-lol-00-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +00_0n; +>00 : 0 +>_0n : any + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt new file mode 100644 index 0000000000000..0936d73f3fc6d --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt @@ -0,0 +1,64 @@ +bigint-numeric-separator-literal-lol-01-err.ts(51,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +bigint-numeric-separator-literal-lol-01-err.ts(51,3): error TS1005: ';' expected. +bigint-numeric-separator-literal-lol-01-err.ts(51,3): error TS2304: Cannot find name '_0n'. + + +==== bigint-numeric-separator-literal-lol-01-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 01_0n; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + ~~~ +!!! error TS1005: ';' expected. + ~~~ +!!! error TS2304: Cannot find name '_0n'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js new file mode 100644 index 0000000000000..0ceedc86820b8 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js @@ -0,0 +1,106 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts] //// + +//// [bigint-numeric-separator-literal-lol-01-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +01_0n; + + +//// [bigint-numeric-separator-literal-lol-01-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +1; +_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols new file mode 100644 index 0000000000000..1f86bbac174b8 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts] //// + +=== bigint-numeric-separator-literal-lol-01-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +01_0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types new file mode 100644 index 0000000000000..7634a4a0d0b67 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts] //// + +=== bigint-numeric-separator-literal-lol-01-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +01_0n; +>01 : 1 +>_0n : any + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt new file mode 100644 index 0000000000000..a4c9e02460126 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt @@ -0,0 +1,66 @@ +bigint-numeric-separator-literal-lol-07-err.ts(53,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. +bigint-numeric-separator-literal-lol-07-err.ts(53,3): error TS1005: ';' expected. +bigint-numeric-separator-literal-lol-07-err.ts(53,3): error TS2304: Cannot find name '_0n'. + + +==== bigint-numeric-separator-literal-lol-07-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 07_0n; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. + ~~~ +!!! error TS1005: ';' expected. + ~~~ +!!! error TS2304: Cannot find name '_0n'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js new file mode 100644 index 0000000000000..c079c4f1e6274 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js @@ -0,0 +1,110 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts] //// + +//// [bigint-numeric-separator-literal-lol-07-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +07_0n; + + +//// [bigint-numeric-separator-literal-lol-07-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +7; +_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols new file mode 100644 index 0000000000000..979cc1c532e2f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts] //// + +=== bigint-numeric-separator-literal-lol-07-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +07_0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types new file mode 100644 index 0000000000000..d3d2d41acc9c3 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts] //// + +=== bigint-numeric-separator-literal-lol-07-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +07_0n; +>07 : 7 +>_0n : any + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt new file mode 100644 index 0000000000000..63513b8606374 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt @@ -0,0 +1,58 @@ +bigint-numeric-separator-literal-lol-0_0-err.ts(51,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-lol-0_0-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0_0n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js new file mode 100644 index 0000000000000..5e5b19170b102 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js @@ -0,0 +1,105 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts] //// + +//// [bigint-numeric-separator-literal-lol-0_0-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0n; + + +//// [bigint-numeric-separator-literal-lol-0_0-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +00n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols new file mode 100644 index 0000000000000..d676c577e207b --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts] //// + +=== bigint-numeric-separator-literal-lol-0_0-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types new file mode 100644 index 0000000000000..d8cec5628de4e --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts] //// + +=== bigint-numeric-separator-literal-lol-0_0-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0n; +>0_0n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt new file mode 100644 index 0000000000000..dc868f911cda1 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt @@ -0,0 +1,58 @@ +bigint-numeric-separator-literal-lol-0_1-err.ts(51,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-lol-0_1-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0_1n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js new file mode 100644 index 0000000000000..0a90ea715f385 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js @@ -0,0 +1,105 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts] //// + +//// [bigint-numeric-separator-literal-lol-0_1-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_1n; + + +//// [bigint-numeric-separator-literal-lol-0_1-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +01n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols new file mode 100644 index 0000000000000..9dcb2fb6924c3 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts] //// + +=== bigint-numeric-separator-literal-lol-0_1-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_1n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types new file mode 100644 index 0000000000000..fd8c20315218a --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts] //// + +=== bigint-numeric-separator-literal-lol-0_1-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_1n; +>0_1n : 1n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt new file mode 100644 index 0000000000000..6d3ff45d1c81c --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt @@ -0,0 +1,59 @@ +bigint-numeric-separator-literal-lol-0_7-err.ts(52,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-lol-0_7-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0_7n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js new file mode 100644 index 0000000000000..30ac15e3133df --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js @@ -0,0 +1,107 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts] //// + +//// [bigint-numeric-separator-literal-lol-0_7-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_7n; + + +//// [bigint-numeric-separator-literal-lol-0_7-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +07n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols new file mode 100644 index 0000000000000..8fbb0c979d202 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts] //// + +=== bigint-numeric-separator-literal-lol-0_7-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_7n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types new file mode 100644 index 0000000000000..a44c6f04bfca7 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts] //// + +=== bigint-numeric-separator-literal-lol-0_7-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_7n; +>0_7n : 7n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt new file mode 100644 index 0000000000000..921578187344a --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt @@ -0,0 +1,61 @@ +bigint-numeric-separator-literal-nonoctal-08-err.ts(48,1): error TS1489: Decimals with leading zeros are not allowed. +bigint-numeric-separator-literal-nonoctal-08-err.ts(48,3): error TS1005: ';' expected. +bigint-numeric-separator-literal-nonoctal-08-err.ts(48,3): error TS2304: Cannot find name '_0n'. + + +==== bigint-numeric-separator-literal-nonoctal-08-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 08_0n; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~~~ +!!! error TS1005: ';' expected. + ~~~ +!!! error TS2304: Cannot find name '_0n'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js new file mode 100644 index 0000000000000..cddb3c39381b9 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js @@ -0,0 +1,100 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts] //// + +//// [bigint-numeric-separator-literal-nonoctal-08-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +08_0n; + + +//// [bigint-numeric-separator-literal-nonoctal-08-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +8; +_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols new file mode 100644 index 0000000000000..0fdb21cfb0a6f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-08-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +08_0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types new file mode 100644 index 0000000000000..3f80cf97c4f2c --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-08-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +08_0n; +>08 : 8 +>_0n : any + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt new file mode 100644 index 0000000000000..6aa14f6c8d164 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt @@ -0,0 +1,61 @@ +bigint-numeric-separator-literal-nonoctal-09-err.ts(48,1): error TS1489: Decimals with leading zeros are not allowed. +bigint-numeric-separator-literal-nonoctal-09-err.ts(48,3): error TS1005: ';' expected. +bigint-numeric-separator-literal-nonoctal-09-err.ts(48,3): error TS2304: Cannot find name '_0n'. + + +==== bigint-numeric-separator-literal-nonoctal-09-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 09_0n; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~~~ +!!! error TS1005: ';' expected. + ~~~ +!!! error TS2304: Cannot find name '_0n'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js new file mode 100644 index 0000000000000..a882a8c989fcf --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js @@ -0,0 +1,100 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts] //// + +//// [bigint-numeric-separator-literal-nonoctal-09-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +09_0n; + + +//// [bigint-numeric-separator-literal-nonoctal-09-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +9; +_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols new file mode 100644 index 0000000000000..584e2e27cedde --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-09-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +09_0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types new file mode 100644 index 0000000000000..8ec633fbf4501 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-09-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +09_0n; +>09 : 9 +>_0n : any + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt new file mode 100644 index 0000000000000..235901c5b0bf2 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt @@ -0,0 +1,55 @@ +bigint-numeric-separator-literal-nonoctal-0_8-err.ts(48,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-nonoctal-0_8-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0_8n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js new file mode 100644 index 0000000000000..03d3c12b4fc29 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js @@ -0,0 +1,99 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts] //// + +//// [bigint-numeric-separator-literal-nonoctal-0_8-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_8n; + + +//// [bigint-numeric-separator-literal-nonoctal-0_8-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +08n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols new file mode 100644 index 0000000000000..30a323a9630cb --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-0_8-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_8n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types new file mode 100644 index 0000000000000..93616f237fb70 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-0_8-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_8n; +>0_8n : 8n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt new file mode 100644 index 0000000000000..f1b63925272fb --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt @@ -0,0 +1,55 @@ +bigint-numeric-separator-literal-nonoctal-0_9-err.ts(48,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-nonoctal-0_9-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0_9n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js new file mode 100644 index 0000000000000..6bf666957986c --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js @@ -0,0 +1,99 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts] //// + +//// [bigint-numeric-separator-literal-nonoctal-0_9-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_9n; + + +//// [bigint-numeric-separator-literal-nonoctal-0_9-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +09n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols new file mode 100644 index 0000000000000..5417cea7d04c7 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-0_9-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_9n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types new file mode 100644 index 0000000000000..1958972d6df5c --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts] //// + +=== bigint-numeric-separator-literal-nonoctal-0_9-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_9n; +>0_9n : 9n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt new file mode 100644 index 0000000000000..bed2e0a756f6f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt @@ -0,0 +1,48 @@ +bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(38,2): error TS6188: Numeric separators are not allowed here. +bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(38,3): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts (2 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0__0123456789n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js new file mode 100644 index 0000000000000..fc5a71c481399 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js @@ -0,0 +1,79 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// + +//// [bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0__0123456789n; + + +//// [bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +00123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols new file mode 100644 index 0000000000000..51b9219962c89 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0__0123456789n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types new file mode 100644 index 0000000000000..4ebebd6f0d04b --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0__0123456789n; +>0__0123456789n : 123456789n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt new file mode 100644 index 0000000000000..c5c058f9bfdc6 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt @@ -0,0 +1,43 @@ +bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts(36,2): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: NonZeroDigit NumericLiteralSeparator DecimalDigits + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0_0123456789n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js new file mode 100644 index 0000000000000..df3027a127b43 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js @@ -0,0 +1,75 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// + +//// [bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0123456789n; + + +//// [bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +00123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols new file mode 100644 index 0000000000000..1c6b4fd04035e --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// + +=== bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0123456789n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types new file mode 100644 index 0000000000000..4695c52c48811 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// + +=== bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0123456789n; +>0_0123456789n : 123456789n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt new file mode 100644 index 0000000000000..72b244e362cbd --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts(43,5): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0o0__0n; + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js new file mode 100644 index 0000000000000..ef8ae6e62925a --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// + +//// [bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0__0n; + + +//// [bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols new file mode 100644 index 0000000000000..6fe5b33c5413f --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0__0n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types new file mode 100644 index 0000000000000..ad8e1fc95ab00 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// + +=== bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0__0n; +>0o0__0n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt new file mode 100644 index 0000000000000..a1112c26c441a --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-oil-nsl-od-err.ts(43,4): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-oil-nsl-od-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0o0_n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js new file mode 100644 index 0000000000000..2f9b79601fc94 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts] //// + +//// [bigint-numeric-separator-literal-oil-nsl-od-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0_n; + + +//// [bigint-numeric-separator-literal-oil-nsl-od-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols new file mode 100644 index 0000000000000..80587e9ba3309 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts] //// + +=== bigint-numeric-separator-literal-oil-nsl-od-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0_n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types new file mode 100644 index 0000000000000..24e41df7d8bd1 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts] //// + +=== bigint-numeric-separator-literal-oil-nsl-od-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0_n; +>0o0_n : 0n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt new file mode 100644 index 0000000000000..639cb2bd0b594 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt @@ -0,0 +1,50 @@ +bigint-numeric-separator-literal-oil-od-nsl-od-err.ts(43,3): error TS6188: Numeric separators are not allowed here. + + +==== bigint-numeric-separator-literal-oil-od-nsl-od-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 0o_1n; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js new file mode 100644 index 0000000000000..45fabd8264205 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js @@ -0,0 +1,89 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] //// + +//// [bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o_1n; + + +//// [bigint-numeric-separator-literal-oil-od-nsl-od-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols new file mode 100644 index 0000000000000..8668fe6b18904 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] //// + +=== bigint-numeric-separator-literal-oil-od-nsl-od-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o_1n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types new file mode 100644 index 0000000000000..12c9fb5814645 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] //// + +=== bigint-numeric-separator-literal-oil-od-nsl-od-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o_1n; +>0o_1n : 1n + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt new file mode 100644 index 0000000000000..434120cdc3caa --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt @@ -0,0 +1,45 @@ +bigint-numeric-separator-literal-unicode-err.ts(35,2): error TS1005: ';' expected. +bigint-numeric-separator-literal-unicode-err.ts(35,2): error TS2304: Cannot find name '\u005F0123456789n'. + + +==== bigint-numeric-separator-literal-unicode-err.ts (2 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + negative: + phase: parse + type: SyntaxError + features: [BigInt, numeric-separator-literal] + ---*/ + + + 1\u005F0123456789n; + ~~~~~~~~~~~~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~~~~~~~~~~~~ +!!! error TS2304: Cannot find name '\u005F0123456789n'. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js new file mode 100644 index 0000000000000..18b9f55b74f5b --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js @@ -0,0 +1,74 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts] //// + +//// [bigint-numeric-separator-literal-unicode-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1\u005F0123456789n; + + +//// [bigint-numeric-separator-literal-unicode-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ +1; +\u005F0123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols new file mode 100644 index 0000000000000..38de34eeaf2e8 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts] //// + +=== bigint-numeric-separator-literal-unicode-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1\u005F0123456789n; + diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types new file mode 100644 index 0000000000000..45970ff4c1c38 --- /dev/null +++ b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts] //// + +=== bigint-numeric-separator-literal-unicode-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1\u005F0123456789n; +>1 : 1 +>\u005F0123456789n : any + diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.errors.txt b/tests/baselines/reference/bigint-octal-invalid-digit.errors.txt new file mode 100644 index 0000000000000..85f6eabf0ed85 --- /dev/null +++ b/tests/baselines/reference/bigint-octal-invalid-digit.errors.txt @@ -0,0 +1,32 @@ +bigint-octal-invalid-digit.ts(25,3): error TS1178: Octal digit expected. + + +==== bigint-octal-invalid-digit.ts (1 errors) ==== + // Copyright (C) 2017 Robin Templeton. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Octal BigInt literal containing an invalid digit + esid: prod-NumericLiteral + info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n + negative: + phase: parse + type: SyntaxError + features: [BigInt] + ---*/ + + + 0o9n; + +!!! error TS1178: Octal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.js b/tests/baselines/reference/bigint-octal-invalid-digit.js new file mode 100644 index 0000000000000..5a7afd2367e4e --- /dev/null +++ b/tests/baselines/reference/bigint-octal-invalid-digit.js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts] //// + +//// [bigint-octal-invalid-digit.ts] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Octal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0o9n; + + +//// [bigint-octal-invalid-digit.js] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Octal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ +0; +9n; diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.symbols b/tests/baselines/reference/bigint-octal-invalid-digit.symbols new file mode 100644 index 0000000000000..8db9b2826b239 --- /dev/null +++ b/tests/baselines/reference/bigint-octal-invalid-digit.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts] //// + +=== bigint-octal-invalid-digit.ts === + +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Octal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0o9n; + diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.types b/tests/baselines/reference/bigint-octal-invalid-digit.types new file mode 100644 index 0000000000000..979ad4cc1bad5 --- /dev/null +++ b/tests/baselines/reference/bigint-octal-invalid-digit.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts] //// + +=== bigint-octal-invalid-digit.ts === +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Octal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0o9n; +>0o : 0 +>9n : 9n + diff --git a/tests/baselines/reference/binary-invalid-digit.errors.txt b/tests/baselines/reference/binary-invalid-digit.errors.txt new file mode 100644 index 0000000000000..a9ce752086c3b --- /dev/null +++ b/tests/baselines/reference/binary-invalid-digit.errors.txt @@ -0,0 +1,29 @@ +binary-invalid-digit.ts(22,3): error TS1177: Binary digit expected. + + +==== binary-invalid-digit.ts (1 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Binary-integer-literal-like sequence containing an invalid digit + info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0b2; + +!!! error TS1177: Binary digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-digit.js b/tests/baselines/reference/binary-invalid-digit.js new file mode 100644 index 0000000000000..bd469545003e6 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-digit.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts] //// + +//// [binary-invalid-digit.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence containing an invalid digit +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b2; + + +//// [binary-invalid-digit.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence containing an invalid digit +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ +0; +2; diff --git a/tests/baselines/reference/binary-invalid-digit.symbols b/tests/baselines/reference/binary-invalid-digit.symbols new file mode 100644 index 0000000000000..f86f27d6d7770 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-digit.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts] //// + +=== binary-invalid-digit.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence containing an invalid digit +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b2; + diff --git a/tests/baselines/reference/binary-invalid-digit.types b/tests/baselines/reference/binary-invalid-digit.types new file mode 100644 index 0000000000000..125a32c1fecef --- /dev/null +++ b/tests/baselines/reference/binary-invalid-digit.types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts] //// + +=== binary-invalid-digit.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence containing an invalid digit +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b2; +>0b : 0 +>2 : 2 + diff --git a/tests/baselines/reference/binary-invalid-leading.errors.txt b/tests/baselines/reference/binary-invalid-leading.errors.txt new file mode 100644 index 0000000000000..ad14657e4e06d --- /dev/null +++ b/tests/baselines/reference/binary-invalid-leading.errors.txt @@ -0,0 +1,35 @@ +binary-invalid-leading.ts(22,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. +binary-invalid-leading.ts(22,3): error TS1005: ';' expected. +binary-invalid-leading.ts(22,3): error TS2304: Cannot find name 'b0'. + + +==== binary-invalid-leading.ts (3 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Binary-integer-literal-like sequence with a leading 0 + info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 00b0; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name 'b0'. + \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-leading.js b/tests/baselines/reference/binary-invalid-leading.js new file mode 100644 index 0000000000000..7ec341e422af9 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-leading.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts] //// + +//// [binary-invalid-leading.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence with a leading 0 +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +00b0; + + +//// [binary-invalid-leading.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence with a leading 0 +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ +0; +b0; diff --git a/tests/baselines/reference/binary-invalid-leading.symbols b/tests/baselines/reference/binary-invalid-leading.symbols new file mode 100644 index 0000000000000..82f02d7b79fba --- /dev/null +++ b/tests/baselines/reference/binary-invalid-leading.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts] //// + +=== binary-invalid-leading.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence with a leading 0 +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +00b0; + diff --git a/tests/baselines/reference/binary-invalid-leading.types b/tests/baselines/reference/binary-invalid-leading.types new file mode 100644 index 0000000000000..942e531c5ea1f --- /dev/null +++ b/tests/baselines/reference/binary-invalid-leading.types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts] //// + +=== binary-invalid-leading.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence with a leading 0 +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +00b0; +>00 : 0 +>b0 : any + diff --git a/tests/baselines/reference/binary-invalid-truncated.errors.txt b/tests/baselines/reference/binary-invalid-truncated.errors.txt new file mode 100644 index 0000000000000..ec258c4ebef54 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-truncated.errors.txt @@ -0,0 +1,29 @@ +binary-invalid-truncated.ts(22,3): error TS1177: Binary digit expected. + + +==== binary-invalid-truncated.ts (1 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Binary-integer-literal-like sequence without any digits + info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0b; + +!!! error TS1177: Binary digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-truncated.js b/tests/baselines/reference/binary-invalid-truncated.js new file mode 100644 index 0000000000000..81bf5d0f86ff9 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-truncated.js @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts] //// + +//// [binary-invalid-truncated.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence without any digits +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b; + + +//// [binary-invalid-truncated.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence without any digits +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ +0; diff --git a/tests/baselines/reference/binary-invalid-truncated.symbols b/tests/baselines/reference/binary-invalid-truncated.symbols new file mode 100644 index 0000000000000..5fa42a7e52b39 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-truncated.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts] //// + +=== binary-invalid-truncated.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence without any digits +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b; + diff --git a/tests/baselines/reference/binary-invalid-truncated.types b/tests/baselines/reference/binary-invalid-truncated.types new file mode 100644 index 0000000000000..6fa4002ed9559 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-truncated.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts] //// + +=== binary-invalid-truncated.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence without any digits +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b; +>0b : 0 + diff --git a/tests/baselines/reference/binary-invalid-unicode.errors.txt b/tests/baselines/reference/binary-invalid-unicode.errors.txt new file mode 100644 index 0000000000000..e1fcb155bce53 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-unicode.errors.txt @@ -0,0 +1,32 @@ +binary-invalid-unicode.ts(22,2): error TS1005: ';' expected. +binary-invalid-unicode.ts(22,2): error TS2304: Cannot find name '\u00620'. + + +==== binary-invalid-unicode.ts (2 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Binary-integer-literal-like sequence expressed with unicode escape sequence + info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0\u00620; + ~~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~~ +!!! error TS2304: Cannot find name '\u00620'. + \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-unicode.js b/tests/baselines/reference/binary-invalid-unicode.js new file mode 100644 index 0000000000000..0c96567eb1961 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-unicode.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts] //// + +//// [binary-invalid-unicode.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence expressed with unicode escape sequence +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u00620; + + +//// [binary-invalid-unicode.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence expressed with unicode escape sequence +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ +0; +\u00620; diff --git a/tests/baselines/reference/binary-invalid-unicode.symbols b/tests/baselines/reference/binary-invalid-unicode.symbols new file mode 100644 index 0000000000000..08fdbb9cb78f3 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-unicode.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts] //// + +=== binary-invalid-unicode.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence expressed with unicode escape sequence +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u00620; + diff --git a/tests/baselines/reference/binary-invalid-unicode.types b/tests/baselines/reference/binary-invalid-unicode.types new file mode 100644 index 0000000000000..0cd4cf12dd077 --- /dev/null +++ b/tests/baselines/reference/binary-invalid-unicode.types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts] //// + +=== binary-invalid-unicode.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence expressed with unicode escape sequence +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u00620; +>0 : 0 +>\u00620 : any + diff --git a/tests/baselines/reference/early-err-bad-flag.errors.txt b/tests/baselines/reference/early-err-bad-flag.errors.txt new file mode 100644 index 0000000000000..d73ad0c7348bf --- /dev/null +++ b/tests/baselines/reference/early-err-bad-flag.errors.txt @@ -0,0 +1,24 @@ +early-err-bad-flag.ts(17,4): error TS1497: Unknown regular expression flag. + + +==== early-err-bad-flag.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors + info: | + PrimaryExpression : RegularExpressionLiteral + + description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... + + negative: + phase: parse + type: SyntaxError + ---*/ + + + /./G; + ~ +!!! error TS1497: Unknown regular expression flag. + \ No newline at end of file diff --git a/tests/baselines/reference/early-err-bad-flag.js b/tests/baselines/reference/early-err-bad-flag.js new file mode 100644 index 0000000000000..a5e65e14f17ee --- /dev/null +++ b/tests/baselines/reference/early-err-bad-flag.js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts] //// + +//// [early-err-bad-flag.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./G; + + +//// [early-err-bad-flag.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... + +negative: + phase: parse + type: SyntaxError +---*/ +/./G; diff --git a/tests/baselines/reference/early-err-bad-flag.symbols b/tests/baselines/reference/early-err-bad-flag.symbols new file mode 100644 index 0000000000000..c12d73678557f --- /dev/null +++ b/tests/baselines/reference/early-err-bad-flag.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts] //// + +=== early-err-bad-flag.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./G; + diff --git a/tests/baselines/reference/early-err-bad-flag.types b/tests/baselines/reference/early-err-bad-flag.types new file mode 100644 index 0000000000000..e8502efa8f16f --- /dev/null +++ b/tests/baselines/reference/early-err-bad-flag.types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts] //// + +=== early-err-bad-flag.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./G; +>/./G : RegExp + diff --git a/tests/baselines/reference/early-err-dup-flag.errors.txt b/tests/baselines/reference/early-err-dup-flag.errors.txt new file mode 100644 index 0000000000000..5f1bbbe369054 --- /dev/null +++ b/tests/baselines/reference/early-err-dup-flag.errors.txt @@ -0,0 +1,24 @@ +early-err-dup-flag.ts(17,6): error TS1498: Duplicate regular expression flag. + + +==== early-err-dup-flag.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors + info: | + PrimaryExpression : RegularExpressionLiteral + + description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. + + negative: + phase: parse + type: SyntaxError + ---*/ + + + /./gig; + ~ +!!! error TS1498: Duplicate regular expression flag. + \ No newline at end of file diff --git a/tests/baselines/reference/early-err-dup-flag.js b/tests/baselines/reference/early-err-dup-flag.js new file mode 100644 index 0000000000000..3f63ea1ceb231 --- /dev/null +++ b/tests/baselines/reference/early-err-dup-flag.js @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts] //// + +//// [early-err-dup-flag.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./gig; + + +//// [early-err-dup-flag.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. + +negative: + phase: parse + type: SyntaxError +---*/ +/./gig; diff --git a/tests/baselines/reference/early-err-dup-flag.symbols b/tests/baselines/reference/early-err-dup-flag.symbols new file mode 100644 index 0000000000000..bfc3e0ba1e289 --- /dev/null +++ b/tests/baselines/reference/early-err-dup-flag.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts] //// + +=== early-err-dup-flag.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./gig; + diff --git a/tests/baselines/reference/early-err-dup-flag.types b/tests/baselines/reference/early-err-dup-flag.types new file mode 100644 index 0000000000000..c26159373510f --- /dev/null +++ b/tests/baselines/reference/early-err-dup-flag.types @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts] //// + +=== early-err-dup-flag.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./gig; +>/./gig : RegExp + diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.errors.txt b/tests/baselines/reference/early-err-flags-unicode-escape.errors.txt new file mode 100644 index 0000000000000..e9d42a00fd625 --- /dev/null +++ b/tests/baselines/reference/early-err-flags-unicode-escape.errors.txt @@ -0,0 +1,27 @@ +early-err-flags-unicode-escape.ts(17,4): error TS1005: ';' expected. +early-err-flags-unicode-escape.ts(17,4): error TS2304: Cannot find name '\u0067'. + + +==== early-err-flags-unicode-escape.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-regular-expression-literals-static-semantics-early-errors + info: | + RegularExpressionFlags :: + RegularExpressionFlags IdentifierPart + + description: > + It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /./\u0067; + ~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~ +!!! error TS2304: Cannot find name '\u0067'. + \ No newline at end of file diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.js b/tests/baselines/reference/early-err-flags-unicode-escape.js new file mode 100644 index 0000000000000..6c7ad052ba75b --- /dev/null +++ b/tests/baselines/reference/early-err-flags-unicode-escape.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts] //// + +//// [early-err-flags-unicode-escape.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals-static-semantics-early-errors +info: | + RegularExpressionFlags :: + RegularExpressionFlags IdentifierPart + +description: > + It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. +negative: + phase: parse + type: SyntaxError +---*/ + + +/./\u0067; + + +//// [early-err-flags-unicode-escape.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals-static-semantics-early-errors +info: | + RegularExpressionFlags :: + RegularExpressionFlags IdentifierPart + +description: > + It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. +negative: + phase: parse + type: SyntaxError +---*/ +/./; +\u0067; diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.symbols b/tests/baselines/reference/early-err-flags-unicode-escape.symbols new file mode 100644 index 0000000000000..fff5120586eb8 --- /dev/null +++ b/tests/baselines/reference/early-err-flags-unicode-escape.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts] //// + +=== early-err-flags-unicode-escape.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals-static-semantics-early-errors +info: | + RegularExpressionFlags :: + RegularExpressionFlags IdentifierPart + +description: > + It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. +negative: + phase: parse + type: SyntaxError +---*/ + + +/./\u0067; + diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.types b/tests/baselines/reference/early-err-flags-unicode-escape.types new file mode 100644 index 0000000000000..621906d55be9b --- /dev/null +++ b/tests/baselines/reference/early-err-flags-unicode-escape.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts] //// + +=== early-err-flags-unicode-escape.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals-static-semantics-early-errors +info: | + RegularExpressionFlags :: + RegularExpressionFlags IdentifierPart + +description: > + It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. +negative: + phase: parse + type: SyntaxError +---*/ + + +/./\u0067; +>/./ : RegExp +>\u0067 : any + diff --git a/tests/baselines/reference/early-err-pattern.errors.txt b/tests/baselines/reference/early-err-pattern.errors.txt new file mode 100644 index 0000000000000..efcf12eb3b99d --- /dev/null +++ b/tests/baselines/reference/early-err-pattern.errors.txt @@ -0,0 +1,23 @@ +early-err-pattern.ts(16,2): error TS1505: There is nothing available for repetition. + + +==== early-err-pattern.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors + info: | + PrimaryExpression : RegularExpressionLiteral + + description: > + It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /?/; + ~ +!!! error TS1505: There is nothing available for repetition. + \ No newline at end of file diff --git a/tests/baselines/reference/early-err-pattern.js b/tests/baselines/reference/early-err-pattern.js new file mode 100644 index 0000000000000..11a25bc0e68ef --- /dev/null +++ b/tests/baselines/reference/early-err-pattern.js @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts] //// + +//// [early-err-pattern.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. +negative: + phase: parse + type: SyntaxError +---*/ + + +/?/; + + +//// [early-err-pattern.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. +negative: + phase: parse + type: SyntaxError +---*/ +/?/; diff --git a/tests/baselines/reference/early-err-pattern.symbols b/tests/baselines/reference/early-err-pattern.symbols new file mode 100644 index 0000000000000..85bf83ff9810b --- /dev/null +++ b/tests/baselines/reference/early-err-pattern.symbols @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts] //// + +=== early-err-pattern.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. +negative: + phase: parse + type: SyntaxError +---*/ + + +/?/; + diff --git a/tests/baselines/reference/early-err-pattern.types b/tests/baselines/reference/early-err-pattern.types new file mode 100644 index 0000000000000..de5ae3458c90e --- /dev/null +++ b/tests/baselines/reference/early-err-pattern.types @@ -0,0 +1,21 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts] //// + +=== early-err-pattern.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. +negative: + phase: parse + type: SyntaxError +---*/ + + +/?/; +>/?/ : RegExp + diff --git a/tests/baselines/reference/exponent-part.errors.txt b/tests/baselines/reference/exponent-part.errors.txt new file mode 100644 index 0000000000000..b79cd99e6351a --- /dev/null +++ b/tests/baselines/reference/exponent-part.errors.txt @@ -0,0 +1,22 @@ +exponent-part.ts(15,1): error TS1352: A bigint literal cannot use exponential notation. + + +==== exponent-part.ts (1 errors) ==== + // Copyright (C) 2017 Robin Templeton. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: > + It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. + esid: sec-numeric-literal-static-semantics-early-errors + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0e0n; + ~~~~ +!!! error TS1352: A bigint literal cannot use exponential notation. + \ No newline at end of file diff --git a/tests/baselines/reference/exponent-part.js b/tests/baselines/reference/exponent-part.js new file mode 100644 index 0000000000000..05651303a033c --- /dev/null +++ b/tests/baselines/reference/exponent-part.js @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts] //// + +//// [exponent-part.ts] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. +esid: sec-numeric-literal-static-semantics-early-errors +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0e0n; + + +//// [exponent-part.js] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. +esid: sec-numeric-literal-static-semantics-early-errors +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +0e0n; diff --git a/tests/baselines/reference/exponent-part.symbols b/tests/baselines/reference/exponent-part.symbols new file mode 100644 index 0000000000000..94281fe6109a9 --- /dev/null +++ b/tests/baselines/reference/exponent-part.symbols @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts] //// + +=== exponent-part.ts === + +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. +esid: sec-numeric-literal-static-semantics-early-errors +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0e0n; + diff --git a/tests/baselines/reference/exponent-part.types b/tests/baselines/reference/exponent-part.types new file mode 100644 index 0000000000000..42a0251a064ec --- /dev/null +++ b/tests/baselines/reference/exponent-part.types @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts] //// + +=== exponent-part.ts === +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. +esid: sec-numeric-literal-static-semantics-early-errors +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0e0n; +>0e0n : 0 + diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.errors.txt b/tests/baselines/reference/hexadecimal-invalid-digit.errors.txt new file mode 100644 index 0000000000000..7e0721396d9c2 --- /dev/null +++ b/tests/baselines/reference/hexadecimal-invalid-digit.errors.txt @@ -0,0 +1,35 @@ +hexadecimal-invalid-digit.ts(25,3): error TS1125: Hexadecimal digit expected. +hexadecimal-invalid-digit.ts(25,3): error TS2304: Cannot find name 'gn'. + + +==== hexadecimal-invalid-digit.ts (2 errors) ==== + // Copyright (C) 2017 Robin Templeton. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Hexadecimal BigInt literal containing an invalid digit + esid: prod-NumericLiteral + info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n + negative: + phase: parse + type: SyntaxError + features: [BigInt] + ---*/ + + + 0xgn; + +!!! error TS1125: Hexadecimal digit expected. + ~~ +!!! error TS2304: Cannot find name 'gn'. + \ No newline at end of file diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.js b/tests/baselines/reference/hexadecimal-invalid-digit.js new file mode 100644 index 0000000000000..6229bc614080f --- /dev/null +++ b/tests/baselines/reference/hexadecimal-invalid-digit.js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts] //// + +//// [hexadecimal-invalid-digit.ts] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Hexadecimal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0xgn; + + +//// [hexadecimal-invalid-digit.js] +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Hexadecimal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ +0x; +gn; diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.symbols b/tests/baselines/reference/hexadecimal-invalid-digit.symbols new file mode 100644 index 0000000000000..520b45c9cbc4f --- /dev/null +++ b/tests/baselines/reference/hexadecimal-invalid-digit.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts] //// + +=== hexadecimal-invalid-digit.ts === + +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Hexadecimal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0xgn; + diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.types b/tests/baselines/reference/hexadecimal-invalid-digit.types new file mode 100644 index 0000000000000..9585dc4bed29b --- /dev/null +++ b/tests/baselines/reference/hexadecimal-invalid-digit.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts] //// + +=== hexadecimal-invalid-digit.ts === +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Hexadecimal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0xgn; +>0x : 0 +>gn : any + diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt b/tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt new file mode 100644 index 0000000000000..9d027b21f30a9 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt @@ -0,0 +1,31 @@ +invalid-braced-quantifier-exact.ts(24,2): error TS1505: There is nothing available for repetition. + + +==== invalid-braced-quantifier-exact.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: Braced quantifier in an Atom position (exact count) + info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /{2}/; + ~~~ +!!! error TS1505: There is nothing available for repetition. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.js b/tests/baselines/reference/invalid-braced-quantifier-exact.js new file mode 100644 index 0000000000000..265fccb9aca83 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-exact.js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts] //// + +//// [invalid-braced-quantifier-exact.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (exact count) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2}/; + + +//// [invalid-braced-quantifier-exact.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (exact count) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ +/{2}/; diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.symbols b/tests/baselines/reference/invalid-braced-quantifier-exact.symbols new file mode 100644 index 0000000000000..39565f5f2530c --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-exact.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts] //// + +=== invalid-braced-quantifier-exact.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (exact count) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2}/; + diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.types b/tests/baselines/reference/invalid-braced-quantifier-exact.types new file mode 100644 index 0000000000000..aff262c0136c8 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-exact.types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts] //// + +=== invalid-braced-quantifier-exact.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (exact count) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2}/; +>/{2}/ : RegExp + diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt b/tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt new file mode 100644 index 0000000000000..f0966a10dcee8 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt @@ -0,0 +1,31 @@ +invalid-braced-quantifier-lower.ts(24,2): error TS1505: There is nothing available for repetition. + + +==== invalid-braced-quantifier-lower.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: Braced quantifier in an Atom position (lower-bounds) + info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /{2,}/; + ~~~~ +!!! error TS1505: There is nothing available for repetition. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.js b/tests/baselines/reference/invalid-braced-quantifier-lower.js new file mode 100644 index 0000000000000..ac958f7a0bab4 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-lower.js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts] //// + +//// [invalid-braced-quantifier-lower.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (lower-bounds) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,}/; + + +//// [invalid-braced-quantifier-lower.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (lower-bounds) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ +/{2,}/; diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.symbols b/tests/baselines/reference/invalid-braced-quantifier-lower.symbols new file mode 100644 index 0000000000000..333950e31ac21 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-lower.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts] //// + +=== invalid-braced-quantifier-lower.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (lower-bounds) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,}/; + diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.types b/tests/baselines/reference/invalid-braced-quantifier-lower.types new file mode 100644 index 0000000000000..1bf12436f232b --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-lower.types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts] //// + +=== invalid-braced-quantifier-lower.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (lower-bounds) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,}/; +>/{2,}/ : RegExp + diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.errors.txt b/tests/baselines/reference/invalid-braced-quantifier-range.errors.txt new file mode 100644 index 0000000000000..a0687e6cebfce --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-range.errors.txt @@ -0,0 +1,31 @@ +invalid-braced-quantifier-range.ts(24,2): error TS1505: There is nothing available for repetition. + + +==== invalid-braced-quantifier-range.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: Braced quantifier in an Atom position (range) + info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /{2,3}/; + ~~~~~ +!!! error TS1505: There is nothing available for repetition. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.js b/tests/baselines/reference/invalid-braced-quantifier-range.js new file mode 100644 index 0000000000000..232e4d28486aa --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-range.js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts] //// + +//// [invalid-braced-quantifier-range.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (range) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,3}/; + + +//// [invalid-braced-quantifier-range.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (range) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ +/{2,3}/; diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.symbols b/tests/baselines/reference/invalid-braced-quantifier-range.symbols new file mode 100644 index 0000000000000..d38c1c20b0480 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-range.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts] //// + +=== invalid-braced-quantifier-range.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (range) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,3}/; + diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.types b/tests/baselines/reference/invalid-braced-quantifier-range.types new file mode 100644 index 0000000000000..c3c6b9fad6277 --- /dev/null +++ b/tests/baselines/reference/invalid-braced-quantifier-range.types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts] //// + +=== invalid-braced-quantifier-range.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (range) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,3}/; +>/{2,3}/ : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt new file mode 100644 index 0000000000000..b338c7591c846 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt @@ -0,0 +1,32 @@ +invalid-dangling-groupname-2-u.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname-2-u.ts(19,12): error TS1530: There is no capturing group named 'ab' in this regular expression. +invalid-dangling-groupname-2-u.ts(19,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-dangling-groupname-2-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)\k/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~ +!!! error TS1530: There is no capturing group named 'ab' in this regular expression. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.js b/tests/baselines/reference/invalid-dangling-groupname-2-u.js new file mode 100644 index 0000000000000..a21106e3ee8cc --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2-u.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts] //// + +//// [invalid-dangling-groupname-2-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; + + +//// [invalid-dangling-groupname-2-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-2-u.symbols new file mode 100644 index 0000000000000..4bd55c2c73397 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2-u.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts] //// + +=== invalid-dangling-groupname-2-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.types b/tests/baselines/reference/invalid-dangling-groupname-2-u.types new file mode 100644 index 0000000000000..c6427be9468ab --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2-u.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts] //// + +=== invalid-dangling-groupname-2-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; +>/(?a)\k/u : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-2.errors.txt new file mode 100644 index 0000000000000..9b6a919c9c66c --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2.errors.txt @@ -0,0 +1,29 @@ +invalid-dangling-groupname-2.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname-2.ts(19,12): error TS1530: There is no capturing group named 'ab' in this regular expression. + + +==== invalid-dangling-groupname-2.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)\k/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~ +!!! error TS1530: There is no capturing group named 'ab' in this regular expression. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.js b/tests/baselines/reference/invalid-dangling-groupname-2.js new file mode 100644 index 0000000000000..acdc15d1eeb83 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts] //// + +//// [invalid-dangling-groupname-2.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; + + +//// [invalid-dangling-groupname-2.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)\k/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.symbols b/tests/baselines/reference/invalid-dangling-groupname-2.symbols new file mode 100644 index 0000000000000..a80e770c230d9 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts] //// + +=== invalid-dangling-groupname-2.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.types b/tests/baselines/reference/invalid-dangling-groupname-2.types new file mode 100644 index 0000000000000..7664159dca23c --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-2.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts] //// + +=== invalid-dangling-groupname-2.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; +>/(?a)\k/ : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt new file mode 100644 index 0000000000000..296f001ecfcab --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt @@ -0,0 +1,32 @@ +invalid-dangling-groupname-3-u.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname-3-u.ts(19,13): error TS1530: There is no capturing group named 'a' in this regular expression. +invalid-dangling-groupname-3-u.ts(19,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-dangling-groupname-3-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)\k/u; + ~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1530: There is no capturing group named 'a' in this regular expression. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.js b/tests/baselines/reference/invalid-dangling-groupname-3-u.js new file mode 100644 index 0000000000000..c9535b749dc67 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3-u.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts] //// + +//// [invalid-dangling-groupname-3-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; + + +//// [invalid-dangling-groupname-3-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-3-u.symbols new file mode 100644 index 0000000000000..5af9d6866fcbe --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3-u.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts] //// + +=== invalid-dangling-groupname-3-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.types b/tests/baselines/reference/invalid-dangling-groupname-3-u.types new file mode 100644 index 0000000000000..8a658cc9dfefd --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3-u.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts] //// + +=== invalid-dangling-groupname-3-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; +>/(?a)\k/u : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-3.errors.txt new file mode 100644 index 0000000000000..35d418979bfc2 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3.errors.txt @@ -0,0 +1,29 @@ +invalid-dangling-groupname-3.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname-3.ts(19,13): error TS1530: There is no capturing group named 'a' in this regular expression. + + +==== invalid-dangling-groupname-3.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)\k/; + ~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1530: There is no capturing group named 'a' in this regular expression. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.js b/tests/baselines/reference/invalid-dangling-groupname-3.js new file mode 100644 index 0000000000000..2c2bf8b2070b3 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts] //// + +//// [invalid-dangling-groupname-3.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; + + +//// [invalid-dangling-groupname-3.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)\k/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.symbols b/tests/baselines/reference/invalid-dangling-groupname-3.symbols new file mode 100644 index 0000000000000..8288cd1269a00 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts] //// + +=== invalid-dangling-groupname-3.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.types b/tests/baselines/reference/invalid-dangling-groupname-3.types new file mode 100644 index 0000000000000..d957bb699889c --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-3.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts] //// + +=== invalid-dangling-groupname-3.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; +>/(?a)\k/ : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt new file mode 100644 index 0000000000000..5b1848067f7b8 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt @@ -0,0 +1,32 @@ +invalid-dangling-groupname-4-u.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. +invalid-dangling-groupname-4-u.ts(19,9): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname-4-u.ts(19,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-dangling-groupname-4-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k(?a)/u; + ~ +!!! error TS1530: There is no capturing group named 'a' in this regular expression. + ~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.js b/tests/baselines/reference/invalid-dangling-groupname-4-u.js new file mode 100644 index 0000000000000..a948583ae59bc --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4-u.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts] //// + +//// [invalid-dangling-groupname-4-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/u; + + +//// [invalid-dangling-groupname-4-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k(?a)/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-4-u.symbols new file mode 100644 index 0000000000000..bd4f83706bf61 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4-u.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts] //// + +=== invalid-dangling-groupname-4-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/u; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.types b/tests/baselines/reference/invalid-dangling-groupname-4-u.types new file mode 100644 index 0000000000000..f7cefef260dad --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4-u.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts] //// + +=== invalid-dangling-groupname-4-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/u; +>/\k(?a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-4.errors.txt new file mode 100644 index 0000000000000..29fcb5375b566 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4.errors.txt @@ -0,0 +1,29 @@ +invalid-dangling-groupname-4.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. +invalid-dangling-groupname-4.ts(19,9): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + + +==== invalid-dangling-groupname-4.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k(?a)/; + ~ +!!! error TS1530: There is no capturing group named 'a' in this regular expression. + ~~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.js b/tests/baselines/reference/invalid-dangling-groupname-4.js new file mode 100644 index 0000000000000..08778cf6acfa1 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts] //// + +//// [invalid-dangling-groupname-4.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/; + + +//// [invalid-dangling-groupname-4.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k(?a)/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.symbols b/tests/baselines/reference/invalid-dangling-groupname-4.symbols new file mode 100644 index 0000000000000..e1d79c58d264b --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts] //// + +=== invalid-dangling-groupname-4.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.types b/tests/baselines/reference/invalid-dangling-groupname-4.types new file mode 100644 index 0000000000000..938ffceb18d56 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-4.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts] //// + +=== invalid-dangling-groupname-4.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/; +>/\k(?a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-5.errors.txt new file mode 100644 index 0000000000000..654b23df12cfb --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-5.errors.txt @@ -0,0 +1,29 @@ +invalid-dangling-groupname-5.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. +invalid-dangling-groupname-5.ts(19,9): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + + +==== invalid-dangling-groupname-5.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k(?x)/; + ~ +!!! error TS1530: There is no capturing group named 'a' in this regular expression. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.js b/tests/baselines/reference/invalid-dangling-groupname-5.js new file mode 100644 index 0000000000000..01d4c6140c89c --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-5.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts] //// + +//// [invalid-dangling-groupname-5.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?x)/; + + +//// [invalid-dangling-groupname-5.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k(?x)/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.symbols b/tests/baselines/reference/invalid-dangling-groupname-5.symbols new file mode 100644 index 0000000000000..cabeea1531aeb --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-5.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts] //// + +=== invalid-dangling-groupname-5.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?x)/; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.types b/tests/baselines/reference/invalid-dangling-groupname-5.types new file mode 100644 index 0000000000000..a9bcd58c6d9a2 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-5.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts] //// + +=== invalid-dangling-groupname-5.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?x)/; +>/\k(?x)/ : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-u.errors.txt new file mode 100644 index 0000000000000..da11836807747 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-u.errors.txt @@ -0,0 +1,32 @@ +invalid-dangling-groupname-u.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname-u.ts(19,12): error TS1530: There is no capturing group named 'b' in this regular expression. +invalid-dangling-groupname-u.ts(19,15): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-dangling-groupname-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1530: There is no capturing group named 'b' in this regular expression. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.js b/tests/baselines/reference/invalid-dangling-groupname-u.js new file mode 100644 index 0000000000000..b171acb9cf710 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-u.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts] //// + +//// [invalid-dangling-groupname-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; + + +//// [invalid-dangling-groupname-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-u.symbols new file mode 100644 index 0000000000000..8e22666f1ea70 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-u.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts] //// + +=== invalid-dangling-groupname-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.types b/tests/baselines/reference/invalid-dangling-groupname-u.types new file mode 100644 index 0000000000000..50b2780900439 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-u.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts] //// + +=== invalid-dangling-groupname-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; +>/(?.)\k/u : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt new file mode 100644 index 0000000000000..d702fc863b517 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt @@ -0,0 +1,29 @@ +invalid-dangling-groupname-without-group-u.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. +invalid-dangling-groupname-without-group-u.ts(19,8): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-dangling-groupname-without-group-u.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k/u; + ~ +!!! error TS1530: There is no capturing group named 'a' in this regular expression. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.js b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.js new file mode 100644 index 0000000000000..550099b920576 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts] //// + +//// [invalid-dangling-groupname-without-group-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; + + +//// [invalid-dangling-groupname-without-group-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols new file mode 100644 index 0000000000000..cb9ea0ed613dd --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts] //// + +=== invalid-dangling-groupname-without-group-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; + diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.types b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.types new file mode 100644 index 0000000000000..616e76b3d637c --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts] //// + +=== invalid-dangling-groupname-without-group-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; +>/\k/u : RegExp + diff --git a/tests/baselines/reference/invalid-dangling-groupname.errors.txt b/tests/baselines/reference/invalid-dangling-groupname.errors.txt new file mode 100644 index 0000000000000..9532208b10790 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname.errors.txt @@ -0,0 +1,29 @@ +invalid-dangling-groupname.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-dangling-groupname.ts(19,12): error TS1530: There is no capturing group named 'b' in this regular expression. + + +==== invalid-dangling-groupname.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: Group reference must have corresponding group. + info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1530: There is no capturing group named 'b' in this regular expression. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname.js b/tests/baselines/reference/invalid-dangling-groupname.js new file mode 100644 index 0000000000000..61f5f1173f4c8 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts] //// + +//// [invalid-dangling-groupname.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; + + +//// [invalid-dangling-groupname.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k/; diff --git a/tests/baselines/reference/invalid-dangling-groupname.symbols b/tests/baselines/reference/invalid-dangling-groupname.symbols new file mode 100644 index 0000000000000..ac6b50f9b3362 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts] //// + +=== invalid-dangling-groupname.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; + diff --git a/tests/baselines/reference/invalid-dangling-groupname.types b/tests/baselines/reference/invalid-dangling-groupname.types new file mode 100644 index 0000000000000..de36c73f413a6 --- /dev/null +++ b/tests/baselines/reference/invalid-dangling-groupname.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts] //// + +=== invalid-dangling-groupname.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; +>/(?.)\k/ : RegExp + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt new file mode 100644 index 0000000000000..e6133feab8205 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt @@ -0,0 +1,37 @@ +invalid-duplicate-groupspecifier-2-u.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-2-u.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-2-u.ts(18,18): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-2-u.ts(18,19): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. +invalid-duplicate-groupspecifier-2-u.ts(18,24): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-duplicate-groupspecifier-2-u.ts (5 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifiers within one alternative must be unique. + info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)(?b)(?a)/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js new file mode 100644 index 0000000000000..9d5b03abea346 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts] //// + +//// [invalid-duplicate-groupspecifier-2-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/u; + + +//// [invalid-duplicate-groupspecifier-2-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)(?b)(?a)/u; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols new file mode 100644 index 0000000000000..b35d92563f9e0 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts] //// + +=== invalid-duplicate-groupspecifier-2-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/u; + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types new file mode 100644 index 0000000000000..adc3a9359cac0 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts] //// + +=== invalid-duplicate-groupspecifier-2-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/u; +>/(?a)(?b)(?a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt new file mode 100644 index 0000000000000..55528bd812aa6 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt @@ -0,0 +1,34 @@ +invalid-duplicate-groupspecifier-2.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-2.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-2.ts(18,18): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-2.ts(18,19): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + + +==== invalid-duplicate-groupspecifier-2.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifiers within one alternative must be unique. + info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)(?b)(?a)/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.js b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.js new file mode 100644 index 0000000000000..556314e836874 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts] //// + +//// [invalid-duplicate-groupspecifier-2.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/; + + +//// [invalid-duplicate-groupspecifier-2.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)(?b)(?a)/; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols new file mode 100644 index 0000000000000..ed89432f12146 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts] //// + +=== invalid-duplicate-groupspecifier-2.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/; + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.types b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.types new file mode 100644 index 0000000000000..02c76ba049e3c --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts] //// + +=== invalid-duplicate-groupspecifier-2.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/; +>/(?a)(?b)(?a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt new file mode 100644 index 0000000000000..e66380cfdee27 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt @@ -0,0 +1,34 @@ +invalid-duplicate-groupspecifier-u.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-u.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier-u.ts(18,12): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. +invalid-duplicate-groupspecifier-u.ts(18,17): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-duplicate-groupspecifier-u.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifiers within one alternative must be unique. + info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)(?a)/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.js b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.js new file mode 100644 index 0000000000000..9a74af8c3c011 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts] //// + +//// [invalid-duplicate-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/u; + + +//// [invalid-duplicate-groupspecifier-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)(?a)/u; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols new file mode 100644 index 0000000000000..a6abb6227f114 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts] //// + +=== invalid-duplicate-groupspecifier-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/u; + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.types b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.types new file mode 100644 index 0000000000000..87a44b6fd3deb --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts] //// + +=== invalid-duplicate-groupspecifier-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/u; +>/(?a)(?a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt new file mode 100644 index 0000000000000..a1807ba2b064e --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt @@ -0,0 +1,31 @@ +invalid-duplicate-groupspecifier.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-duplicate-groupspecifier.ts(18,12): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + + +==== invalid-duplicate-groupspecifier.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifiers within one alternative must be unique. + info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. + esid: sec-patterns-static-semantics-early-errors + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)(?a)/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~ +!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.js b/tests/baselines/reference/invalid-duplicate-groupspecifier.js new file mode 100644 index 0000000000000..07c2bafc96d9c --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts] //// + +//// [invalid-duplicate-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/; + + +//// [invalid-duplicate-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)(?a)/; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier.symbols new file mode 100644 index 0000000000000..4294238293bcc --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts] //// + +=== invalid-duplicate-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/; + diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.types b/tests/baselines/reference/invalid-duplicate-groupspecifier.types new file mode 100644 index 0000000000000..9f1bdd767a0e8 --- /dev/null +++ b/tests/baselines/reference/invalid-duplicate-groupspecifier.types @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts] //// + +=== invalid-duplicate-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/; +>/(?a)(?a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt new file mode 100644 index 0000000000000..1950bb09b6ac5 --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt @@ -0,0 +1,27 @@ +invalid-empty-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-empty-groupspecifier-u.ts(14,5): error TS1512: Expected a capturing group name. +invalid-empty-groupspecifier-u.ts(14,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-empty-groupspecifier-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<>a)/u; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.js b/tests/baselines/reference/invalid-empty-groupspecifier-u.js new file mode 100644 index 0000000000000..85063d9e165e6 --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts] //// + +//// [invalid-empty-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/u; + + +//// [invalid-empty-groupspecifier-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<>a)/u; diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.symbols b/tests/baselines/reference/invalid-empty-groupspecifier-u.symbols new file mode 100644 index 0000000000000..737e19e4322fa --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts] //// + +=== invalid-empty-groupspecifier-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/u; + diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.types b/tests/baselines/reference/invalid-empty-groupspecifier-u.types new file mode 100644 index 0000000000000..b5b51a7a9e798 --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts] //// + +=== invalid-empty-groupspecifier-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/u; +>/(?<>a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.errors.txt b/tests/baselines/reference/invalid-empty-groupspecifier.errors.txt new file mode 100644 index 0000000000000..fa8b238480065 --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier.errors.txt @@ -0,0 +1,24 @@ +invalid-empty-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-empty-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. + + +==== invalid-empty-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<>a)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.js b/tests/baselines/reference/invalid-empty-groupspecifier.js new file mode 100644 index 0000000000000..9e29cbe631a4b --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts] //// + +//// [invalid-empty-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/; + + +//// [invalid-empty-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<>a)/; diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.symbols b/tests/baselines/reference/invalid-empty-groupspecifier.symbols new file mode 100644 index 0000000000000..61fe301b0efad --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts] //// + +=== invalid-empty-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/; + diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.types b/tests/baselines/reference/invalid-empty-groupspecifier.types new file mode 100644 index 0000000000000..16ee2da753e5c --- /dev/null +++ b/tests/baselines/reference/invalid-empty-groupspecifier.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts] //// + +=== invalid-empty-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/; +>/(?<>a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt b/tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt new file mode 100644 index 0000000000000..9e77f68fd5658 --- /dev/null +++ b/tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt @@ -0,0 +1,27 @@ +invalid-identity-escape-in-capture-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-identity-escape-in-capture-u.ts(14,7): error TS1496: '\a' is not a valid character escape. +invalid-identity-escape-in-capture-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-identity-escape-in-capture-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?\a)/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~ +!!! error TS1496: '\a' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.js b/tests/baselines/reference/invalid-identity-escape-in-capture-u.js new file mode 100644 index 0000000000000..10edb3d58dce1 --- /dev/null +++ b/tests/baselines/reference/invalid-identity-escape-in-capture-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts] //// + +//// [invalid-identity-escape-in-capture-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?\a)/u; + + +//// [invalid-identity-escape-in-capture-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?\a)/u; diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols b/tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols new file mode 100644 index 0000000000000..5297caec46182 --- /dev/null +++ b/tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts] //// + +=== invalid-identity-escape-in-capture-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?\a)/u; + diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.types b/tests/baselines/reference/invalid-identity-escape-in-capture-u.types new file mode 100644 index 0000000000000..4a70a8e6e471b --- /dev/null +++ b/tests/baselines/reference/invalid-identity-escape-in-capture-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts] //// + +=== invalid-identity-escape-in-capture-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?\a)/u; +>/(?\a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt new file mode 100644 index 0000000000000..14d9503228848 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt @@ -0,0 +1,27 @@ +invalid-incomplete-groupname-2-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-incomplete-groupname-2-u.ts(14,13): error TS1005: '>' expected. +invalid-incomplete-groupname-2-u.ts(14,14): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-incomplete-groupname-2-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-2-u.js b/tests/baselines/reference/invalid-incomplete-groupname-2-u.js new file mode 100644 index 0000000000000..4fbfefea89392 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-2-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts] //// + +//// [invalid-incomplete-groupname-2-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/(?.)\k' expected. + + +==== invalid-incomplete-groupname-2.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-2.js b/tests/baselines/reference/invalid-incomplete-groupname-2.js new file mode 100644 index 0000000000000..54e926da0adcf --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-2.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2.ts] //// + +//// [invalid-incomplete-groupname-2.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/(?.)\k`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k<>/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3-u.js b/tests/baselines/reference/invalid-incomplete-groupname-3-u.js new file mode 100644 index 0000000000000..e8d65f23df00a --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts] //// + +//// [invalid-incomplete-groupname-3-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/u; + + +//// [invalid-incomplete-groupname-3-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k<>/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols new file mode 100644 index 0000000000000..791f8c7c47f59 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts] //// + +=== invalid-incomplete-groupname-3-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/u; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3-u.types b/tests/baselines/reference/invalid-incomplete-groupname-3-u.types new file mode 100644 index 0000000000000..ac96d0da9262b --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts] //// + +=== invalid-incomplete-groupname-3-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/u; +>/(?.)\k<>/u : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt new file mode 100644 index 0000000000000..38ad49c10ea03 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt @@ -0,0 +1,24 @@ +invalid-incomplete-groupname-3.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-incomplete-groupname-3.ts(14,12): error TS1512: Expected a capturing group name. + + +==== invalid-incomplete-groupname-3.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k<>/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.js b/tests/baselines/reference/invalid-incomplete-groupname-3.js new file mode 100644 index 0000000000000..ab7d71dd21c4b --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts] //// + +//// [invalid-incomplete-groupname-3.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/; + + +//// [invalid-incomplete-groupname-3.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k<>/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.symbols b/tests/baselines/reference/invalid-incomplete-groupname-3.symbols new file mode 100644 index 0000000000000..88bd5f2ea459f --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts] //// + +=== invalid-incomplete-groupname-3.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.types b/tests/baselines/reference/invalid-incomplete-groupname-3.types new file mode 100644 index 0000000000000..d4978aedb9b42 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-3.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts] //// + +=== invalid-incomplete-groupname-3.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/; +>/(?.)\k<>/ : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt new file mode 100644 index 0000000000000..b942b87f23ada --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt @@ -0,0 +1,24 @@ +invalid-incomplete-groupname-4.ts(14,6): error TS1005: '>' expected. +invalid-incomplete-groupname-4.ts(14,8): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + + +==== invalid-incomplete-groupname-4.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\ka)/; + +!!! error TS1005: '>' expected. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.js b/tests/baselines/reference/invalid-incomplete-groupname-4.js new file mode 100644 index 0000000000000..439bdcc755b68 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-4.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts] //// + +//// [invalid-incomplete-groupname-4.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\ka)/; + + +//// [invalid-incomplete-groupname-4.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\ka)/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.symbols b/tests/baselines/reference/invalid-incomplete-groupname-4.symbols new file mode 100644 index 0000000000000..d2b8a40654509 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-4.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts] //// + +=== invalid-incomplete-groupname-4.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\ka)/; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.types b/tests/baselines/reference/invalid-incomplete-groupname-4.types new file mode 100644 index 0000000000000..253893829e848 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-4.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts] //// + +=== invalid-incomplete-groupname-4.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\ka)/; +>/\ka)/ : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt new file mode 100644 index 0000000000000..8fe4c888ce7d1 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt @@ -0,0 +1,24 @@ +invalid-incomplete-groupname-5.ts(14,6): error TS1005: '>' expected. +invalid-incomplete-groupname-5.ts(14,8): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + + +==== invalid-incomplete-groupname-5.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k.)/; + +!!! error TS1005: '>' expected. + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.js b/tests/baselines/reference/invalid-incomplete-groupname-5.js new file mode 100644 index 0000000000000..d829179b42adf --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-5.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts] //// + +//// [invalid-incomplete-groupname-5.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k.)/; + + +//// [invalid-incomplete-groupname-5.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k.)/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.symbols b/tests/baselines/reference/invalid-incomplete-groupname-5.symbols new file mode 100644 index 0000000000000..d55cb3f2815ae --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-5.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts] //// + +=== invalid-incomplete-groupname-5.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k.)/; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.types b/tests/baselines/reference/invalid-incomplete-groupname-5.types new file mode 100644 index 0000000000000..1b084604ef268 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-5.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts] //// + +=== invalid-incomplete-groupname-5.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k.)/; +>/\k.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt new file mode 100644 index 0000000000000..fed1fb02aa799 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt @@ -0,0 +1,21 @@ +invalid-incomplete-groupname-6.ts(14,6): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + + +==== invalid-incomplete-groupname-6.ts (1 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k(?.)/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.js b/tests/baselines/reference/invalid-incomplete-groupname-6.js new file mode 100644 index 0000000000000..0da2cb2f50246 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-6.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts] //// + +//// [invalid-incomplete-groupname-6.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?.)/; + + +//// [invalid-incomplete-groupname-6.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k(?.)/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.symbols b/tests/baselines/reference/invalid-incomplete-groupname-6.symbols new file mode 100644 index 0000000000000..c7b0b72cfeaf0 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-6.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts] //// + +=== invalid-incomplete-groupname-6.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?.)/; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.types b/tests/baselines/reference/invalid-incomplete-groupname-6.types new file mode 100644 index 0000000000000..8907178074e13 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-6.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts] //// + +=== invalid-incomplete-groupname-6.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?.)/; +>/\k(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt new file mode 100644 index 0000000000000..feebcd4ac3a45 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt @@ -0,0 +1,27 @@ +invalid-incomplete-groupname-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-incomplete-groupname-u.ts(14,9): error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. +invalid-incomplete-groupname-u.ts(14,12): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-incomplete-groupname-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k/u; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + ~~ +!!! error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.js b/tests/baselines/reference/invalid-incomplete-groupname-u.js new file mode 100644 index 0000000000000..3193f7afde45e --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts] //// + +//// [invalid-incomplete-groupname-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; + + +//// [invalid-incomplete-groupname-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-u.symbols new file mode 100644 index 0000000000000..d33f93a5572ff --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts] //// + +=== invalid-incomplete-groupname-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.types b/tests/baselines/reference/invalid-incomplete-groupname-u.types new file mode 100644 index 0000000000000..0ffdde06693e8 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts] //// + +=== invalid-incomplete-groupname-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; +>/(?.)\k/u : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt new file mode 100644 index 0000000000000..d3ef1eaef5536 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt @@ -0,0 +1,24 @@ +invalid-incomplete-groupname-without-group-2-u.ts(14,5): error TS1512: Expected a capturing group name. +invalid-incomplete-groupname-without-group-2-u.ts(14,7): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-incomplete-groupname-without-group-2-u.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k<>/u; + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js new file mode 100644 index 0000000000000..64e43d795b341 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts] //// + +//// [invalid-incomplete-groupname-without-group-2-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k<>/u; + + +//// [invalid-incomplete-groupname-without-group-2-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k<>/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols new file mode 100644 index 0000000000000..34d28b36641cc --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts] //// + +=== invalid-incomplete-groupname-without-group-2-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k<>/u; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types new file mode 100644 index 0000000000000..272431f357ef9 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts] //// + +=== invalid-incomplete-groupname-without-group-2-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k<>/u; +>/\k<>/u : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt new file mode 100644 index 0000000000000..058e7c7a7bc7a --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt @@ -0,0 +1,24 @@ +invalid-incomplete-groupname-without-group-3-u.ts(14,2): error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. +invalid-incomplete-groupname-without-group-3-u.ts(14,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-incomplete-groupname-without-group-3-u.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k/u; + ~~ +!!! error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js new file mode 100644 index 0000000000000..a68256987e2d4 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts] //// + +//// [invalid-incomplete-groupname-without-group-3-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; + + +//// [invalid-incomplete-groupname-without-group-3-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols new file mode 100644 index 0000000000000..d1c50d2bceb92 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts] //// + +=== invalid-incomplete-groupname-without-group-3-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types new file mode 100644 index 0000000000000..677b7f1a165e5 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts] //// + +=== invalid-incomplete-groupname-without-group-3-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; +>/\k/u : RegExp + diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt new file mode 100644 index 0000000000000..1f1ffa7adda1e --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt @@ -0,0 +1,27 @@ +invalid-incomplete-groupname-without-group-u.ts(14,5): error TS1530: There is no capturing group named 'a' in this regular expression. +invalid-incomplete-groupname-without-group-u.ts(14,6): error TS1005: '>' expected. +invalid-incomplete-groupname-without-group-u.ts(14,7): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-incomplete-groupname-without-group-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupName is `< RegExpIdentifierName >`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /\k' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js b/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js new file mode 100644 index 0000000000000..8fa61a2b7f227 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts] //// + +//// [invalid-incomplete-groupname-without-group-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/\k`. + esid: prod-GroupName + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)\k/; + ~~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname.js b/tests/baselines/reference/invalid-incomplete-groupname.js new file mode 100644 index 0000000000000..b27ecba91652d --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts] //// + +//// [invalid-incomplete-groupname.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; + + +//// [invalid-incomplete-groupname.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)\k/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname.symbols b/tests/baselines/reference/invalid-incomplete-groupname.symbols new file mode 100644 index 0000000000000..12b0cab3a7d42 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts] //// + +=== invalid-incomplete-groupname.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; + diff --git a/tests/baselines/reference/invalid-incomplete-groupname.types b/tests/baselines/reference/invalid-incomplete-groupname.types new file mode 100644 index 0000000000000..d4b1bc33c9632 --- /dev/null +++ b/tests/baselines/reference/invalid-incomplete-groupname.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts] //// + +=== invalid-incomplete-groupname.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; +>/(?.)\k/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt new file mode 100644 index 0000000000000..09b9944505b9a --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt @@ -0,0 +1,30 @@ +invalid-non-id-continue-groupspecifier-4-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-continue-groupspecifier-4-u.ts(14,6): error TS1005: '>' expected. +invalid-non-id-continue-groupspecifier-4-u.ts(14,6): error TS1496: '\>' is not a valid character escape. +invalid-non-id-continue-groupspecifier-4-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-continue-groupspecifier-4-u.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/u; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + ~~ +!!! error TS1496: '\>' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js new file mode 100644 index 0000000000000..b47af04d97860 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts] //// + +//// [invalid-non-id-continue-groupspecifier-4-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + + +//// [invalid-non-id-continue-groupspecifier-4-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols new file mode 100644 index 0000000000000..d25290f42263a --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts] //// + +=== invalid-non-id-continue-groupspecifier-4-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types new file mode 100644 index 0000000000000..6ec4f9b489300 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts] //// + +=== invalid-non-id-continue-groupspecifier-4-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; +>/(?.)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt new file mode 100644 index 0000000000000..4b0ac74b2500d --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-continue-groupspecifier-4.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-continue-groupspecifier-4.ts(14,6): error TS1005: '>' expected. + + +==== invalid-non-id-continue-groupspecifier-4.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js new file mode 100644 index 0000000000000..dc03377b7b44c --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts] //// + +//// [invalid-non-id-continue-groupspecifier-4.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + + +//// [invalid-non-id-continue-groupspecifier-4.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols new file mode 100644 index 0000000000000..6afb6f1bcb6fe --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts] //// + +=== invalid-non-id-continue-groupspecifier-4.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types new file mode 100644 index 0000000000000..50cb75890cb1c --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts] //// + +=== invalid-non-id-continue-groupspecifier-4.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; +>/(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt new file mode 100644 index 0000000000000..67f34649cb6ca --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-continue-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-continue-groupspecifier.ts(14,6): error TS1005: '>' expected. + + +==== invalid-non-id-continue-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<$❁Ea)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.js b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.js new file mode 100644 index 0000000000000..c2880bb9d1464 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts] //// + +//// [invalid-non-id-continue-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<$❁Ea)/; + + +//// [invalid-non-id-continue-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<$❁Ea)/; diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols new file mode 100644 index 0000000000000..701c8d2aa018c --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts] //// + +=== invalid-non-id-continue-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<$❁Ea)/; + diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.types b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.types new file mode 100644 index 0000000000000..1f6a8a4b26cab --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts] //// + +=== invalid-non-id-continue-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<$❁Ea)/; +>/(?<$❁Ea)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt new file mode 100644 index 0000000000000..32e1bf579b9e2 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt @@ -0,0 +1,27 @@ +invalid-non-id-start-groupspecifier-2-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-2-u.ts(14,5): error TS1512: Expected a capturing group name. +invalid-non-id-start-groupspecifier-2-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-start-groupspecifier-2-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<𐒤>a)/u; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js new file mode 100644 index 0000000000000..1d878f49742a2 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts] //// + +//// [invalid-non-id-start-groupspecifier-2-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/u; + + +//// [invalid-non-id-start-groupspecifier-2-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<𐒤>a)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols new file mode 100644 index 0000000000000..02d19c0fb7c6e --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts] //// + +=== invalid-non-id-start-groupspecifier-2-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/u; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types new file mode 100644 index 0000000000000..8dc77c738e1d6 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts] //// + +=== invalid-non-id-start-groupspecifier-2-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/u; +>/(?<𐒤>a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt new file mode 100644 index 0000000000000..f5e58301506b8 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-start-groupspecifier-2.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-2.ts(14,5): error TS1512: Expected a capturing group name. + + +==== invalid-non-id-start-groupspecifier-2.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<𐒤>a)/; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js new file mode 100644 index 0000000000000..c4d5a855cb79a --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts] //// + +//// [invalid-non-id-start-groupspecifier-2.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/; + + +//// [invalid-non-id-start-groupspecifier-2.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<𐒤>a)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols new file mode 100644 index 0000000000000..1c3046a90fbc3 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts] //// + +=== invalid-non-id-start-groupspecifier-2.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types new file mode 100644 index 0000000000000..a3196c8657728 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts] //// + +=== invalid-non-id-start-groupspecifier-2.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/; +>/(?<𐒤>a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt new file mode 100644 index 0000000000000..da6cbb9e117d7 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-start-groupspecifier-3.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-3.ts(14,6): error TS1005: '>' expected. + + +==== invalid-non-id-start-groupspecifier-3.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js new file mode 100644 index 0000000000000..24ec957fc43f6 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts] //// + +//// [invalid-non-id-start-groupspecifier-3.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + + +//// [invalid-non-id-start-groupspecifier-3.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols new file mode 100644 index 0000000000000..6a17c878c14f9 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts] //// + +=== invalid-non-id-start-groupspecifier-3.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types new file mode 100644 index 0000000000000..68adb6e1091cd --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts] //// + +=== invalid-non-id-start-groupspecifier-3.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; +>/(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt new file mode 100644 index 0000000000000..7159f7f7330c6 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt @@ -0,0 +1,27 @@ +invalid-non-id-start-groupspecifier-4-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-4-u.ts(14,6): error TS1005: '>' expected. +invalid-non-id-start-groupspecifier-4-u.ts(14,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-start-groupspecifier-4-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/u; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js new file mode 100644 index 0000000000000..d80b329fd5c2e --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts] //// + +//// [invalid-non-id-start-groupspecifier-4-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + + +//// [invalid-non-id-start-groupspecifier-4-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols new file mode 100644 index 0000000000000..28fa359eeb93b --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts] //// + +=== invalid-non-id-start-groupspecifier-4-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types new file mode 100644 index 0000000000000..e701dc77b0b93 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts] //// + +=== invalid-non-id-start-groupspecifier-4-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; +>/(?.)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt new file mode 100644 index 0000000000000..2813a537e9314 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-start-groupspecifier-4.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-4.ts(14,6): error TS1005: '>' expected. + + +==== invalid-non-id-start-groupspecifier-4.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js new file mode 100644 index 0000000000000..961dc6806eaab --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts] //// + +//// [invalid-non-id-start-groupspecifier-4.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + + +//// [invalid-non-id-start-groupspecifier-4.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols new file mode 100644 index 0000000000000..fe083dbe25983 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts] //// + +=== invalid-non-id-start-groupspecifier-4.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types new file mode 100644 index 0000000000000..b87b9ec04c9fd --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts] //// + +=== invalid-non-id-start-groupspecifier-4.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; +>/(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt new file mode 100644 index 0000000000000..86abaf2ef2c82 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt @@ -0,0 +1,27 @@ +invalid-non-id-start-groupspecifier-5-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-5-u.ts(14,6): error TS1005: '>' expected. +invalid-non-id-start-groupspecifier-5-u.ts(14,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-start-groupspecifier-5-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/u; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js new file mode 100644 index 0000000000000..149ef14d3a8f2 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts] //// + +//// [invalid-non-id-start-groupspecifier-5-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + + +//// [invalid-non-id-start-groupspecifier-5-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols new file mode 100644 index 0000000000000..19cc3f1b109a9 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts] //// + +=== invalid-non-id-start-groupspecifier-5-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types new file mode 100644 index 0000000000000..30e2561710431 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts] //// + +=== invalid-non-id-start-groupspecifier-5-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; +>/(?.)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt new file mode 100644 index 0000000000000..7ef38a8f996c4 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-start-groupspecifier-5.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-5.ts(14,6): error TS1005: '>' expected. + + +==== invalid-non-id-start-groupspecifier-5.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js new file mode 100644 index 0000000000000..f006a70ea6a52 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts] //// + +//// [invalid-non-id-start-groupspecifier-5.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + + +//// [invalid-non-id-start-groupspecifier-5.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols new file mode 100644 index 0000000000000..9b57e432c358c --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts] //// + +=== invalid-non-id-start-groupspecifier-5.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types new file mode 100644 index 0000000000000..5680943dfcf3a --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts] //// + +=== invalid-non-id-start-groupspecifier-5.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; +>/(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt new file mode 100644 index 0000000000000..925c99d8658a1 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt @@ -0,0 +1,30 @@ +invalid-non-id-start-groupspecifier-6.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-6.ts(14,6): error TS1005: '>' expected. +invalid-non-id-start-groupspecifier-6.ts(14,8): error TS1125: Hexadecimal digit expected. +invalid-non-id-start-groupspecifier-6.ts(14,10): error TS1005: '}' expected. + + +==== invalid-non-id-start-groupspecifier-6.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1005: '}' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js new file mode 100644 index 0000000000000..6753d386ef115 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts] //// + +//// [invalid-non-id-start-groupspecifier-6.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + + +//// [invalid-non-id-start-groupspecifier-6.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols new file mode 100644 index 0000000000000..982f4adfc55d8 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts] //// + +=== invalid-non-id-start-groupspecifier-6.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types new file mode 100644 index 0000000000000..5bee7ce9cb12e --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts] //// + +=== invalid-non-id-start-groupspecifier-6.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; +>/(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt new file mode 100644 index 0000000000000..d23aa9ba58353 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt @@ -0,0 +1,30 @@ +invalid-non-id-start-groupspecifier-7.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-7.ts(14,6): error TS1005: '>' expected. +invalid-non-id-start-groupspecifier-7.ts(14,8): error TS1125: Hexadecimal digit expected. +invalid-non-id-start-groupspecifier-7.ts(14,11): error TS1005: '}' expected. + + +==== invalid-non-id-start-groupspecifier-7.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + +!!! error TS1125: Hexadecimal digit expected. + +!!! error TS1005: '}' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js new file mode 100644 index 0000000000000..400f86b5fe373 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts] //// + +//// [invalid-non-id-start-groupspecifier-7.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + + +//// [invalid-non-id-start-groupspecifier-7.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols new file mode 100644 index 0000000000000..60652e9bcaf32 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts] //// + +=== invalid-non-id-start-groupspecifier-7.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types new file mode 100644 index 0000000000000..db04bad7657e3 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts] //// + +=== invalid-non-id-start-groupspecifier-7.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; +>/(?.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt new file mode 100644 index 0000000000000..489233babce9c --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt @@ -0,0 +1,30 @@ +invalid-non-id-start-groupspecifier-8-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-8-u.ts(14,5): error TS1512: Expected a capturing group name. +invalid-non-id-start-groupspecifier-8-u.ts(14,5): error TS1496: '\>' is not a valid character escape. +invalid-non-id-start-groupspecifier-8-u.ts(14,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-start-groupspecifier-8-u.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<\>.)/u; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~~ +!!! error TS1496: '\>' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js new file mode 100644 index 0000000000000..332b4b171ec5d --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts] //// + +//// [invalid-non-id-start-groupspecifier-8-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/u; + + +//// [invalid-non-id-start-groupspecifier-8-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<\>.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols new file mode 100644 index 0000000000000..f77198cadeb5e --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts] //// + +=== invalid-non-id-start-groupspecifier-8-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/u; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types new file mode 100644 index 0000000000000..13d0f8ee67781 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts] //// + +=== invalid-non-id-start-groupspecifier-8-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/u; +>/(?<\>.)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt new file mode 100644 index 0000000000000..1daed90d1aab9 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-start-groupspecifier-8.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-8.ts(14,5): error TS1512: Expected a capturing group name. + + +==== invalid-non-id-start-groupspecifier-8.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<\>.)/; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js new file mode 100644 index 0000000000000..8f291df608d58 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts] //// + +//// [invalid-non-id-start-groupspecifier-8.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/; + + +//// [invalid-non-id-start-groupspecifier-8.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<\>.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols new file mode 100644 index 0000000000000..44b7c9ca8ed0c --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts] //// + +=== invalid-non-id-start-groupspecifier-8.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types new file mode 100644 index 0000000000000..32de7172a7761 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts] //// + +=== invalid-non-id-start-groupspecifier-8.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/; +>/(?<\>.)/ : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt new file mode 100644 index 0000000000000..7d5c0e5103255 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt @@ -0,0 +1,30 @@ +invalid-non-id-start-groupspecifier-9-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-9-u.ts(14,6): error TS1005: '>' expected. +invalid-non-id-start-groupspecifier-9-u.ts(14,9): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. +invalid-non-id-start-groupspecifier-9-u.ts(14,20): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-start-groupspecifier-9-u.ts (4 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?.)/u; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + ~~~~~~ +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js new file mode 100644 index 0000000000000..edb8fb5c18bcb --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts] //// + +//// [invalid-non-id-start-groupspecifier-9-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + + +//// [invalid-non-id-start-groupspecifier-9-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols new file mode 100644 index 0000000000000..9fed6042f7fd6 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts] //// + +=== invalid-non-id-start-groupspecifier-9-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types new file mode 100644 index 0000000000000..640a78b89a0d0 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts] //// + +=== invalid-non-id-start-groupspecifier-9-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; +>/(?.)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt new file mode 100644 index 0000000000000..2fbeece8983d7 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt @@ -0,0 +1,27 @@ +invalid-non-id-start-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier-u.ts(14,5): error TS1512: Expected a capturing group name. +invalid-non-id-start-groupspecifier-u.ts(14,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-non-id-start-groupspecifier-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<❤>a)/u; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js new file mode 100644 index 0000000000000..8329df8a0addb --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts] //// + +//// [invalid-non-id-start-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/u; + + +//// [invalid-non-id-start-groupspecifier-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<❤>a)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols new file mode 100644 index 0000000000000..8c779088f5701 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts] //// + +=== invalid-non-id-start-groupspecifier-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/u; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types new file mode 100644 index 0000000000000..57d82e2032ac0 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts] //// + +=== invalid-non-id-start-groupspecifier-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/u; +>/(?<❤>a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt new file mode 100644 index 0000000000000..eb6009e48eba2 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt @@ -0,0 +1,24 @@ +invalid-non-id-start-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-non-id-start-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. + + +==== invalid-non-id-start-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<❤>a)/; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier.js new file mode 100644 index 0000000000000..a55c2537b12d1 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts] //// + +//// [invalid-non-id-start-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/; + + +//// [invalid-non-id-start-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<❤>a)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols new file mode 100644 index 0000000000000..6311847cd83f9 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts] //// + +=== invalid-non-id-start-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/; + diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier.types new file mode 100644 index 0000000000000..ef718cfec5b74 --- /dev/null +++ b/tests/baselines/reference/invalid-non-id-start-groupspecifier.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts] //// + +=== invalid-non-id-start-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/; +>/(?<❤>a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt new file mode 100644 index 0000000000000..76696d535acd0 --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt @@ -0,0 +1,27 @@ +invalid-numeric-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-numeric-groupspecifier-u.ts(14,5): error TS1512: Expected a capturing group name. +invalid-numeric-groupspecifier-u.ts(14,12): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-numeric-groupspecifier-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<42a>a)/u; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.js b/tests/baselines/reference/invalid-numeric-groupspecifier-u.js new file mode 100644 index 0000000000000..33f9d1d5e0b13 --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts] //// + +//// [invalid-numeric-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/u; + + +//// [invalid-numeric-groupspecifier-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<42a>a)/u; diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols b/tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols new file mode 100644 index 0000000000000..5315fc9633a1e --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts] //// + +=== invalid-numeric-groupspecifier-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/u; + diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.types b/tests/baselines/reference/invalid-numeric-groupspecifier-u.types new file mode 100644 index 0000000000000..1b8acbba3a5cc --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts] //// + +=== invalid-numeric-groupspecifier-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/u; +>/(?<42a>a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt b/tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt new file mode 100644 index 0000000000000..5c7d8c6707485 --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt @@ -0,0 +1,24 @@ +invalid-numeric-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-numeric-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. + + +==== invalid-numeric-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<42a>a)/; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.js b/tests/baselines/reference/invalid-numeric-groupspecifier.js new file mode 100644 index 0000000000000..e6242dd2ade8b --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts] //// + +//// [invalid-numeric-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/; + + +//// [invalid-numeric-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<42a>a)/; diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.symbols b/tests/baselines/reference/invalid-numeric-groupspecifier.symbols new file mode 100644 index 0000000000000..625fcf76e4b55 --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts] //// + +=== invalid-numeric-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/; + diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.types b/tests/baselines/reference/invalid-numeric-groupspecifier.types new file mode 100644 index 0000000000000..7268e04543bf9 --- /dev/null +++ b/tests/baselines/reference/invalid-numeric-groupspecifier.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts] //// + +=== invalid-numeric-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/; +>/(?<42a>a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-optional-lookbehind.errors.txt b/tests/baselines/reference/invalid-optional-lookbehind.errors.txt new file mode 100644 index 0000000000000..86ac6b9bcafcb --- /dev/null +++ b/tests/baselines/reference/invalid-optional-lookbehind.errors.txt @@ -0,0 +1,26 @@ +invalid-optional-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. + + +==== invalid-optional-lookbehind.ts (1 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?<=.)?/; + ~ +!!! error TS1505: There is nothing available for repetition. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-optional-lookbehind.js b/tests/baselines/reference/invalid-optional-lookbehind.js new file mode 100644 index 0000000000000..200b9a1456195 --- /dev/null +++ b/tests/baselines/reference/invalid-optional-lookbehind.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts] //// + +//// [invalid-optional-lookbehind.ts] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/; + + +//// [invalid-optional-lookbehind.js] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ +/.(?<=.)?/; diff --git a/tests/baselines/reference/invalid-optional-lookbehind.symbols b/tests/baselines/reference/invalid-optional-lookbehind.symbols new file mode 100644 index 0000000000000..ac3f3742e9974 --- /dev/null +++ b/tests/baselines/reference/invalid-optional-lookbehind.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts] //// + +=== invalid-optional-lookbehind.ts === + +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/; + diff --git a/tests/baselines/reference/invalid-optional-lookbehind.types b/tests/baselines/reference/invalid-optional-lookbehind.types new file mode 100644 index 0000000000000..2decfb2567568 --- /dev/null +++ b/tests/baselines/reference/invalid-optional-lookbehind.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts] //// + +=== invalid-optional-lookbehind.ts === +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/; +>/.(?<=.)?/ : RegExp + diff --git a/tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt b/tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt new file mode 100644 index 0000000000000..954b0e3b8f5b4 --- /dev/null +++ b/tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt @@ -0,0 +1,26 @@ +invalid-optional-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. + + +==== invalid-optional-negative-lookbehind.ts (1 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?/.(?a)/u; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js new file mode 100644 index 0000000000000..d86c4cbaf2628 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts] //// + +//// [invalid-punctuator-starting-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/u; + + +//// [invalid-punctuator-starting-groupspecifier-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<:a>a)/u; diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols new file mode 100644 index 0000000000000..e6485dcfc0120 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts] //// + +=== invalid-punctuator-starting-groupspecifier-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/u; + diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types new file mode 100644 index 0000000000000..b6428d5f5344b --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts] //// + +=== invalid-punctuator-starting-groupspecifier-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/u; +>/(?<:a>a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt new file mode 100644 index 0000000000000..1c7018ad487f1 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt @@ -0,0 +1,24 @@ +invalid-punctuator-starting-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-punctuator-starting-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. + + +==== invalid-punctuator-starting-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?<:a>a)/; + ~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1512: Expected a capturing group name. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js new file mode 100644 index 0000000000000..f0c3aa38e094c --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts] //// + +//// [invalid-punctuator-starting-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/; + + +//// [invalid-punctuator-starting-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?<:a>a)/; diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols new file mode 100644 index 0000000000000..eb677f444bf55 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts] //// + +=== invalid-punctuator-starting-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/; + diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types new file mode 100644 index 0000000000000..f0f72e421b59a --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts] //// + +=== invalid-punctuator-starting-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/; +>/(?<:a>a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt new file mode 100644 index 0000000000000..e85115983591e --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt @@ -0,0 +1,27 @@ +invalid-punctuator-within-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-punctuator-within-groupspecifier-u.ts(14,6): error TS1005: '>' expected. +invalid-punctuator-within-groupspecifier-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-punctuator-within-groupspecifier-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)/u; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js new file mode 100644 index 0000000000000..159656ee05725 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts] //// + +//// [invalid-punctuator-within-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/u; + + +//// [invalid-punctuator-within-groupspecifier-u.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)/u; diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols new file mode 100644 index 0000000000000..4c508b788c196 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts] //// + +=== invalid-punctuator-within-groupspecifier-u.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/u; + diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types new file mode 100644 index 0000000000000..66347e69e3e12 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts] //// + +=== invalid-punctuator-within-groupspecifier-u.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/u; +>/(?a)/u : RegExp + diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt new file mode 100644 index 0000000000000..5de33fe40556d --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt @@ -0,0 +1,24 @@ +invalid-punctuator-within-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. +invalid-punctuator-within-groupspecifier.ts(14,6): error TS1005: '>' expected. + + +==== invalid-punctuator-within-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?a)/; + ~~ +!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. + +!!! error TS1005: '>' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.js b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.js new file mode 100644 index 0000000000000..a57784f178c57 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts] //// + +//// [invalid-punctuator-within-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/; + + +//// [invalid-punctuator-within-groupspecifier.js] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ +/(?a)/; diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols new file mode 100644 index 0000000000000..a75f3f6933d65 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts] //// + +=== invalid-punctuator-within-groupspecifier.ts === + +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/; + diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.types b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.types new file mode 100644 index 0000000000000..74aaba8ca7511 --- /dev/null +++ b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts] //// + +=== invalid-punctuator-within-groupspecifier.ts === +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/; +>/(?a)/ : RegExp + diff --git a/tests/baselines/reference/invalid-range-lookbehind.errors.txt b/tests/baselines/reference/invalid-range-lookbehind.errors.txt new file mode 100644 index 0000000000000..98aed08d697db --- /dev/null +++ b/tests/baselines/reference/invalid-range-lookbehind.errors.txt @@ -0,0 +1,26 @@ +invalid-range-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. + + +==== invalid-range-lookbehind.ts (1 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?<=.){2,3}/; + ~~~~~ +!!! error TS1505: There is nothing available for repetition. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-range-lookbehind.js b/tests/baselines/reference/invalid-range-lookbehind.js new file mode 100644 index 0000000000000..1c316147ee6b2 --- /dev/null +++ b/tests/baselines/reference/invalid-range-lookbehind.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts] //// + +//// [invalid-range-lookbehind.ts] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.){2,3}/; + + +//// [invalid-range-lookbehind.js] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ +/.(?<=.){2,3}/; diff --git a/tests/baselines/reference/invalid-range-lookbehind.symbols b/tests/baselines/reference/invalid-range-lookbehind.symbols new file mode 100644 index 0000000000000..819a549caffc9 --- /dev/null +++ b/tests/baselines/reference/invalid-range-lookbehind.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts] //// + +=== invalid-range-lookbehind.ts === + +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.){2,3}/; + diff --git a/tests/baselines/reference/invalid-range-lookbehind.types b/tests/baselines/reference/invalid-range-lookbehind.types new file mode 100644 index 0000000000000..7d8e4a8b5722b --- /dev/null +++ b/tests/baselines/reference/invalid-range-lookbehind.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts] //// + +=== invalid-range-lookbehind.ts === +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.){2,3}/; +>/.(?<=.){2,3}/ : RegExp + diff --git a/tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt b/tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt new file mode 100644 index 0000000000000..9bbcfa46e5268 --- /dev/null +++ b/tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt @@ -0,0 +1,26 @@ +invalid-range-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. + + +==== invalid-range-negative-lookbehind.ts (1 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?/.(?' expected. +invalid-unterminated-groupspecifier-u.ts(14,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== invalid-unterminated-groupspecifier-u.ts (3 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?' expected. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-unterminated-groupspecifier-u.js b/tests/baselines/reference/invalid-unterminated-groupspecifier-u.js new file mode 100644 index 0000000000000..bc61a3293363e --- /dev/null +++ b/tests/baselines/reference/invalid-unterminated-groupspecifier-u.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts] //// + +//// [invalid-unterminated-groupspecifier-u.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?/(?' expected. + + +==== invalid-unterminated-groupspecifier.ts (2 errors) ==== + // Copyright 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: GroupSpecifier must be identifier-like. + esid: prod-GroupSpecifier + negative: + phase: parse + type: SyntaxError + features: [regexp-named-groups] + ---*/ + + + /(?' expected. + \ No newline at end of file diff --git a/tests/baselines/reference/invalid-unterminated-groupspecifier.js b/tests/baselines/reference/invalid-unterminated-groupspecifier.js new file mode 100644 index 0000000000000..f6c12798d20eb --- /dev/null +++ b/tests/baselines/reference/invalid-unterminated-groupspecifier.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.ts] //// + +//// [invalid-unterminated-groupspecifier.ts] +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?/(? + String Literals extensions disallowed in strict mode; ZeroToThree 1 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\1"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js new file mode 100644 index 0000000000000..9795c627c5fe1 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 1 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\1"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 1 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\1"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..da2c325a945d1 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 1 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\1"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types new file mode 100644 index 0000000000000..5c86154f93f09 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 1 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\1"; "use strict"; } +>invalid : () => void +>"\1" : "\u0001" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..584c2ec9a1b24 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x02'. + + +==== legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; ZeroToThree 2 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\2"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x02'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js new file mode 100644 index 0000000000000..73e214899fc36 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 2 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\2"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 2 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\2"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..8e33e79334e3b --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 2 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\2"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types new file mode 100644 index 0000000000000..3579808ccef9a --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 2 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\2"; "use strict"; } +>invalid : () => void +>"\2" : "\u0002" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..b7ea966470c63 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + + +==== legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; ZeroToThree 3 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\3"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js new file mode 100644 index 0000000000000..16da48cfdb7c9 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 3 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\3"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 3 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\3"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..05d16dc2b285c --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 3 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\3"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types new file mode 100644 index 0000000000000..09a467128defa --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 3 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\3"; "use strict"; } +>invalid : () => void +>"\3" : "\u0003" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..ffe35284fe440 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x04'. + + +==== legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; FourToSeven 4 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\4"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x04'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js new file mode 100644 index 0000000000000..59d8c1ef05c76 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 4 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\4"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 4 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\4"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..965ee09f54541 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 4 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\4"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types new file mode 100644 index 0000000000000..9e48c2b28bf2f --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 4 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\4"; "use strict"; } +>invalid : () => void +>"\4" : "\u0004" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..eb85182ea4e26 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + + +==== legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; FourToSeven 5 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\5"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js new file mode 100644 index 0000000000000..e2fb06608cd77 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 5 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\5"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 5 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\5"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..f50cb7f8c24f1 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 5 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\5"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types new file mode 100644 index 0000000000000..655edc6b856c4 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 5 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\5"; "use strict"; } +>invalid : () => void +>"\5" : "\u0005" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..69827f0705c10 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x06'. + + +==== legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; FourToSeven 6 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\6"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x06'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js new file mode 100644 index 0000000000000..d08c1709c5c86 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 6 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\6"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 6 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\6"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..e1fbafb124dd3 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 6 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\6"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types new file mode 100644 index 0000000000000..f1c19ff470f70 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 6 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\6"; "use strict"; } +>invalid : () => void +>"\6" : "\u0006" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..e7dd06c3b02d2 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. + + +==== legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; FourToSeven 7 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\7"; "use strict"; } + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js new file mode 100644 index 0000000000000..b470dcd55bba8 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 7 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\7"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 7 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\7"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..661c35c670834 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 7 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\7"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types new file mode 100644 index 0000000000000..45b08bac565ac --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 7 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\7"; "use strict"; } +>invalid : () => void +>"\7" : "\u0007" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..1a5fcf3dc56d2 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts(25,23): error TS1488: Escape sequence '\8' is not allowed. + + +==== legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\8"; "use strict"; } + ~~ +!!! error TS1488: Escape sequence '\8' is not allowed. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js new file mode 100644 index 0000000000000..a1731f2de640c --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\8"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\8"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..b5a360261a02a --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\8"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types new file mode 100644 index 0000000000000..6061eb306673e --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\8"; "use strict"; } +>invalid : () => void +>"\8" : "8" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt new file mode 100644 index 0000000000000..e0ff9da2b7b27 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt @@ -0,0 +1,37 @@ +legacy-non-octal-escape-sequence-8-strict.ts(30,2): error TS1488: Escape sequence '\8' is not allowed. + + +==== legacy-non-octal-escape-sequence-8-strict.ts (1 errors) ==== + // Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 + info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. + flags: [onlyStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + '\8'; + ~~ +!!! error TS1488: Escape sequence '\8' is not allowed. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js new file mode 100644 index 0000000000000..1eec879acd5e5 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts] //// + +//// [legacy-non-octal-escape-sequence-8-strict.ts] +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\8'; + + +//// [legacy-non-octal-escape-sequence-8-strict.js] +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ +'\8'; diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols new file mode 100644 index 0000000000000..357c49dd65582 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts] //// + +=== legacy-non-octal-escape-sequence-8-strict.ts === + +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\8'; + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types new file mode 100644 index 0000000000000..65fb2ddd1a827 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts] //// + +=== legacy-non-octal-escape-sequence-8-strict.ts === +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\8'; +>'\8' : "8" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt new file mode 100644 index 0000000000000..9b27f57af02cc --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt @@ -0,0 +1,32 @@ +legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts(25,23): error TS1488: Escape sequence '\9' is not allowed. + + +==== legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts (1 errors) ==== + // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 + info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + + flags: [noStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + function invalid() { "\9"; "use strict"; } + ~~ +!!! error TS1488: Escape sequence '\9' is not allowed. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js new file mode 100644 index 0000000000000..7eacced59ef34 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] //// + +//// [legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\9"; "use strict"; } + + +//// [legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js] +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ +function invalid() { + "\9"; + "use strict"; +} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols new file mode 100644 index 0000000000000..04013d8ebe194 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\9"; "use strict"; } +>invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts, 0, 0)) + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types new file mode 100644 index 0000000000000..085827f3a36b2 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] //// + +=== legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts === +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\9"; "use strict"; } +>invalid : () => void +>"\9" : "9" +>"use strict" : "use strict" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt new file mode 100644 index 0000000000000..4db41a50b78e7 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt @@ -0,0 +1,37 @@ +legacy-non-octal-escape-sequence-9-strict.ts(30,2): error TS1488: Escape sequence '\9' is not allowed. + + +==== legacy-non-octal-escape-sequence-9-strict.ts (1 errors) ==== + // Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-string-literals + description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 + info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. + flags: [onlyStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + '\9'; + ~~ +!!! error TS1488: Escape sequence '\9' is not allowed. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js new file mode 100644 index 0000000000000..344462e684ac2 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts] //// + +//// [legacy-non-octal-escape-sequence-9-strict.ts] +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\9'; + + +//// [legacy-non-octal-escape-sequence-9-strict.js] +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ +'\9'; diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols new file mode 100644 index 0000000000000..b1efd59e3f3fb --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts] //// + +=== legacy-non-octal-escape-sequence-9-strict.ts === + +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\9'; + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types new file mode 100644 index 0000000000000..c22463ea36f7a --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts] //// + +=== legacy-non-octal-escape-sequence-9-strict.ts === +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\9'; +>'\9' : "9" + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt new file mode 100644 index 0000000000000..35eb4a7e6972f --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt @@ -0,0 +1,33 @@ +legacy-non-octal-escape-sequence-strict.ts(26,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x00'. + + +==== legacy-non-octal-escape-sequence-strict.ts (1 errors) ==== + // Copyright (C) 2017 Kevin Gibbons. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-template-literal-lexical-components + description: LegacyOctalEscapeSequence is not available in template literals + info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + flags: [onlyStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + '\08'; + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x00'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js new file mode 100644 index 0000000000000..fa4cb8dc7542e --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts] //// + +//// [legacy-non-octal-escape-sequence-strict.ts] +// Copyright (C) 2017 Kevin Gibbons. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\08'; + + +//// [legacy-non-octal-escape-sequence-strict.js] +// Copyright (C) 2017 Kevin Gibbons. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ +'\08'; diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols new file mode 100644 index 0000000000000..c572a4db1b4e1 --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts] //// + +=== legacy-non-octal-escape-sequence-strict.ts === + +// Copyright (C) 2017 Kevin Gibbons. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\08'; + diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types new file mode 100644 index 0000000000000..e28befd12625d --- /dev/null +++ b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts] //// + +=== legacy-non-octal-escape-sequence-strict.ts === +// Copyright (C) 2017 Kevin Gibbons. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\08'; +>'\08' : "\x008" + diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt new file mode 100644 index 0000000000000..9782f8a875a48 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt @@ -0,0 +1,25 @@ +legacy-octal-escape-sequence-prologue-strict.ts(16,14): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x2a'. + + +==== legacy-octal-escape-sequence-prologue-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.4-1-s + description: > + A directive preceding an 'use strict' directive may not contain + an OctalEscapeSequence + negative: + phase: parse + type: SyntaxError + ---*/ + + + (function() { + "asterisk: \052"; + ~~~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x2a'. + "use strict"; + }); + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js new file mode 100644 index 0000000000000..335c80b05d98d --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts] //// + +//// [legacy-octal-escape-sequence-prologue-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.4-1-s +description: > + A directive preceding an 'use strict' directive may not contain + an OctalEscapeSequence +negative: + phase: parse + type: SyntaxError +---*/ + + +(function() { + "asterisk: \052"; + "use strict"; +}); + + +//// [legacy-octal-escape-sequence-prologue-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.4-1-s +description: > + A directive preceding an 'use strict' directive may not contain + an OctalEscapeSequence +negative: + phase: parse + type: SyntaxError +---*/ +(function () { + "asterisk: \052"; + "use strict"; +}); diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols new file mode 100644 index 0000000000000..6f720608ff87a --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts] //// + +=== legacy-octal-escape-sequence-prologue-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.4-1-s +description: > + A directive preceding an 'use strict' directive may not contain + an OctalEscapeSequence +negative: + phase: parse + type: SyntaxError +---*/ + + +(function() { + "asterisk: \052"; + "use strict"; +}); + diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types new file mode 100644 index 0000000000000..629a4d096d813 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts] //// + +=== legacy-octal-escape-sequence-prologue-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.4-1-s +description: > + A directive preceding an 'use strict' directive may not contain + an OctalEscapeSequence +negative: + phase: parse + type: SyntaxError +---*/ + + +(function() { +>(function() { "asterisk: \052"; "use strict";}) : () => void +>function() { "asterisk: \052"; "use strict";} : () => void + + "asterisk: \052"; +>"asterisk: \052" : "asterisk: *" + + "use strict"; +>"use strict" : "use strict" + +}); + diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt b/tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt new file mode 100644 index 0000000000000..5795339489b12 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt @@ -0,0 +1,33 @@ +legacy-octal-escape-sequence-strict.ts(26,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + + +==== legacy-octal-escape-sequence-strict.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-template-literal-lexical-components + description: LegacyOctalEscapeSequence is not available in template literals + info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + flags: [onlyStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + '\1'; + ~~ +!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.js b/tests/baselines/reference/legacy-octal-escape-sequence-strict.js new file mode 100644 index 0000000000000..700975aa192f9 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-strict.js @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts] //// + +//// [legacy-octal-escape-sequence-strict.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\1'; + + +//// [legacy-octal-escape-sequence-strict.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ +'\1'; diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols b/tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols new file mode 100644 index 0000000000000..3fe3d9afaabcb --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts] //// + +=== legacy-octal-escape-sequence-strict.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\1'; + diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.types b/tests/baselines/reference/legacy-octal-escape-sequence-strict.types new file mode 100644 index 0000000000000..171c30c2a8e41 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-escape-sequence-strict.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts] //// + +=== legacy-octal-escape-sequence-strict.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\1'; +>'\1' : "\u0001" + diff --git a/tests/baselines/reference/legacy-octal-integer-strict.errors.txt b/tests/baselines/reference/legacy-octal-integer-strict.errors.txt new file mode 100644 index 0000000000000..0909099a9e79a --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integer-strict.errors.txt @@ -0,0 +1,39 @@ +legacy-octal-integer-strict.ts(32,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + + +==== legacy-octal-integer-strict.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-numeric-literals + description: LegacyOctalIntegerLiteral is not enabled in strict mode code + info: | + NumericLiteral :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + LegacyOctalIntegerLiteral + + LegacyOctalIntegerLiteral :: + 0 OctalDigit + LegacyOctalIntegerLiteral OctalDigit + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. + flags: [onlyStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 00; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integer-strict.js b/tests/baselines/reference/legacy-octal-integer-strict.js new file mode 100644 index 0000000000000..15799dbb803f9 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integer-strict.js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts] //// + +//// [legacy-octal-integer-strict.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: LegacyOctalIntegerLiteral is not enabled in strict mode code +info: | + NumericLiteral :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + LegacyOctalIntegerLiteral + + LegacyOctalIntegerLiteral :: + 0 OctalDigit + LegacyOctalIntegerLiteral OctalDigit + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +00; + + +//// [legacy-octal-integer-strict.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: LegacyOctalIntegerLiteral is not enabled in strict mode code +info: | + NumericLiteral :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + LegacyOctalIntegerLiteral + + LegacyOctalIntegerLiteral :: + 0 OctalDigit + LegacyOctalIntegerLiteral OctalDigit + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ +0; diff --git a/tests/baselines/reference/legacy-octal-integer-strict.symbols b/tests/baselines/reference/legacy-octal-integer-strict.symbols new file mode 100644 index 0000000000000..5ff883771c368 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integer-strict.symbols @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts] //// + +=== legacy-octal-integer-strict.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: LegacyOctalIntegerLiteral is not enabled in strict mode code +info: | + NumericLiteral :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + LegacyOctalIntegerLiteral + + LegacyOctalIntegerLiteral :: + 0 OctalDigit + LegacyOctalIntegerLiteral OctalDigit + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +00; + diff --git a/tests/baselines/reference/legacy-octal-integer-strict.types b/tests/baselines/reference/legacy-octal-integer-strict.types new file mode 100644 index 0000000000000..15804ff071247 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integer-strict.types @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts] //// + +=== legacy-octal-integer-strict.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: LegacyOctalIntegerLiteral is not enabled in strict mode code +info: | + NumericLiteral :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + LegacyOctalIntegerLiteral + + LegacyOctalIntegerLiteral :: + 0 OctalDigit + LegacyOctalIntegerLiteral OctalDigit + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +00; +>00 : 0 + diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt new file mode 100644 index 0000000000000..ab5694e3c7560 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt @@ -0,0 +1,21 @@ +legacy-octal-integery-000-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + + +==== legacy-octal-integery-000-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-6-s + description: Strict Mode - octal extension (000) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + 000; + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.js b/tests/baselines/reference/legacy-octal-integery-000-strict.js new file mode 100644 index 0000000000000..c686c3c6c1c88 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-000-strict.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts] //// + +//// [legacy-octal-integery-000-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-6-s +description: Strict Mode - octal extension (000) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +000; + + +//// [legacy-octal-integery-000-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-6-s +description: Strict Mode - octal extension (000) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +0; diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.symbols b/tests/baselines/reference/legacy-octal-integery-000-strict.symbols new file mode 100644 index 0000000000000..0c70f5722e60c --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-000-strict.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts] //// + +=== legacy-octal-integery-000-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-6-s +description: Strict Mode - octal extension (000) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +000; + diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.types b/tests/baselines/reference/legacy-octal-integery-000-strict.types new file mode 100644 index 0000000000000..d836adefd2d2b --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-000-strict.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts] //// + +=== legacy-octal-integery-000-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-6-s +description: Strict Mode - octal extension (000) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +000; +>000 : 0 + diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt new file mode 100644 index 0000000000000..3c8f9b0605193 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt @@ -0,0 +1,21 @@ +legacy-octal-integery-005-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o5'. + + +==== legacy-octal-integery-005-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-7-s + description: Strict Mode - octal extension (005) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + 005; + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o5'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.js b/tests/baselines/reference/legacy-octal-integery-005-strict.js new file mode 100644 index 0000000000000..3d15b0c973fa0 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-005-strict.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts] //// + +//// [legacy-octal-integery-005-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-7-s +description: Strict Mode - octal extension (005) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +005; + + +//// [legacy-octal-integery-005-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-7-s +description: Strict Mode - octal extension (005) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +5; diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.symbols b/tests/baselines/reference/legacy-octal-integery-005-strict.symbols new file mode 100644 index 0000000000000..56e29d0fd8c52 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-005-strict.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts] //// + +=== legacy-octal-integery-005-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-7-s +description: Strict Mode - octal extension (005) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +005; + diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.types b/tests/baselines/reference/legacy-octal-integery-005-strict.types new file mode 100644 index 0000000000000..d6ed75feeb80b --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-005-strict.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts] //// + +=== legacy-octal-integery-005-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-7-s +description: Strict Mode - octal extension (005) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +005; +>005 : 5 + diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt new file mode 100644 index 0000000000000..37eef681163a4 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt @@ -0,0 +1,21 @@ +legacy-octal-integery-01-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + + +==== legacy-octal-integery-01-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-3-s + description: Strict Mode - octal extension (01) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + 01; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.js b/tests/baselines/reference/legacy-octal-integery-01-strict.js new file mode 100644 index 0000000000000..e20d354da4716 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-01-strict.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts] //// + +//// [legacy-octal-integery-01-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-3-s +description: Strict Mode - octal extension (01) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +01; + + +//// [legacy-octal-integery-01-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-3-s +description: Strict Mode - octal extension (01) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +1; diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.symbols b/tests/baselines/reference/legacy-octal-integery-01-strict.symbols new file mode 100644 index 0000000000000..cbb825aaeeaa3 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-01-strict.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts] //// + +=== legacy-octal-integery-01-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-3-s +description: Strict Mode - octal extension (01) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +01; + diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.types b/tests/baselines/reference/legacy-octal-integery-01-strict.types new file mode 100644 index 0000000000000..04591651d83c2 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-01-strict.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts] //// + +=== legacy-octal-integery-01-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-3-s +description: Strict Mode - octal extension (01) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +01; +>01 : 1 + diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt new file mode 100644 index 0000000000000..699acf446c9b8 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt @@ -0,0 +1,21 @@ +legacy-octal-integery-010-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o10'. + + +==== legacy-octal-integery-010-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-1-s + description: Strict Mode - octal extension (010) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + 010; + ~~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o10'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.js b/tests/baselines/reference/legacy-octal-integery-010-strict.js new file mode 100644 index 0000000000000..883b2778f6cb4 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-010-strict.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts] //// + +//// [legacy-octal-integery-010-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1-s +description: Strict Mode - octal extension (010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +010; + + +//// [legacy-octal-integery-010-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-1-s +description: Strict Mode - octal extension (010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +8; diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.symbols b/tests/baselines/reference/legacy-octal-integery-010-strict.symbols new file mode 100644 index 0000000000000..e30bd12de7a4d --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-010-strict.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts] //// + +=== legacy-octal-integery-010-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1-s +description: Strict Mode - octal extension (010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +010; + diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.types b/tests/baselines/reference/legacy-octal-integery-010-strict.types new file mode 100644 index 0000000000000..1e397736b2631 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-010-strict.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts] //// + +=== legacy-octal-integery-010-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1-s +description: Strict Mode - octal extension (010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +010; +>010 : 8 + diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt new file mode 100644 index 0000000000000..c928eba2dbc11 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt @@ -0,0 +1,21 @@ +legacy-octal-integery-06-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o6'. + + +==== legacy-octal-integery-06-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-4-s + description: Strict Mode - octal extension (06) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + 06; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o6'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.js b/tests/baselines/reference/legacy-octal-integery-06-strict.js new file mode 100644 index 0000000000000..86db06a294d7b --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-06-strict.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts] //// + +//// [legacy-octal-integery-06-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-4-s +description: Strict Mode - octal extension (06) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +06; + + +//// [legacy-octal-integery-06-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-4-s +description: Strict Mode - octal extension (06) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +6; diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.symbols b/tests/baselines/reference/legacy-octal-integery-06-strict.symbols new file mode 100644 index 0000000000000..a495b3d16e3bb --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-06-strict.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts] //// + +=== legacy-octal-integery-06-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-4-s +description: Strict Mode - octal extension (06) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +06; + diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.types b/tests/baselines/reference/legacy-octal-integery-06-strict.types new file mode 100644 index 0000000000000..d874ebd76e33b --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-06-strict.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts] //// + +=== legacy-octal-integery-06-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-4-s +description: Strict Mode - octal extension (06) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +06; +>06 : 6 + diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt new file mode 100644 index 0000000000000..9643bd595eca8 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt @@ -0,0 +1,21 @@ +legacy-octal-integery-07-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. + + +==== legacy-octal-integery-07-strict.ts (1 errors) ==== + // Copyright (c) 2012 Ecma International. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es5id: 7.8.3-5-s + description: Strict Mode - octal extension (07) is forbidden in strict mode + negative: + phase: parse + type: SyntaxError + flags: [onlyStrict] + ---*/ + + + 07; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.js b/tests/baselines/reference/legacy-octal-integery-07-strict.js new file mode 100644 index 0000000000000..2ee4273795762 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-07-strict.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts] //// + +//// [legacy-octal-integery-07-strict.ts] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-5-s +description: Strict Mode - octal extension (07) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +07; + + +//// [legacy-octal-integery-07-strict.js] +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es5id: 7.8.3-5-s +description: Strict Mode - octal extension (07) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ +7; diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.symbols b/tests/baselines/reference/legacy-octal-integery-07-strict.symbols new file mode 100644 index 0000000000000..640e943947d41 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-07-strict.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts] //// + +=== legacy-octal-integery-07-strict.ts === + +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-5-s +description: Strict Mode - octal extension (07) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +07; + diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.types b/tests/baselines/reference/legacy-octal-integery-07-strict.types new file mode 100644 index 0000000000000..a7b40d5f829a9 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-integery-07-strict.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts] //// + +=== legacy-octal-integery-07-strict.ts === +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-5-s +description: Strict Mode - octal extension (07) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +07; +>07 : 7 + diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt b/tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt new file mode 100644 index 0000000000000..f1010f53ef0e3 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt @@ -0,0 +1,40 @@ +legacy-octal-like-invalid-00n.ts(27,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. +legacy-octal-like-invalid-00n.ts(27,3): error TS1005: ';' expected. +legacy-octal-like-invalid-00n.ts(27,3): error TS2304: Cannot find name 'n'. + + +==== legacy-octal-like-invalid-00n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 00n; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.js b/tests/baselines/reference/legacy-octal-like-invalid-00n.js new file mode 100644 index 0000000000000..e9b3fdfc03772 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-00n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts] //// + +//// [legacy-octal-like-invalid-00n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +00n; + + +//// [legacy-octal-like-invalid-00n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +0; +n; diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.symbols b/tests/baselines/reference/legacy-octal-like-invalid-00n.symbols new file mode 100644 index 0000000000000..c8d907c13a19b --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-00n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts] //// + +=== legacy-octal-like-invalid-00n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +00n; + diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.types b/tests/baselines/reference/legacy-octal-like-invalid-00n.types new file mode 100644 index 0000000000000..f155d8b15dd00 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-00n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts] //// + +=== legacy-octal-like-invalid-00n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +00n; +>00 : 0 +>n : any + diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt b/tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt new file mode 100644 index 0000000000000..1a1d485839ffe --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt @@ -0,0 +1,40 @@ +legacy-octal-like-invalid-01n.ts(27,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +legacy-octal-like-invalid-01n.ts(27,3): error TS1005: ';' expected. +legacy-octal-like-invalid-01n.ts(27,3): error TS2304: Cannot find name 'n'. + + +==== legacy-octal-like-invalid-01n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 01n; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.js b/tests/baselines/reference/legacy-octal-like-invalid-01n.js new file mode 100644 index 0000000000000..fc4fe584a17c0 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-01n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts] //// + +//// [legacy-octal-like-invalid-01n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +01n; + + +//// [legacy-octal-like-invalid-01n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +1; +n; diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.symbols b/tests/baselines/reference/legacy-octal-like-invalid-01n.symbols new file mode 100644 index 0000000000000..e8539680eb4ee --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-01n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts] //// + +=== legacy-octal-like-invalid-01n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +01n; + diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.types b/tests/baselines/reference/legacy-octal-like-invalid-01n.types new file mode 100644 index 0000000000000..2f98738f00961 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-01n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts] //// + +=== legacy-octal-like-invalid-01n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +01n; +>01 : 1 +>n : any + diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt b/tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt new file mode 100644 index 0000000000000..f04c9786470fb --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt @@ -0,0 +1,40 @@ +legacy-octal-like-invalid-07n.ts(27,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. +legacy-octal-like-invalid-07n.ts(27,3): error TS1005: ';' expected. +legacy-octal-like-invalid-07n.ts(27,3): error TS2304: Cannot find name 'n'. + + +==== legacy-octal-like-invalid-07n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 07n; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.js b/tests/baselines/reference/legacy-octal-like-invalid-07n.js new file mode 100644 index 0000000000000..de8618e0821e9 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-07n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts] //// + +//// [legacy-octal-like-invalid-07n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +07n; + + +//// [legacy-octal-like-invalid-07n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +7; +n; diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.symbols b/tests/baselines/reference/legacy-octal-like-invalid-07n.symbols new file mode 100644 index 0000000000000..458d992193a1d --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-07n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts] //// + +=== legacy-octal-like-invalid-07n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +07n; + diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.types b/tests/baselines/reference/legacy-octal-like-invalid-07n.types new file mode 100644 index 0000000000000..4e12c7ac40d90 --- /dev/null +++ b/tests/baselines/reference/legacy-octal-like-invalid-07n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts] //// + +=== legacy-octal-like-invalid-07n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +07n; +>07 : 7 +>n : any + diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt new file mode 100644 index 0000000000000..3f49143266b21 --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt @@ -0,0 +1,33 @@ +mv-is-not-integer-dil-dot-dds.ts(26,1): error TS1353: A bigint literal must be an integer. + + +==== mv-is-not-integer-dil-dot-dds.ts (1 errors) ==== + // Copyright (C) 2017 The V8 Project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-numeric-literal-static-semantics-early-errors + description: > + It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) + info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 2017.8n; + ~~~~~~~ +!!! error TS1353: A bigint literal must be an integer. + \ No newline at end of file diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js new file mode 100644 index 0000000000000..9c9a01d90117f --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts] //// + +//// [mv-is-not-integer-dil-dot-dds.ts] +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +2017.8n; + + +//// [mv-is-not-integer-dil-dot-dds.js] +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +2017.8n; diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols new file mode 100644 index 0000000000000..1dfd89d5c489b --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts] //// + +=== mv-is-not-integer-dil-dot-dds.ts === + +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +2017.8n; + diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types new file mode 100644 index 0000000000000..b557fea41ea24 --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts] //// + +=== mv-is-not-integer-dil-dot-dds.ts === +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +2017.8n; +>2017.8n : 2017.8 + diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt b/tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt new file mode 100644 index 0000000000000..4f1c572cd5e25 --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt @@ -0,0 +1,33 @@ +mv-is-not-integer-dot-dds.ts(26,1): error TS1353: A bigint literal must be an integer. + + +==== mv-is-not-integer-dot-dds.ts (1 errors) ==== + // Copyright (C) 2017 The V8 Project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-numeric-literal-static-semantics-early-errors + description: > + It is a Syntax Error if the MV is not an integer. (dot decimalDigits) + info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + .0000000001n; + ~~~~~~~~~~~~ +!!! error TS1353: A bigint literal must be an integer. + \ No newline at end of file diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.js b/tests/baselines/reference/mv-is-not-integer-dot-dds.js new file mode 100644 index 0000000000000..8afa333ef0420 --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dot-dds.js @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts] //// + +//// [mv-is-not-integer-dot-dds.ts] +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +.0000000001n; + + +//// [mv-is-not-integer-dot-dds.js] +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +.0000000001n; diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.symbols b/tests/baselines/reference/mv-is-not-integer-dot-dds.symbols new file mode 100644 index 0000000000000..957c4041a1e3a --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dot-dds.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts] //// + +=== mv-is-not-integer-dot-dds.ts === + +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +.0000000001n; + diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.types b/tests/baselines/reference/mv-is-not-integer-dot-dds.types new file mode 100644 index 0000000000000..e5be956fdd19f --- /dev/null +++ b/tests/baselines/reference/mv-is-not-integer-dot-dds.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts] //// + +=== mv-is-not-integer-dot-dds.ts === +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +.0000000001n; +>.0000000001n : 1e-10 + diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt b/tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt new file mode 100644 index 0000000000000..a4c6cb14dd22d --- /dev/null +++ b/tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt @@ -0,0 +1,45 @@ +non-octal-decimal-integer-strict.ts(38,1): error TS1489: Decimals with leading zeros are not allowed. + + +==== non-octal-decimal-integer-strict.ts (1 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-literals-numeric-literals + description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code + info: | + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigits[opt] + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit :: one of + 8 9 + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. + flags: [onlyStrict] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 08; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.js b/tests/baselines/reference/non-octal-decimal-integer-strict.js new file mode 100644 index 0000000000000..b77c3a950c0c1 --- /dev/null +++ b/tests/baselines/reference/non-octal-decimal-integer-strict.js @@ -0,0 +1,80 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts] //// + +//// [non-octal-decimal-integer-strict.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code +info: | + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigits[opt] + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit :: one of + 8 9 + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +08; + + +//// [non-octal-decimal-integer-strict.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code +info: | + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigits[opt] + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit :: one of + 8 9 + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ +8; diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.symbols b/tests/baselines/reference/non-octal-decimal-integer-strict.symbols new file mode 100644 index 0000000000000..83ce7b4ff1ab0 --- /dev/null +++ b/tests/baselines/reference/non-octal-decimal-integer-strict.symbols @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts] //// + +=== non-octal-decimal-integer-strict.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code +info: | + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigits[opt] + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit :: one of + 8 9 + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +08; + diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.types b/tests/baselines/reference/non-octal-decimal-integer-strict.types new file mode 100644 index 0000000000000..080b7d52b41db --- /dev/null +++ b/tests/baselines/reference/non-octal-decimal-integer-strict.types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts] //// + +=== non-octal-decimal-integer-strict.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code +info: | + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigits[opt] + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit :: one of + 8 9 + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +08; +>08 : 8 + diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt new file mode 100644 index 0000000000000..4f05e333a8b19 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt @@ -0,0 +1,40 @@ +non-octal-like-invalid-0008n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. +non-octal-like-invalid-0008n.ts(27,5): error TS1005: ';' expected. +non-octal-like-invalid-0008n.ts(27,5): error TS2304: Cannot find name 'n'. + + +==== non-octal-like-invalid-0008n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0008n; + ~~~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.js b/tests/baselines/reference/non-octal-like-invalid-0008n.js new file mode 100644 index 0000000000000..6ce6b657d7d0b --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-0008n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts] //// + +//// [non-octal-like-invalid-0008n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0008n; + + +//// [non-octal-like-invalid-0008n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +8; +n; diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.symbols b/tests/baselines/reference/non-octal-like-invalid-0008n.symbols new file mode 100644 index 0000000000000..08a250ed48bbe --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-0008n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts] //// + +=== non-octal-like-invalid-0008n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0008n; + diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.types b/tests/baselines/reference/non-octal-like-invalid-0008n.types new file mode 100644 index 0000000000000..cb81dc393d6e8 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-0008n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts] //// + +=== non-octal-like-invalid-0008n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0008n; +>0008 : 8 +>n : any + diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt new file mode 100644 index 0000000000000..dccdc431695b3 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt @@ -0,0 +1,40 @@ +non-octal-like-invalid-012348n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. +non-octal-like-invalid-012348n.ts(27,7): error TS1005: ';' expected. +non-octal-like-invalid-012348n.ts(27,7): error TS2304: Cannot find name 'n'. + + +==== non-octal-like-invalid-012348n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 012348n; + ~~~~~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.js b/tests/baselines/reference/non-octal-like-invalid-012348n.js new file mode 100644 index 0000000000000..0dd5c1436b27c --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-012348n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts] //// + +//// [non-octal-like-invalid-012348n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +012348n; + + +//// [non-octal-like-invalid-012348n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +12348; +n; diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.symbols b/tests/baselines/reference/non-octal-like-invalid-012348n.symbols new file mode 100644 index 0000000000000..038f5857b29dc --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-012348n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts] //// + +=== non-octal-like-invalid-012348n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +012348n; + diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.types b/tests/baselines/reference/non-octal-like-invalid-012348n.types new file mode 100644 index 0000000000000..b127d720dcf33 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-012348n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts] //// + +=== non-octal-like-invalid-012348n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +012348n; +>012348 : 12348 +>n : any + diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-08n.errors.txt new file mode 100644 index 0000000000000..d73d95f39fc72 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-08n.errors.txt @@ -0,0 +1,40 @@ +non-octal-like-invalid-08n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. +non-octal-like-invalid-08n.ts(27,3): error TS1005: ';' expected. +non-octal-like-invalid-08n.ts(27,3): error TS2304: Cannot find name 'n'. + + +==== non-octal-like-invalid-08n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 08n; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.js b/tests/baselines/reference/non-octal-like-invalid-08n.js new file mode 100644 index 0000000000000..d00371ccee8db --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-08n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts] //// + +//// [non-octal-like-invalid-08n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +08n; + + +//// [non-octal-like-invalid-08n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +8; +n; diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.symbols b/tests/baselines/reference/non-octal-like-invalid-08n.symbols new file mode 100644 index 0000000000000..56da42b81206e --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-08n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts] //// + +=== non-octal-like-invalid-08n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +08n; + diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.types b/tests/baselines/reference/non-octal-like-invalid-08n.types new file mode 100644 index 0000000000000..80bc6e42394e6 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-08n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts] //// + +=== non-octal-like-invalid-08n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +08n; +>08 : 8 +>n : any + diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-09n.errors.txt new file mode 100644 index 0000000000000..a8c4d5ac3a4bf --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-09n.errors.txt @@ -0,0 +1,40 @@ +non-octal-like-invalid-09n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. +non-octal-like-invalid-09n.ts(27,3): error TS1005: ';' expected. +non-octal-like-invalid-09n.ts(27,3): error TS2304: Cannot find name 'n'. + + +==== non-octal-like-invalid-09n.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteral + description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral + info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix + features: [BigInt] + negative: + phase: parse + type: SyntaxError + ---*/ + + + 09n; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS2304: Cannot find name 'n'. + \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.js b/tests/baselines/reference/non-octal-like-invalid-09n.js new file mode 100644 index 0000000000000..8844e06c91bae --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-09n.js @@ -0,0 +1,58 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts] //// + +//// [non-octal-like-invalid-09n.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +09n; + + +//// [non-octal-like-invalid-09n.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ +9; +n; diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.symbols b/tests/baselines/reference/non-octal-like-invalid-09n.symbols new file mode 100644 index 0000000000000..ca89823445e72 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-09n.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts] //// + +=== non-octal-like-invalid-09n.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +09n; + diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.types b/tests/baselines/reference/non-octal-like-invalid-09n.types new file mode 100644 index 0000000000000..d99bc0cfffb17 --- /dev/null +++ b/tests/baselines/reference/non-octal-like-invalid-09n.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts] //// + +=== non-octal-like-invalid-09n.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +09n; +>09 : 9 +>n : any + diff --git a/tests/baselines/reference/numeric-followed-by-ident.errors.txt b/tests/baselines/reference/numeric-followed-by-ident.errors.txt new file mode 100644 index 0000000000000..bacb66ef8d7ce --- /dev/null +++ b/tests/baselines/reference/numeric-followed-by-ident.errors.txt @@ -0,0 +1,24 @@ +numeric-followed-by-ident.ts(17,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. + + +==== numeric-followed-by-ident.ts (1 errors) ==== + // Copyright (C) 2018 Mozilla. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: sec-literals-numeric-literals + description: > + NumericLiteral followed by IdentifierStart + info: | + The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. + + negative: + phase: parse + type: SyntaxError + ---*/ + + + 3in [] + ~~ +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-followed-by-ident.js b/tests/baselines/reference/numeric-followed-by-ident.js new file mode 100644 index 0000000000000..fc80a697f5980 --- /dev/null +++ b/tests/baselines/reference/numeric-followed-by-ident.js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts] //// + +//// [numeric-followed-by-ident.ts] +// Copyright (C) 2018 Mozilla. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-numeric-literals +description: > + NumericLiteral followed by IdentifierStart +info: | + The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. + +negative: + phase: parse + type: SyntaxError +---*/ + + +3in [] + + +//// [numeric-followed-by-ident.js] +// Copyright (C) 2018 Mozilla. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: > + NumericLiteral followed by IdentifierStart +info: | + The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. + +negative: + phase: parse + type: SyntaxError +---*/ +3 in []; diff --git a/tests/baselines/reference/numeric-followed-by-ident.symbols b/tests/baselines/reference/numeric-followed-by-ident.symbols new file mode 100644 index 0000000000000..9ba66bb38d4ab --- /dev/null +++ b/tests/baselines/reference/numeric-followed-by-ident.symbols @@ -0,0 +1,22 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts] //// + +=== numeric-followed-by-ident.ts === + +// Copyright (C) 2018 Mozilla. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-numeric-literals +description: > + NumericLiteral followed by IdentifierStart +info: | + The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. + +negative: + phase: parse + type: SyntaxError +---*/ + + +3in [] + diff --git a/tests/baselines/reference/numeric-followed-by-ident.types b/tests/baselines/reference/numeric-followed-by-ident.types new file mode 100644 index 0000000000000..ec9cdf693b859 --- /dev/null +++ b/tests/baselines/reference/numeric-followed-by-ident.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts] //// + +=== numeric-followed-by-ident.ts === +// Copyright (C) 2018 Mozilla. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-numeric-literals +description: > + NumericLiteral followed by IdentifierStart +info: | + The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. + +negative: + phase: parse + type: SyntaxError +---*/ + + +3in [] +>3in [] : boolean +>3 : 3 +>[] : undefined[] + diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt new file mode 100644 index 0000000000000..792d122317839 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-bil-bd-nsl-bd-err.ts(33,3): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-bil-bd-nsl-bd-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0b_1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js new file mode 100644 index 0000000000000..067317cc7cce1 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// + +//// [numeric-separator-literal-bil-bd-nsl-bd-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b_1 + + +//// [numeric-separator-literal-bil-bd-nsl-bd-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +1; diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols new file mode 100644 index 0000000000000..9c15529555f62 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// + +=== numeric-separator-literal-bil-bd-nsl-bd-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b_1 + diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types new file mode 100644 index 0000000000000..4689bc80caeda --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// + +=== numeric-separator-literal-bil-bd-nsl-bd-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b_1 +>0b_1 : 1 + diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt new file mode 100644 index 0000000000000..98f2368258c9f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-bil-nsl-bd-dunder-err.ts(33,5): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== numeric-separator-literal-bil-nsl-bd-dunder-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0b0__0 + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js new file mode 100644 index 0000000000000..6e74210b095a0 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// + +//// [numeric-separator-literal-bil-nsl-bd-dunder-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0__0 + + +//// [numeric-separator-literal-bil-nsl-bd-dunder-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols new file mode 100644 index 0000000000000..a6eddc56fca3c --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// + +=== numeric-separator-literal-bil-nsl-bd-dunder-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0__0 + diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types new file mode 100644 index 0000000000000..be722c980a083 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// + +=== numeric-separator-literal-bil-nsl-bd-dunder-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0__0 +>0b0__0 : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt new file mode 100644 index 0000000000000..0ece4da31c53d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-bil-nsl-bd-err.ts(33,4): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-bil-nsl-bd-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0b0_ + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js new file mode 100644 index 0000000000000..73e93a1f079f2 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts] //// + +//// [numeric-separator-literal-bil-nsl-bd-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0_ + + +//// [numeric-separator-literal-bil-nsl-bd-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols new file mode 100644 index 0000000000000..f786f513c9224 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts] //// + +=== numeric-separator-literal-bil-nsl-bd-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0_ + diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types new file mode 100644 index 0000000000000..b59b8324132b3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts] //// + +=== numeric-separator-literal-bil-nsl-bd-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0_ +>0b0_ : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt new file mode 100644 index 0000000000000..fc987eeb93c7f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt @@ -0,0 +1,32 @@ +numeric-separator-literal-dd-nsl-dds-dunder-err.ts(25,3): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== numeric-separator-literal-dd-nsl-dds-dunder-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 1__0123456789 + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js new file mode 100644 index 0000000000000..6b4c09a098068 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// + +//// [numeric-separator-literal-dd-nsl-dds-dunder-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1__0123456789 + + +//// [numeric-separator-literal-dd-nsl-dds-dunder-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +10123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols new file mode 100644 index 0000000000000..a984f32d8e8f6 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// + +=== numeric-separator-literal-dd-nsl-dds-dunder-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1__0123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types new file mode 100644 index 0000000000000..1b22a3c7ce066 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// + +=== numeric-separator-literal-dd-nsl-dds-dunder-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1__0123456789 +>1__0123456789 : 10123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt new file mode 100644 index 0000000000000..eeeb977660332 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt @@ -0,0 +1,34 @@ +numeric-separator-literal-dd-nsl-err.ts(27,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dd-nsl-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 1_ + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js new file mode 100644 index 0000000000000..9a1419909dfe3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts] //// + +//// [numeric-separator-literal-dd-nsl-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1_ + + +//// [numeric-separator-literal-dd-nsl-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +1; diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols new file mode 100644 index 0000000000000..9c800767120f0 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts] //// + +=== numeric-separator-literal-dd-nsl-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1_ + diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types new file mode 100644 index 0000000000000..82d9377ef01ee --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts] //// + +=== numeric-separator-literal-dd-nsl-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1_ +>1_ : 1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt new file mode 100644 index 0000000000000..b164a50864e6c --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt @@ -0,0 +1,32 @@ +numeric-separator-literal-dds-nsl-dds-dunder-err.ts(25,4): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== numeric-separator-literal-dds-nsl-dds-dunder-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 10__0123456789 + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js new file mode 100644 index 0000000000000..6d517396745cf --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// + +//// [numeric-separator-literal-dds-nsl-dds-dunder-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10__0123456789 + + +//// [numeric-separator-literal-dds-nsl-dds-dunder-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +100123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols new file mode 100644 index 0000000000000..97ec7cdf18044 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// + +=== numeric-separator-literal-dds-nsl-dds-dunder-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10__0123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types new file mode 100644 index 0000000000000..02b68dd07b05f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// + +=== numeric-separator-literal-dds-nsl-dds-dunder-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10__0123456789 +>10__0123456789 : 100123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt new file mode 100644 index 0000000000000..ed3b6b0708cfb --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt @@ -0,0 +1,35 @@ +numeric-separator-literal-dds-nsl-err.ts(28,3): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dds-nsl-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 10_ + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js new file mode 100644 index 0000000000000..3339094ed9fd1 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts] //// + +//// [numeric-separator-literal-dds-nsl-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10_ + + +//// [numeric-separator-literal-dds-nsl-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +10; diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols new file mode 100644 index 0000000000000..f8e2df09ef721 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts] //// + +=== numeric-separator-literal-dds-nsl-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10_ + diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types new file mode 100644 index 0000000000000..08e4aa09f1957 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts] //// + +=== numeric-separator-literal-dds-nsl-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10_ +>10_ : 10 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt new file mode 100644 index 0000000000000..e087ba8df1ebf --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt @@ -0,0 +1,34 @@ +numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts(27,5): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to ExponentPart + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 10.0_e1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js new file mode 100644 index 0000000000000..3989962a2d455 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] //// + +//// [numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10.0_e1 + + +//// [numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +100; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols new file mode 100644 index 0000000000000..c914235bf8fd6 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] //// + +=== numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10.0_e1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types new file mode 100644 index 0000000000000..e14f74919a175 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] //// + +=== numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10.0_e1 +>10.0_e1 : 100 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt new file mode 100644 index 0000000000000..28016ccce1d74 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt @@ -0,0 +1,34 @@ +numeric-separator-literal-dil-dot-nsl-dd-err.ts(27,4): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dil-dot-nsl-dd-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be adjacent to `.` + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 10._1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js new file mode 100644 index 0000000000000..93e27d3efbf26 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js @@ -0,0 +1,57 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts] //// + +//// [numeric-separator-literal-dil-dot-nsl-dd-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._1 + + +//// [numeric-separator-literal-dil-dot-nsl-dd-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +10.1; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols new file mode 100644 index 0000000000000..85c595f177ea3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts] //// + +=== numeric-separator-literal-dil-dot-nsl-dd-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types new file mode 100644 index 0000000000000..58a18cf23aa3e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts] //// + +=== numeric-separator-literal-dil-dot-nsl-dd-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._1 +>10._1 : 10.1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt new file mode 100644 index 0000000000000..50dbf429d030e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt @@ -0,0 +1,37 @@ +numeric-separator-literal-dil-dot-nsl-ep-err.ts(30,4): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dil-dot-nsl-ep-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 10._e1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js new file mode 100644 index 0000000000000..2e7f60aabb1de --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js @@ -0,0 +1,63 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts] //// + +//// [numeric-separator-literal-dil-dot-nsl-ep-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._e1 + + +//// [numeric-separator-literal-dil-dot-nsl-ep-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +100; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols new file mode 100644 index 0000000000000..fc7098b597ff7 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts] //// + +=== numeric-separator-literal-dil-dot-nsl-ep-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._e1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types new file mode 100644 index 0000000000000..f80ab5425cd5a --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts] //// + +=== numeric-separator-literal-dil-dot-nsl-ep-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._e1 +>10._e1 : 100 + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt new file mode 100644 index 0000000000000..51c4ed3489fd1 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt @@ -0,0 +1,35 @@ +numeric-separator-literal-dil-dot-nsl-err.ts(28,4): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dil-dot-nsl-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 10._ + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js new file mode 100644 index 0000000000000..141472c752593 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts] //// + +//// [numeric-separator-literal-dil-dot-nsl-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._ + + +//// [numeric-separator-literal-dil-dot-nsl-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +10; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols new file mode 100644 index 0000000000000..aff899e6707e6 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts] //// + +=== numeric-separator-literal-dil-dot-nsl-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._ + diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types new file mode 100644 index 0000000000000..c178fdcd84b38 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts] //// + +=== numeric-separator-literal-dil-dot-nsl-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._ +>10._ : 10 + diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt new file mode 100644 index 0000000000000..b38defcd785eb --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt @@ -0,0 +1,36 @@ +numeric-separator-literal-dot-dds-nsl-ep-err.ts(29,3): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-dot-dds-nsl-ep-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: NumericLiteralSeparator may not appear adjacent to ExponentPart + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + .0_e1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js new file mode 100644 index 0000000000000..b3ed3cf47bc6b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js @@ -0,0 +1,61 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts] //// + +//// [numeric-separator-literal-dot-dds-nsl-ep-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +.0_e1 + + +//// [numeric-separator-literal-dot-dds-nsl-ep-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols new file mode 100644 index 0000000000000..f13382ca0732b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts] //// + +=== numeric-separator-literal-dot-dds-nsl-ep-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +.0_e1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types new file mode 100644 index 0000000000000..171bcae555a4b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts] //// + +=== numeric-separator-literal-dot-dds-nsl-ep-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +.0_e1 +>.0_e1 : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt new file mode 100644 index 0000000000000..9b0a9310e1f6f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-dot-nsl-ep-err.ts(30,1): error TS1128: Declaration or statement expected. +numeric-separator-literal-dot-nsl-ep-err.ts(30,2): error TS2304: Cannot find name '_e1'. + + +==== numeric-separator-literal-dot-nsl-ep-err.ts (2 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + ._e1 + ~ +!!! error TS1128: Declaration or statement expected. + ~~~ +!!! error TS2304: Cannot find name '_e1'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js new file mode 100644 index 0000000000000..12b1df842c05d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js @@ -0,0 +1,39 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts] //// + +//// [numeric-separator-literal-dot-nsl-ep-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._e1 + + +//// [numeric-separator-literal-dot-nsl-ep-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +_e1; diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols new file mode 100644 index 0000000000000..d424686fabbf2 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts] //// + +=== numeric-separator-literal-dot-nsl-ep-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._e1 + diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types new file mode 100644 index 0000000000000..62ba4f5ab59e1 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts] //// + +=== numeric-separator-literal-dot-nsl-ep-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._e1 +>_e1 : any + diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt new file mode 100644 index 0000000000000..c6c431c57121c --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt @@ -0,0 +1,38 @@ +numeric-separator-literal-dot-nsl-err.ts(28,1): error TS1128: Declaration or statement expected. +numeric-separator-literal-dot-nsl-err.ts(28,2): error TS2304: Cannot find name '_'. + + +==== numeric-separator-literal-dot-nsl-err.ts (2 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral, nor adjacent to `.` + info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + ._ + ~ +!!! error TS1128: Declaration or statement expected. + ~ +!!! error TS2304: Cannot find name '_'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js new file mode 100644 index 0000000000000..8034577cf2286 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts] //// + +//// [numeric-separator-literal-dot-nsl-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral, nor adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._ + + +//// [numeric-separator-literal-dot-nsl-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +_; diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols new file mode 100644 index 0000000000000..de257c82dde15 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts] //// + +=== numeric-separator-literal-dot-nsl-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral, nor adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._ + diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types new file mode 100644 index 0000000000000..8da99abb498b5 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts] //// + +=== numeric-separator-literal-dot-nsl-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral, nor adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._ +>_ : any + diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt new file mode 100644 index 0000000000000..d7756c0145261 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-hil-hd-nsl-hd-err.ts(33,3): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-hil-hd-nsl-hd-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0x_1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js new file mode 100644 index 0000000000000..c77125891e559 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// + +//// [numeric-separator-literal-hil-hd-nsl-hd-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x_1 + + +//// [numeric-separator-literal-hil-hd-nsl-hd-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +1; diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols new file mode 100644 index 0000000000000..7c2dedbdd2449 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// + +=== numeric-separator-literal-hil-hd-nsl-hd-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x_1 + diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types new file mode 100644 index 0000000000000..6785bcdf2272d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// + +=== numeric-separator-literal-hil-hd-nsl-hd-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x_1 +>0x_1 : 1 + diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt new file mode 100644 index 0000000000000..881b78369a16e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-hil-nsl-hd-dunder-err.ts(33,5): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== numeric-separator-literal-hil-nsl-hd-dunder-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0x0__0 + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js new file mode 100644 index 0000000000000..f87f74d28abc3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// + +//// [numeric-separator-literal-hil-nsl-hd-dunder-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0__0 + + +//// [numeric-separator-literal-hil-nsl-hd-dunder-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols new file mode 100644 index 0000000000000..f6d042f954646 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// + +=== numeric-separator-literal-hil-nsl-hd-dunder-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0__0 + diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types new file mode 100644 index 0000000000000..8e756663ec44c --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// + +=== numeric-separator-literal-hil-nsl-hd-dunder-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0__0 +>0x0__0 : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt new file mode 100644 index 0000000000000..2c9bf86f5e3d8 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-hil-nsl-hd-err.ts(33,4): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-hil-nsl-hd-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0x0_ + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js new file mode 100644 index 0000000000000..3dfc315a04a43 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts] //// + +//// [numeric-separator-literal-hil-nsl-hd-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0_ + + +//// [numeric-separator-literal-hil-nsl-hd-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols new file mode 100644 index 0000000000000..caa481c2712d2 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts] //// + +=== numeric-separator-literal-hil-nsl-hd-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0_ + diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types new file mode 100644 index 0000000000000..c5fd46169b4ab --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts] //// + +=== numeric-separator-literal-hil-nsl-hd-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0_ +>0x0_ : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt new file mode 100644 index 0000000000000..fe3aa858df72e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt @@ -0,0 +1,53 @@ +numeric-separator-literal-lol-00-err.ts(40,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. +numeric-separator-literal-lol-00-err.ts(40,3): error TS1005: ';' expected. +numeric-separator-literal-lol-00-err.ts(40,3): error TS2304: Cannot find name '_0'. + + +==== numeric-separator-literal-lol-00-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 00_0; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name '_0'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.js b/tests/baselines/reference/numeric-separator-literal-lol-00-err.js new file mode 100644 index 0000000000000..da3454b0bd08f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-00-err.js @@ -0,0 +1,84 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts] //// + +//// [numeric-separator-literal-lol-00-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +00_0; + + +//// [numeric-separator-literal-lol-00-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +0; +_0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols new file mode 100644 index 0000000000000..0677b7c721664 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts] //// + +=== numeric-separator-literal-lol-00-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +00_0; + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.types b/tests/baselines/reference/numeric-separator-literal-lol-00-err.types new file mode 100644 index 0000000000000..b226025397bfe --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-00-err.types @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts] //// + +=== numeric-separator-literal-lol-00-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +00_0; +>00 : 0 +>_0 : any + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt new file mode 100644 index 0000000000000..5f24796d00425 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt @@ -0,0 +1,53 @@ +numeric-separator-literal-lol-01-err.ts(40,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. +numeric-separator-literal-lol-01-err.ts(40,3): error TS1005: ';' expected. +numeric-separator-literal-lol-01-err.ts(40,3): error TS2304: Cannot find name '_0'. + + +==== numeric-separator-literal-lol-01-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 01_0; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name '_0'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.js b/tests/baselines/reference/numeric-separator-literal-lol-01-err.js new file mode 100644 index 0000000000000..7fa4c8843c0c3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-01-err.js @@ -0,0 +1,84 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts] //// + +//// [numeric-separator-literal-lol-01-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +01_0; + + +//// [numeric-separator-literal-lol-01-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +1; +_0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols new file mode 100644 index 0000000000000..291a2b7537f43 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts] //// + +=== numeric-separator-literal-lol-01-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +01_0; + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.types b/tests/baselines/reference/numeric-separator-literal-lol-01-err.types new file mode 100644 index 0000000000000..a07903b76ef80 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-01-err.types @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts] //// + +=== numeric-separator-literal-lol-01-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +01_0; +>01 : 1 +>_0 : any + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt new file mode 100644 index 0000000000000..5b93befa2e41e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt @@ -0,0 +1,55 @@ +numeric-separator-literal-lol-07-err.ts(42,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. +numeric-separator-literal-lol-07-err.ts(42,3): error TS1005: ';' expected. +numeric-separator-literal-lol-07-err.ts(42,3): error TS2304: Cannot find name '_0'. + + +==== numeric-separator-literal-lol-07-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 07_0; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name '_0'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.js b/tests/baselines/reference/numeric-separator-literal-lol-07-err.js new file mode 100644 index 0000000000000..55c47a417f2b3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-07-err.js @@ -0,0 +1,88 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts] //// + +//// [numeric-separator-literal-lol-07-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +07_0; + + +//// [numeric-separator-literal-lol-07-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +7; +_0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols new file mode 100644 index 0000000000000..ac4dc3752b5e3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts] //// + +=== numeric-separator-literal-lol-07-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +07_0; + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.types b/tests/baselines/reference/numeric-separator-literal-lol-07-err.types new file mode 100644 index 0000000000000..659f1f502bdb3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-07-err.types @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts] //// + +=== numeric-separator-literal-lol-07-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +07_0; +>07 : 7 +>_0 : any + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt new file mode 100644 index 0000000000000..3642386c1e575 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt @@ -0,0 +1,47 @@ +numeric-separator-literal-lol-0_0-err.ts(40,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-lol-0_0-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 0_0; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js new file mode 100644 index 0000000000000..1fe066253f73d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js @@ -0,0 +1,83 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts] //// + +//// [numeric-separator-literal-lol-0_0-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_0; + + +//// [numeric-separator-literal-lol-0_0-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols new file mode 100644 index 0000000000000..486084351e61d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts] //// + +=== numeric-separator-literal-lol-0_0-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_0; + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types new file mode 100644 index 0000000000000..904d128fbd097 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts] //// + +=== numeric-separator-literal-lol-0_0-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_0; +>0_0 : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt new file mode 100644 index 0000000000000..ca2d7691a4a49 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt @@ -0,0 +1,47 @@ +numeric-separator-literal-lol-0_1-err.ts(40,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-lol-0_1-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 0_1; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js new file mode 100644 index 0000000000000..255cb13757a15 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js @@ -0,0 +1,83 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts] //// + +//// [numeric-separator-literal-lol-0_1-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_1; + + +//// [numeric-separator-literal-lol-0_1-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +1; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols new file mode 100644 index 0000000000000..61cd6b358796e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts] //// + +=== numeric-separator-literal-lol-0_1-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_1; + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types new file mode 100644 index 0000000000000..8f50bc27dd8df --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types @@ -0,0 +1,45 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts] //// + +=== numeric-separator-literal-lol-0_1-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_1; +>0_1 : 1 + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt new file mode 100644 index 0000000000000..26703d4cb853b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt @@ -0,0 +1,48 @@ +numeric-separator-literal-lol-0_7-err.ts(41,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-lol-0_7-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 0_7; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js new file mode 100644 index 0000000000000..0f91ed80ad26a --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js @@ -0,0 +1,85 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts] //// + +//// [numeric-separator-literal-lol-0_7-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_7; + + +//// [numeric-separator-literal-lol-0_7-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +7; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols new file mode 100644 index 0000000000000..96a472ffbe693 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts] //// + +=== numeric-separator-literal-lol-0_7-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_7; + diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types new file mode 100644 index 0000000000000..aeef2dbc9995b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts] //// + +=== numeric-separator-literal-lol-0_7-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_7; +>0_7 : 7 + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt new file mode 100644 index 0000000000000..7655634d0dd92 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt @@ -0,0 +1,50 @@ +numeric-separator-literal-nonoctal-08-err.ts(37,1): error TS1489: Decimals with leading zeros are not allowed. +numeric-separator-literal-nonoctal-08-err.ts(37,3): error TS1005: ';' expected. +numeric-separator-literal-nonoctal-08-err.ts(37,3): error TS2304: Cannot find name '_0'. + + +==== numeric-separator-literal-nonoctal-08-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 08_0; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name '_0'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js new file mode 100644 index 0000000000000..b7633eda3fdc3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js @@ -0,0 +1,78 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts] //// + +//// [numeric-separator-literal-nonoctal-08-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +08_0; + + +//// [numeric-separator-literal-nonoctal-08-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +8; +_0; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols new file mode 100644 index 0000000000000..f67d972baf15b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts] //// + +=== numeric-separator-literal-nonoctal-08-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +08_0; + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types new file mode 100644 index 0000000000000..738dc121ec3c5 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts] //// + +=== numeric-separator-literal-nonoctal-08-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +08_0; +>08 : 8 +>_0 : any + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt new file mode 100644 index 0000000000000..74fb11e8977fc --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt @@ -0,0 +1,50 @@ +numeric-separator-literal-nonoctal-09-err.ts(37,1): error TS1489: Decimals with leading zeros are not allowed. +numeric-separator-literal-nonoctal-09-err.ts(37,3): error TS1005: ';' expected. +numeric-separator-literal-nonoctal-09-err.ts(37,3): error TS2304: Cannot find name '_0'. + + +==== numeric-separator-literal-nonoctal-09-err.ts (3 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 09_0; + ~~ +!!! error TS1489: Decimals with leading zeros are not allowed. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name '_0'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js new file mode 100644 index 0000000000000..5cd118583af4f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js @@ -0,0 +1,78 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts] //// + +//// [numeric-separator-literal-nonoctal-09-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +09_0; + + +//// [numeric-separator-literal-nonoctal-09-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +9; +_0; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols new file mode 100644 index 0000000000000..360f661a30867 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts] //// + +=== numeric-separator-literal-nonoctal-09-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +09_0; + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types new file mode 100644 index 0000000000000..d5d407d01a9f4 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts] //// + +=== numeric-separator-literal-nonoctal-09-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +09_0; +>09 : 9 +>_0 : any + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt new file mode 100644 index 0000000000000..00f4a344c793d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt @@ -0,0 +1,44 @@ +numeric-separator-literal-nonoctal-0_8-err.ts(37,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-nonoctal-0_8-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 0_8; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js new file mode 100644 index 0000000000000..de824ee0dd9a8 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts] //// + +//// [numeric-separator-literal-nonoctal-0_8-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_8; + + +//// [numeric-separator-literal-nonoctal-0_8-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +8; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols new file mode 100644 index 0000000000000..7371845c80c51 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts] //// + +=== numeric-separator-literal-nonoctal-0_8-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_8; + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types new file mode 100644 index 0000000000000..31ba83d19f08a --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts] //// + +=== numeric-separator-literal-nonoctal-0_8-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_8; +>0_8 : 8 + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt new file mode 100644 index 0000000000000..c134045f1635e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt @@ -0,0 +1,44 @@ +numeric-separator-literal-nonoctal-0_9-err.ts(37,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-nonoctal-0_9-err.ts (1 errors) ==== + // Copyright (C) 2019 Leo Balter. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + negative: + phase: parse + type: SyntaxError + features: [numeric-separator-literal] + ---*/ + + + 0_9; + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js new file mode 100644 index 0000000000000..3c04ecb919056 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts] //// + +//// [numeric-separator-literal-nonoctal-0_9-err.ts] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_9; + + +//// [numeric-separator-literal-nonoctal-0_9-err.js] +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ +9; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols new file mode 100644 index 0000000000000..9c6da7da883fd --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts] //// + +=== numeric-separator-literal-nonoctal-0_9-err.ts === + +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_9; + diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types new file mode 100644 index 0000000000000..15cbd5189d31f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts] //// + +=== numeric-separator-literal-nonoctal-0_9-err.ts === +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_9; +>0_9 : 9 + diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt new file mode 100644 index 0000000000000..e0811c6d83dd3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt @@ -0,0 +1,38 @@ +numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(28,2): error TS6188: Numeric separators are not allowed here. +numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(28,3): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== numeric-separator-literal-nzd-nsl-dds-dunder-err.ts (2 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0__0123456789 + ~ +!!! error TS6188: Numeric separators are not allowed here. + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js new file mode 100644 index 0000000000000..42d7241b50f37 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js @@ -0,0 +1,59 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// + +//// [numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0__0123456789 + + +//// [numeric-separator-literal-nzd-nsl-dds-dunder-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols new file mode 100644 index 0000000000000..12c2b887e926f --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// + +=== numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0__0123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types new file mode 100644 index 0000000000000..ba8a0f3f72194 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types @@ -0,0 +1,33 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// + +=== numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0__0123456789 +>0__0123456789 : 123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt new file mode 100644 index 0000000000000..dcbfc3fbf1dd5 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt @@ -0,0 +1,33 @@ +numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts(26,2): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: NonZeroDigit NumericLiteralSeparator DecimalDigits + info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0_0123456789 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js new file mode 100644 index 0000000000000..be19078e79528 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js @@ -0,0 +1,55 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// + +//// [numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0_0123456789 + + +//// [numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols new file mode 100644 index 0000000000000..87dce81c256b5 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// + +=== numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0_0123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types new file mode 100644 index 0000000000000..df538c8dd1ec3 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// + +=== numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0_0123456789 +>0_0123456789 : 123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt new file mode 100644 index 0000000000000..7acca370de71a --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-oil-nsl-od-dunder-err.ts(33,5): error TS6189: Multiple consecutive numeric separators are not permitted. + + +==== numeric-separator-literal-oil-nsl-od-dunder-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0o0__0 + ~ +!!! error TS6189: Multiple consecutive numeric separators are not permitted. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js new file mode 100644 index 0000000000000..b230b616dcf52 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// + +//// [numeric-separator-literal-oil-nsl-od-dunder-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0__0 + + +//// [numeric-separator-literal-oil-nsl-od-dunder-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols new file mode 100644 index 0000000000000..809936c627a59 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// + +=== numeric-separator-literal-oil-nsl-od-dunder-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0__0 + diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types new file mode 100644 index 0000000000000..de61d4a46370e --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// + +=== numeric-separator-literal-oil-nsl-od-dunder-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0__0 +>0o0__0 : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt new file mode 100644 index 0000000000000..1f7f27aa3859b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-oil-nsl-od-err.ts(33,4): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-oil-nsl-od-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0o0_ + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js new file mode 100644 index 0000000000000..7edc2238d444d --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts] //// + +//// [numeric-separator-literal-oil-nsl-od-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0_ + + +//// [numeric-separator-literal-oil-nsl-od-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +0; diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols new file mode 100644 index 0000000000000..abd7ca48d98d7 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts] //// + +=== numeric-separator-literal-oil-nsl-od-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0_ + diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types new file mode 100644 index 0000000000000..0057ae75df82c --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts] //// + +=== numeric-separator-literal-oil-nsl-od-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0_ +>0o0_ : 0 + diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt new file mode 100644 index 0000000000000..ecb6145811284 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt @@ -0,0 +1,40 @@ +numeric-separator-literal-oil-od-nsl-od-err.ts(33,3): error TS6188: Numeric separators are not allowed here. + + +==== numeric-separator-literal-oil-od-nsl-od-err.ts (1 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral + info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 0o_1 + ~ +!!! error TS6188: Numeric separators are not allowed here. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js new file mode 100644 index 0000000000000..5a31b534d77e8 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts] //// + +//// [numeric-separator-literal-oil-od-nsl-od-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o_1 + + +//// [numeric-separator-literal-oil-od-nsl-od-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +1; diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols new file mode 100644 index 0000000000000..dfa631e860463 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts] //// + +=== numeric-separator-literal-oil-od-nsl-od-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o_1 + diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types new file mode 100644 index 0000000000000..0fe50b1f50a05 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts] //// + +=== numeric-separator-literal-oil-od-nsl-od-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o_1 +>0o_1 : 1 + diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt new file mode 100644 index 0000000000000..6638b3abf6e09 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt @@ -0,0 +1,35 @@ +numeric-separator-literal-unicode-err.ts(25,2): error TS1005: ';' expected. +numeric-separator-literal-unicode-err.ts(25,2): error TS2304: Cannot find name '\u005F0123456789'. + + +==== numeric-separator-literal-unicode-err.ts (2 errors) ==== + // Copyright (C) 2017 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-NumericLiteralSeparator + description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence + info: | + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + negative: + phase: parse + type: SyntaxError + + features: [numeric-separator-literal] + ---*/ + + + 1\u005F0123456789 + ~~~~~~~~~~~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~~~~~~~~~~~ +!!! error TS2304: Cannot find name '\u005F0123456789'. + \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.js b/tests/baselines/reference/numeric-separator-literal-unicode-err.js new file mode 100644 index 0000000000000..ae9578b21c7b7 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-unicode-err.js @@ -0,0 +1,54 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts] //// + +//// [numeric-separator-literal-unicode-err.ts] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1\u005F0123456789 + + +//// [numeric-separator-literal-unicode-err.js] +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ +1; +\u005F0123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.symbols b/tests/baselines/reference/numeric-separator-literal-unicode-err.symbols new file mode 100644 index 0000000000000..f8769fdc9ba1b --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-unicode-err.symbols @@ -0,0 +1,30 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts] //// + +=== numeric-separator-literal-unicode-err.ts === + +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1\u005F0123456789 + diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.types b/tests/baselines/reference/numeric-separator-literal-unicode-err.types new file mode 100644 index 0000000000000..f01017518ae24 --- /dev/null +++ b/tests/baselines/reference/numeric-separator-literal-unicode-err.types @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts] //// + +=== numeric-separator-literal-unicode-err.ts === +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1\u005F0123456789 +>1 : 1 +>\u005F0123456789 : any + diff --git a/tests/baselines/reference/octal-invalid-digit.errors.txt b/tests/baselines/reference/octal-invalid-digit.errors.txt new file mode 100644 index 0000000000000..0b8217abf003a --- /dev/null +++ b/tests/baselines/reference/octal-invalid-digit.errors.txt @@ -0,0 +1,29 @@ +octal-invalid-digit.ts(22,3): error TS1178: Octal digit expected. + + +==== octal-invalid-digit.ts (1 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Octal-integer-literal-like sequence containing an invalid digit + info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0o8; + +!!! error TS1178: Octal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-digit.js b/tests/baselines/reference/octal-invalid-digit.js new file mode 100644 index 0000000000000..edb280948667c --- /dev/null +++ b/tests/baselines/reference/octal-invalid-digit.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts] //// + +//// [octal-invalid-digit.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence containing an invalid digit +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o8; + + +//// [octal-invalid-digit.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence containing an invalid digit +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ +0; +8; diff --git a/tests/baselines/reference/octal-invalid-digit.symbols b/tests/baselines/reference/octal-invalid-digit.symbols new file mode 100644 index 0000000000000..f205a768097f4 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-digit.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts] //// + +=== octal-invalid-digit.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence containing an invalid digit +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o8; + diff --git a/tests/baselines/reference/octal-invalid-digit.types b/tests/baselines/reference/octal-invalid-digit.types new file mode 100644 index 0000000000000..8bf85186283b3 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-digit.types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts] //// + +=== octal-invalid-digit.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence containing an invalid digit +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o8; +>0o : 0 +>8 : 8 + diff --git a/tests/baselines/reference/octal-invalid-leading.errors.txt b/tests/baselines/reference/octal-invalid-leading.errors.txt new file mode 100644 index 0000000000000..55b09e06e7cdb --- /dev/null +++ b/tests/baselines/reference/octal-invalid-leading.errors.txt @@ -0,0 +1,35 @@ +octal-invalid-leading.ts(22,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. +octal-invalid-leading.ts(22,3): error TS1005: ';' expected. +octal-invalid-leading.ts(22,3): error TS2304: Cannot find name 'o0'. + + +==== octal-invalid-leading.ts (3 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Octal-integer-literal-like sequence with a leading 0 + info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 00o0; + ~~ +!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. + ~~ +!!! error TS1005: ';' expected. + ~~ +!!! error TS2304: Cannot find name 'o0'. + \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-leading.js b/tests/baselines/reference/octal-invalid-leading.js new file mode 100644 index 0000000000000..003b3ed118689 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-leading.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts] //// + +//// [octal-invalid-leading.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence with a leading 0 +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +00o0; + + +//// [octal-invalid-leading.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence with a leading 0 +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ +0; +o0; diff --git a/tests/baselines/reference/octal-invalid-leading.symbols b/tests/baselines/reference/octal-invalid-leading.symbols new file mode 100644 index 0000000000000..89a83eebeb308 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-leading.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts] //// + +=== octal-invalid-leading.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence with a leading 0 +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +00o0; + diff --git a/tests/baselines/reference/octal-invalid-leading.types b/tests/baselines/reference/octal-invalid-leading.types new file mode 100644 index 0000000000000..9d406c1cdc964 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-leading.types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts] //// + +=== octal-invalid-leading.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence with a leading 0 +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +00o0; +>00 : 0 +>o0 : any + diff --git a/tests/baselines/reference/octal-invalid-truncated.errors.txt b/tests/baselines/reference/octal-invalid-truncated.errors.txt new file mode 100644 index 0000000000000..0869d330d31c1 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-truncated.errors.txt @@ -0,0 +1,29 @@ +octal-invalid-truncated.ts(22,3): error TS1178: Octal digit expected. + + +==== octal-invalid-truncated.ts (1 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Octal-integer-literal-like sequence without any digits + info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0o; + +!!! error TS1178: Octal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-truncated.js b/tests/baselines/reference/octal-invalid-truncated.js new file mode 100644 index 0000000000000..c6b9d57e46976 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-truncated.js @@ -0,0 +1,47 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts] //// + +//// [octal-invalid-truncated.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence without any digits +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o; + + +//// [octal-invalid-truncated.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence without any digits +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ +0; diff --git a/tests/baselines/reference/octal-invalid-truncated.symbols b/tests/baselines/reference/octal-invalid-truncated.symbols new file mode 100644 index 0000000000000..0225c3dc473fd --- /dev/null +++ b/tests/baselines/reference/octal-invalid-truncated.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts] //// + +=== octal-invalid-truncated.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence without any digits +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o; + diff --git a/tests/baselines/reference/octal-invalid-truncated.types b/tests/baselines/reference/octal-invalid-truncated.types new file mode 100644 index 0000000000000..46568f5b89e02 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-truncated.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts] //// + +=== octal-invalid-truncated.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence without any digits +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o; +>0o : 0 + diff --git a/tests/baselines/reference/octal-invalid-unicode.errors.txt b/tests/baselines/reference/octal-invalid-unicode.errors.txt new file mode 100644 index 0000000000000..4a92231ae9a00 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-unicode.errors.txt @@ -0,0 +1,32 @@ +octal-invalid-unicode.ts(22,2): error TS1005: ';' expected. +octal-invalid-unicode.ts(22,2): error TS2304: Cannot find name '\u006f0'. + + +==== octal-invalid-unicode.ts (2 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + es6id: 11.8.3 + description: Octal-integer-literal-like sequence expressed with unicode escape sequence + info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + negative: + phase: parse + type: SyntaxError + ---*/ + + + 0\u006f0; + ~~~~~~~ +!!! error TS1005: ';' expected. + ~~~~~~~ +!!! error TS2304: Cannot find name '\u006f0'. + \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-unicode.js b/tests/baselines/reference/octal-invalid-unicode.js new file mode 100644 index 0000000000000..f35b254845a7c --- /dev/null +++ b/tests/baselines/reference/octal-invalid-unicode.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts] //// + +//// [octal-invalid-unicode.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence expressed with unicode escape sequence +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u006f0; + + +//// [octal-invalid-unicode.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence expressed with unicode escape sequence +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ +0; +\u006f0; diff --git a/tests/baselines/reference/octal-invalid-unicode.symbols b/tests/baselines/reference/octal-invalid-unicode.symbols new file mode 100644 index 0000000000000..360f9ca6a39b2 --- /dev/null +++ b/tests/baselines/reference/octal-invalid-unicode.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts] //// + +=== octal-invalid-unicode.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence expressed with unicode escape sequence +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u006f0; + diff --git a/tests/baselines/reference/octal-invalid-unicode.types b/tests/baselines/reference/octal-invalid-unicode.types new file mode 100644 index 0000000000000..91e92a80b463b --- /dev/null +++ b/tests/baselines/reference/octal-invalid-unicode.types @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts] //// + +=== octal-invalid-unicode.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence expressed with unicode escape sequence +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u006f0; +>0 : 0 +>\u006f0 : any + diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt b/tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt new file mode 100644 index 0000000000000..680e6966a0c25 --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt @@ -0,0 +1,45 @@ +regexp-first-char-no-line-separator.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +regexp-first-char-no-line-separator.ts(28,2): error TS1161: Unterminated regular expression literal. +regexp-first-char-no-line-separator.ts(29,2): error TS1109: Expression expected. + + +==== regexp-first-char-no-line-separator.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionNonTerminator + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + The first character of a regular expression may not be a + negative: + phase: parse + type: SyntaxError + ---*/ + + + /
/ + ~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + + +!!! error TS1109: Expression expected. + /* + There is a between the two / characters + */ + \ No newline at end of file diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.js b/tests/baselines/reference/regexp-first-char-no-line-separator.js new file mode 100644 index 0000000000000..4c1b36473148d --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-line-separator.js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts] //// + +//// [regexp-first-char-no-line-separator.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/
/ + +/* +There is a between the two / characters +*/ + + +//// [regexp-first-char-no-line-separator.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ +/ + / +; +/* +There is a between the two / characters +*/ diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.symbols b/tests/baselines/reference/regexp-first-char-no-line-separator.symbols new file mode 100644 index 0000000000000..cf698619122a7 --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-line-separator.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts] //// + +=== regexp-first-char-no-line-separator.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ + +/* +There is a between the two / characters +*/ + diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.types b/tests/baselines/reference/regexp-first-char-no-line-separator.types new file mode 100644 index 0000000000000..f6f596100f3f1 --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-line-separator.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts] //// + +=== regexp-first-char-no-line-separator.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +>/
/ : number +>/ : RegExp + +/ + +/* +There is a between the two / characters +*/ + +> : any + diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt new file mode 100644 index 0000000000000..6058ab10efef7 --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt @@ -0,0 +1,45 @@ +regexp-first-char-no-paragraph-separator.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +regexp-first-char-no-paragraph-separator.ts(28,2): error TS1161: Unterminated regular expression literal. +regexp-first-char-no-paragraph-separator.ts(29,2): error TS1109: Expression expected. + + +==== regexp-first-char-no-paragraph-separator.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionNonTerminator + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + The first character of a regular expression may not be a + negative: + phase: parse + type: SyntaxError + ---*/ + + + /
/ + ~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + + +!!! error TS1109: Expression expected. + /* + There is a between the two / characters + */ + \ No newline at end of file diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.js b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.js new file mode 100644 index 0000000000000..a3c4c9e376446 --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.js @@ -0,0 +1,68 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts] //// + +//// [regexp-first-char-no-paragraph-separator.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/
/ + +/* +There is a between the two / characters +*/ + + +//// [regexp-first-char-no-paragraph-separator.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ +/ + / +; +/* +There is a between the two / characters +*/ diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols new file mode 100644 index 0000000000000..6f32a550d826e --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts] //// + +=== regexp-first-char-no-paragraph-separator.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ + +/* +There is a between the two / characters +*/ + diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.types b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.types new file mode 100644 index 0000000000000..61ab3ab8bc49a --- /dev/null +++ b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts] //// + +=== regexp-first-char-no-paragraph-separator.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +>/
/ : number +>/ : RegExp + +/ + +/* +There is a between the two / characters +*/ + +> : any + diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt b/tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt new file mode 100644 index 0000000000000..c6e1c3546f599 --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt @@ -0,0 +1,44 @@ +regexp-source-char-no-line-separator.ts(27,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +regexp-source-char-no-line-separator.ts(27,2): error TS1161: Unterminated regular expression literal. +regexp-source-char-no-line-separator.ts(28,2): error TS1109: Expression expected. + + +==== regexp-source-char-no-line-separator.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionBackslashSequence + info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + + description: > + A regular expression may not contain a as a SourceCharacter + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a\\
/ + ~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + + +!!! error TS1109: Expression expected. + /* + There is a between "a\\
" and "/" + */ + \ No newline at end of file diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.js b/tests/baselines/reference/regexp-source-char-no-line-separator.js new file mode 100644 index 0000000000000..d188947f4473f --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-line-separator.js @@ -0,0 +1,67 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts] //// + +//// [regexp-source-char-no-line-separator.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\
/ + +/* +There is a between "a\\
" and "/" +*/ + + +//// [regexp-source-char-no-line-separator.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ +/a\\ + / +; +/* +There is a between "a\\ +" and "/" +*/ diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.symbols b/tests/baselines/reference/regexp-source-char-no-line-separator.symbols new file mode 100644 index 0000000000000..cdbda40f9e4c4 --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-line-separator.symbols @@ -0,0 +1,38 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts] //// + +=== regexp-source-char-no-line-separator.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\ +/ + +/* +There is a between "a\\ +" and "/" +*/ + diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.types b/tests/baselines/reference/regexp-source-char-no-line-separator.types new file mode 100644 index 0000000000000..b3ab27451ad2e --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-line-separator.types @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts] //// + +=== regexp-source-char-no-line-separator.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\ +>/a\\
/ : number +>/a\\ : RegExp + +/ + +/* +There is a between "a\\ +" and "/" +*/ + +> : any + diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt new file mode 100644 index 0000000000000..db877c0082a02 --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt @@ -0,0 +1,45 @@ +regexp-source-char-no-paragraph-separator.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +regexp-source-char-no-paragraph-separator.ts(28,2): error TS1161: Unterminated regular expression literal. +regexp-source-char-no-paragraph-separator.ts(30,2): error TS1109: Expression expected. + + +==== regexp-source-char-no-paragraph-separator.ts (3 errors) ==== + // Copyright 2009 the Sputnik authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-RegularExpressionNonTerminator + info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + description: > + A regular expression may not contain a as a SourceCharacter + negative: + phase: parse + type: SyntaxError + ---*/ + + + /a\\

/ + ~~~~ +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + +!!! error TS1161: Unterminated regular expression literal. + + /* + +!!! error TS1109: Expression expected. + There is a between "a\\
" and "/" + */ + \ No newline at end of file diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.js b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.js new file mode 100644 index 0000000000000..a926147d15cf3 --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.js @@ -0,0 +1,69 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts] //// + +//// [regexp-source-char-no-paragraph-separator.ts] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\

/ + +/* +There is a between "a\\
" and "/" +*/ + + +//// [regexp-source-char-no-paragraph-separator.js] +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ +/a\\ + / +; +/* +There is a between "a\\ +" and "/" +*/ diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols new file mode 100644 index 0000000000000..d23d282125332 --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols @@ -0,0 +1,40 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts] //// + +=== regexp-source-char-no-paragraph-separator.ts === + +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\ + +/ + +/* +There is a between "a\\ +" and "/" +*/ + diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.types b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.types new file mode 100644 index 0000000000000..50e69a0f03949 --- /dev/null +++ b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.types @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts] //// + +=== regexp-source-char-no-paragraph-separator.ts === +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\ +>/a\\

/ : number +>/a\\ : RegExp + +/ + +/* +There is a between "a\\ +" and "/" +*/ + +> : any + diff --git a/tests/baselines/reference/u-invalid-class-escape.errors.txt b/tests/baselines/reference/u-invalid-class-escape.errors.txt new file mode 100644 index 0000000000000..873e2fb2e7d9c --- /dev/null +++ b/tests/baselines/reference/u-invalid-class-escape.errors.txt @@ -0,0 +1,32 @@ +u-invalid-class-escape.ts(22,2): error TS1510: '\c' must be followed by an ASCII letter. +u-invalid-class-escape.ts(22,6): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-class-escape.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: > + ClassEscape does not recognize "class control" patterns + info: | + ClassEscape[U] :: + b + [+U] - + CharacterClassEscape + CharacterEscape[?U] + + The `u` flag precludes the Annex B extension that enables this pattern. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\c0/u; + ~~ +!!! error TS1510: '\c' must be followed by an ASCII letter. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-class-escape.js b/tests/baselines/reference/u-invalid-class-escape.js new file mode 100644 index 0000000000000..f864a38d27d5b --- /dev/null +++ b/tests/baselines/reference/u-invalid-class-escape.js @@ -0,0 +1,48 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts] //// + +//// [u-invalid-class-escape.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: > + ClassEscape does not recognize "class control" patterns +info: | + ClassEscape[U] :: + b + [+U] - + CharacterClassEscape + CharacterEscape[?U] + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\c0/u; + + +//// [u-invalid-class-escape.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: > + ClassEscape does not recognize "class control" patterns +info: | + ClassEscape[U] :: + b + [+U] - + CharacterClassEscape + CharacterEscape[?U] + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ +/\c0/u; diff --git a/tests/baselines/reference/u-invalid-class-escape.symbols b/tests/baselines/reference/u-invalid-class-escape.symbols new file mode 100644 index 0000000000000..8d62e187b302d --- /dev/null +++ b/tests/baselines/reference/u-invalid-class-escape.symbols @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts] //// + +=== u-invalid-class-escape.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: > + ClassEscape does not recognize "class control" patterns +info: | + ClassEscape[U] :: + b + [+U] - + CharacterClassEscape + CharacterEscape[?U] + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\c0/u; + diff --git a/tests/baselines/reference/u-invalid-class-escape.types b/tests/baselines/reference/u-invalid-class-escape.types new file mode 100644 index 0000000000000..94399973dd6c7 --- /dev/null +++ b/tests/baselines/reference/u-invalid-class-escape.types @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts] //// + +=== u-invalid-class-escape.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: > + ClassEscape does not recognize "class control" patterns +info: | + ClassEscape[U] :: + b + [+U] - + CharacterClassEscape + CharacterEscape[?U] + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\c0/u; +>/\c0/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt b/tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt new file mode 100644 index 0000000000000..16190be2a328d --- /dev/null +++ b/tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt @@ -0,0 +1,29 @@ +u-invalid-extended-pattern-char.ts(19,2): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? +u-invalid-extended-pattern-char.ts(19,4): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-extended-pattern-char.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: Quantifiable assertions disallowed with `u` flag + info: | + The `u` flag precludes the use of extended pattern characters irrespective + of the presence of Annex B extensions. + + Term[U] :: + [~U] ExtendedAtom + negative: + phase: parse + type: SyntaxError + ---*/ + + + /{/u; + ~ +!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.js b/tests/baselines/reference/u-invalid-extended-pattern-char.js new file mode 100644 index 0000000000000..f184c3c67e97a --- /dev/null +++ b/tests/baselines/reference/u-invalid-extended-pattern-char.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts] //// + +//// [u-invalid-extended-pattern-char.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes the use of extended pattern characters irrespective + of the presence of Annex B extensions. + + Term[U] :: + [~U] ExtendedAtom +negative: + phase: parse + type: SyntaxError +---*/ + + +/{/u; + + +//// [u-invalid-extended-pattern-char.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes the use of extended pattern characters irrespective + of the presence of Annex B extensions. + + Term[U] :: + [~U] ExtendedAtom +negative: + phase: parse + type: SyntaxError +---*/ +/{/u; diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.symbols b/tests/baselines/reference/u-invalid-extended-pattern-char.symbols new file mode 100644 index 0000000000000..d96d410513905 --- /dev/null +++ b/tests/baselines/reference/u-invalid-extended-pattern-char.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts] //// + +=== u-invalid-extended-pattern-char.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes the use of extended pattern characters irrespective + of the presence of Annex B extensions. + + Term[U] :: + [~U] ExtendedAtom +negative: + phase: parse + type: SyntaxError +---*/ + + +/{/u; + diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.types b/tests/baselines/reference/u-invalid-extended-pattern-char.types new file mode 100644 index 0000000000000..d675d2e7644e7 --- /dev/null +++ b/tests/baselines/reference/u-invalid-extended-pattern-char.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts] //// + +=== u-invalid-extended-pattern-char.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes the use of extended pattern characters irrespective + of the presence of Annex B extensions. + + Term[U] :: + [~U] ExtendedAtom +negative: + phase: parse + type: SyntaxError +---*/ + + +/{/u; +>/{/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-identity-escape.errors.txt b/tests/baselines/reference/u-invalid-identity-escape.errors.txt new file mode 100644 index 0000000000000..91da307766211 --- /dev/null +++ b/tests/baselines/reference/u-invalid-identity-escape.errors.txt @@ -0,0 +1,31 @@ +u-invalid-identity-escape.ts(21,2): error TS1496: '\M' is not a valid character escape. +u-invalid-identity-escape.ts(21,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-identity-escape.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: Support for UnicodeIDContinue in IdentityEscape + info: | + IdentityEscape[U] :: + [+U] SyntaxCharacter + [+U] / + [~U] SourceCharacter but not UnicodeIDContinue + + The `u` flag precludes the use of characters in UnicodeIDContinue + irrespective of the presence of Annex B extensions. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\M/u; + ~~ +!!! error TS1496: '\M' is not a valid character escape. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-identity-escape.js b/tests/baselines/reference/u-invalid-identity-escape.js new file mode 100644 index 0000000000000..009e6144fad60 --- /dev/null +++ b/tests/baselines/reference/u-invalid-identity-escape.js @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts] //// + +//// [u-invalid-identity-escape.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Support for UnicodeIDContinue in IdentityEscape +info: | + IdentityEscape[U] :: + [+U] SyntaxCharacter + [+U] / + [~U] SourceCharacter but not UnicodeIDContinue + + The `u` flag precludes the use of characters in UnicodeIDContinue + irrespective of the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\M/u; + + +//// [u-invalid-identity-escape.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Support for UnicodeIDContinue in IdentityEscape +info: | + IdentityEscape[U] :: + [+U] SyntaxCharacter + [+U] / + [~U] SourceCharacter but not UnicodeIDContinue + + The `u` flag precludes the use of characters in UnicodeIDContinue + irrespective of the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ +/\M/u; diff --git a/tests/baselines/reference/u-invalid-identity-escape.symbols b/tests/baselines/reference/u-invalid-identity-escape.symbols new file mode 100644 index 0000000000000..cf18b9ac91727 --- /dev/null +++ b/tests/baselines/reference/u-invalid-identity-escape.symbols @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts] //// + +=== u-invalid-identity-escape.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Support for UnicodeIDContinue in IdentityEscape +info: | + IdentityEscape[U] :: + [+U] SyntaxCharacter + [+U] / + [~U] SourceCharacter but not UnicodeIDContinue + + The `u` flag precludes the use of characters in UnicodeIDContinue + irrespective of the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\M/u; + diff --git a/tests/baselines/reference/u-invalid-identity-escape.types b/tests/baselines/reference/u-invalid-identity-escape.types new file mode 100644 index 0000000000000..0260adec7a124 --- /dev/null +++ b/tests/baselines/reference/u-invalid-identity-escape.types @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts] //// + +=== u-invalid-identity-escape.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Support for UnicodeIDContinue in IdentityEscape +info: | + IdentityEscape[U] :: + [+U] SyntaxCharacter + [+U] / + [~U] SourceCharacter but not UnicodeIDContinue + + The `u` flag precludes the use of characters in UnicodeIDContinue + irrespective of the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\M/u; +>/\M/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt b/tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt new file mode 100644 index 0000000000000..1ec965e34daa1 --- /dev/null +++ b/tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt @@ -0,0 +1,34 @@ +u-invalid-legacy-octal-escape.ts(24,3): error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. +u-invalid-legacy-octal-escape.ts(24,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-legacy-octal-escape.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-patterns + es6id: 21.2.1 + description: Legacy Octal Escape Sequence not supported with `u` flag + info: | + The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective + of the presence of Annex B extensions. + + CharacterEscape [U] :: + ControlEscape + c ControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\1/u; + ~ +!!! error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.js b/tests/baselines/reference/u-invalid-legacy-octal-escape.js new file mode 100644 index 0000000000000..c0ca28defc58b --- /dev/null +++ b/tests/baselines/reference/u-invalid-legacy-octal-escape.js @@ -0,0 +1,52 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts] //// + +//// [u-invalid-legacy-octal-escape.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Legacy Octal Escape Sequence not supported with `u` flag +info: | + The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective + of the presence of Annex B extensions. + + CharacterEscape [U] :: + ControlEscape + c ControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\1/u; + + +//// [u-invalid-legacy-octal-escape.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Legacy Octal Escape Sequence not supported with `u` flag +info: | + The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective + of the presence of Annex B extensions. + + CharacterEscape [U] :: + ControlEscape + c ControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] +negative: + phase: parse + type: SyntaxError +---*/ +/\1/u; diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.symbols b/tests/baselines/reference/u-invalid-legacy-octal-escape.symbols new file mode 100644 index 0000000000000..2853416fa587f --- /dev/null +++ b/tests/baselines/reference/u-invalid-legacy-octal-escape.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts] //// + +=== u-invalid-legacy-octal-escape.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Legacy Octal Escape Sequence not supported with `u` flag +info: | + The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective + of the presence of Annex B extensions. + + CharacterEscape [U] :: + ControlEscape + c ControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\1/u; + diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.types b/tests/baselines/reference/u-invalid-legacy-octal-escape.types new file mode 100644 index 0000000000000..06594d5eb0e3f --- /dev/null +++ b/tests/baselines/reference/u-invalid-legacy-octal-escape.types @@ -0,0 +1,29 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts] //// + +=== u-invalid-legacy-octal-escape.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Legacy Octal Escape Sequence not supported with `u` flag +info: | + The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective + of the presence of Annex B extensions. + + CharacterEscape [U] :: + ControlEscape + c ControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\1/u; +>/\1/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt new file mode 100644 index 0000000000000..acd1f68ef720c --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt @@ -0,0 +1,41 @@ +u-invalid-non-empty-class-ranges-no-dash-a.ts(31,3): error TS1514: A character class range must not be bounded by another character class. +u-invalid-non-empty-class-ranges-no-dash-a.ts(31,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-non-empty-class-ranges-no-dash-a.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-pattern-semantics + es6id: 21.2.2 + description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("A" parameter) + info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /[\d-a]/u; + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js new file mode 100644 index 0000000000000..94ecadaf846aa --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js @@ -0,0 +1,66 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts] //// + +//// [u-invalid-non-empty-class-ranges-no-dash-a.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("A" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\d-a]/u; + + +//// [u-invalid-non-empty-class-ranges-no-dash-a.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("A" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ +/[\d-a]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols new file mode 100644 index 0000000000000..f9ec5e59d57b5 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts] //// + +=== u-invalid-non-empty-class-ranges-no-dash-a.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("A" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\d-a]/u; + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types new file mode 100644 index 0000000000000..48ede2ea5d95f --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts] //// + +=== u-invalid-non-empty-class-ranges-no-dash-a.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("A" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\d-a]/u; +>/[\d-a]/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt new file mode 100644 index 0000000000000..c304ab12be65c --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt @@ -0,0 +1,44 @@ +u-invalid-non-empty-class-ranges-no-dash-ab.ts(31,3): error TS1514: A character class range must not be bounded by another character class. +u-invalid-non-empty-class-ranges-no-dash-ab.ts(31,6): error TS1514: A character class range must not be bounded by another character class. +u-invalid-non-empty-class-ranges-no-dash-ab.ts(31,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-non-empty-class-ranges-no-dash-ab.ts (3 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-pattern-semantics + es6id: 21.2.2 + description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + (both "A" and "B" parameters) + info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /[\s-\d]/u; + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js new file mode 100644 index 0000000000000..e07121be165ce --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js @@ -0,0 +1,66 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts] //// + +//// [u-invalid-non-empty-class-ranges-no-dash-ab.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + (both "A" and "B" parameters) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\s-\d]/u; + + +//// [u-invalid-non-empty-class-ranges-no-dash-ab.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + (both "A" and "B" parameters) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ +/[\s-\d]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols new file mode 100644 index 0000000000000..60fa272ae4030 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts] //// + +=== u-invalid-non-empty-class-ranges-no-dash-ab.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + (both "A" and "B" parameters) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\s-\d]/u; + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types new file mode 100644 index 0000000000000..b200786f11a67 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts] //// + +=== u-invalid-non-empty-class-ranges-no-dash-ab.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + (both "A" and "B" parameters) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\s-\d]/u; +>/[\s-\d]/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt new file mode 100644 index 0000000000000..01098c7fd1bf5 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt @@ -0,0 +1,41 @@ +u-invalid-non-empty-class-ranges-no-dash-b.ts(31,5): error TS1514: A character class range must not be bounded by another character class. +u-invalid-non-empty-class-ranges-no-dash-b.ts(31,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-non-empty-class-ranges-no-dash-b.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-pattern-semantics + es6id: 21.2.2 + description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("B" parameter) + info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /[%-\d]/u; + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js new file mode 100644 index 0000000000000..a6b24ef02fed1 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js @@ -0,0 +1,66 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts] //// + +//// [u-invalid-non-empty-class-ranges-no-dash-b.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("B" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[%-\d]/u; + + +//// [u-invalid-non-empty-class-ranges-no-dash-b.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("B" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ +/[%-\d]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols new file mode 100644 index 0000000000000..04b6638ba2f60 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts] //// + +=== u-invalid-non-empty-class-ranges-no-dash-b.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("B" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[%-\d]/u; + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types new file mode 100644 index 0000000000000..6d22cb99de03f --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types @@ -0,0 +1,36 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts] //// + +=== u-invalid-non-empty-class-ranges-no-dash-b.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("B" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[%-\d]/u; +>/[%-\d]/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt new file mode 100644 index 0000000000000..21c92af0735b2 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt @@ -0,0 +1,40 @@ +u-invalid-non-empty-class-ranges.ts(30,5): error TS1514: A character class range must not be bounded by another character class. +u-invalid-non-empty-class-ranges.ts(30,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-non-empty-class-ranges.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-pattern-semantics + es6id: 21.2.2 + description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /[--\d]/u; + ~~ +!!! error TS1514: A character class range must not be bounded by another character class. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges.js new file mode 100644 index 0000000000000..66502b23848c9 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges.js @@ -0,0 +1,64 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts] //// + +//// [u-invalid-non-empty-class-ranges.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[--\d]/u; + + +//// [u-invalid-non-empty-class-ranges.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ +/[--\d]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols new file mode 100644 index 0000000000000..4c96ef0712e0c --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts] //// + +=== u-invalid-non-empty-class-ranges.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[--\d]/u; + diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges.types new file mode 100644 index 0000000000000..c917a91fafc52 --- /dev/null +++ b/tests/baselines/reference/u-invalid-non-empty-class-ranges.types @@ -0,0 +1,35 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts] //// + +=== u-invalid-non-empty-class-ranges.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[--\d]/u; +>/[--\d]/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt b/tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt new file mode 100644 index 0000000000000..bb995f3ec0477 --- /dev/null +++ b/tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt @@ -0,0 +1,29 @@ +u-invalid-oob-decimal-escape.ts(19,3): error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. +u-invalid-oob-decimal-escape.ts(19,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-oob-decimal-escape.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-pattern-semantics + es6id: 21.2.2 + description: Out-of-bounds decimal escapes + info: | + 1. Evaluate DecimalEscape to obtain an integer n. + 2. If n>NcapturingParens, throw a SyntaxError exception. + + When the "unicode" flag is set, this algorithm is honored irrespective of + the presence of Annex B extensions. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\8/u; + ~ +!!! error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.js b/tests/baselines/reference/u-invalid-oob-decimal-escape.js new file mode 100644 index 0000000000000..8ba838cf3f579 --- /dev/null +++ b/tests/baselines/reference/u-invalid-oob-decimal-escape.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts] //// + +//// [u-invalid-oob-decimal-escape.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: Out-of-bounds decimal escapes +info: | + 1. Evaluate DecimalEscape to obtain an integer n. + 2. If n>NcapturingParens, throw a SyntaxError exception. + + When the "unicode" flag is set, this algorithm is honored irrespective of + the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\8/u; + + +//// [u-invalid-oob-decimal-escape.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: Out-of-bounds decimal escapes +info: | + 1. Evaluate DecimalEscape to obtain an integer n. + 2. If n>NcapturingParens, throw a SyntaxError exception. + + When the "unicode" flag is set, this algorithm is honored irrespective of + the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ +/\8/u; diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.symbols b/tests/baselines/reference/u-invalid-oob-decimal-escape.symbols new file mode 100644 index 0000000000000..cb18b36eed167 --- /dev/null +++ b/tests/baselines/reference/u-invalid-oob-decimal-escape.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts] //// + +=== u-invalid-oob-decimal-escape.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: Out-of-bounds decimal escapes +info: | + 1. Evaluate DecimalEscape to obtain an integer n. + 2. If n>NcapturingParens, throw a SyntaxError exception. + + When the "unicode" flag is set, this algorithm is honored irrespective of + the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\8/u; + diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.types b/tests/baselines/reference/u-invalid-oob-decimal-escape.types new file mode 100644 index 0000000000000..78df3f939fad2 --- /dev/null +++ b/tests/baselines/reference/u-invalid-oob-decimal-escape.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts] //// + +=== u-invalid-oob-decimal-escape.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: Out-of-bounds decimal escapes +info: | + 1. Evaluate DecimalEscape to obtain an integer n. + 2. If n>NcapturingParens, throw a SyntaxError exception. + + When the "unicode" flag is set, this algorithm is honored irrespective of + the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\8/u; +>/\8/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.errors.txt b/tests/baselines/reference/u-invalid-optional-lookahead.errors.txt new file mode 100644 index 0000000000000..302776048e1ba --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookahead.errors.txt @@ -0,0 +1,29 @@ +u-invalid-optional-lookahead.ts(19,8): error TS1505: There is nothing available for repetition. +u-invalid-optional-lookahead.ts(19,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-optional-lookahead.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + es6id: B.1.4 + description: Quantifiable assertions disallowed with `u` flag + info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?=.)?/u; + ~ +!!! error TS1505: There is nothing available for repetition. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.js b/tests/baselines/reference/u-invalid-optional-lookahead.js new file mode 100644 index 0000000000000..85fd16ec2e201 --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookahead.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts] //// + +//// [u-invalid-optional-lookahead.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?=.)?/u; + + +//// [u-invalid-optional-lookahead.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ +/.(?=.)?/u; diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.symbols b/tests/baselines/reference/u-invalid-optional-lookahead.symbols new file mode 100644 index 0000000000000..7474832465ff3 --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookahead.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts] //// + +=== u-invalid-optional-lookahead.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?=.)?/u; + diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.types b/tests/baselines/reference/u-invalid-optional-lookahead.types new file mode 100644 index 0000000000000..1b7b0dc2af70e --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookahead.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts] //// + +=== u-invalid-optional-lookahead.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?=.)?/u; +>/.(?=.)?/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt new file mode 100644 index 0000000000000..8f03d851b4343 --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt @@ -0,0 +1,29 @@ +u-invalid-optional-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. +u-invalid-optional-lookbehind.ts(19,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-optional-lookbehind.ts (2 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?<=.)?/u; + ~ +!!! error TS1505: There is nothing available for repetition. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.js b/tests/baselines/reference/u-invalid-optional-lookbehind.js new file mode 100644 index 0000000000000..6c65078e3b22e --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookbehind.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts] //// + +//// [u-invalid-optional-lookbehind.ts] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/u; + + +//// [u-invalid-optional-lookbehind.js] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ +/.(?<=.)?/u; diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.symbols b/tests/baselines/reference/u-invalid-optional-lookbehind.symbols new file mode 100644 index 0000000000000..911be6862522a --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookbehind.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts] //// + +=== u-invalid-optional-lookbehind.ts === + +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/u; + diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.types b/tests/baselines/reference/u-invalid-optional-lookbehind.types new file mode 100644 index 0000000000000..595db0378f4e5 --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-lookbehind.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts] //// + +=== u-invalid-optional-lookbehind.ts === +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/u; +>/.(?<=.)?/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt b/tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt new file mode 100644 index 0000000000000..31b748f78a0ee --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt @@ -0,0 +1,29 @@ +u-invalid-optional-negative-lookahead.ts(19,8): error TS1505: There is nothing available for repetition. +u-invalid-optional-negative-lookahead.ts(19,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-optional-negative-lookahead.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + es6id: B.1.4 + description: Quantifiable assertions disallowed with `u` flag + info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?!.)?/u; + ~ +!!! error TS1505: There is nothing available for repetition. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.js b/tests/baselines/reference/u-invalid-optional-negative-lookahead.js new file mode 100644 index 0000000000000..fdcf77ae12d36 --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-negative-lookahead.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts] //// + +//// [u-invalid-optional-negative-lookahead.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.)?/u; + + +//// [u-invalid-optional-negative-lookahead.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ +/.(?!.)?/u; diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols b/tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols new file mode 100644 index 0000000000000..77cbc94f646ad --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts] //// + +=== u-invalid-optional-negative-lookahead.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.)?/u; + diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.types b/tests/baselines/reference/u-invalid-optional-negative-lookahead.types new file mode 100644 index 0000000000000..c611c82e6b7fc --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-negative-lookahead.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts] //// + +=== u-invalid-optional-negative-lookahead.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.)?/u; +>/.(?!.)?/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt new file mode 100644 index 0000000000000..59a7fa2c6eafc --- /dev/null +++ b/tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt @@ -0,0 +1,29 @@ +u-invalid-optional-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. +u-invalid-optional-negative-lookbehind.ts(19,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-optional-negative-lookbehind.ts (2 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?/.(?/.(?=.){2,3}/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-range-lookbehind.errors.txt new file mode 100644 index 0000000000000..a527b8cd65a1b --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-lookbehind.errors.txt @@ -0,0 +1,29 @@ +u-invalid-range-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. +u-invalid-range-lookbehind.ts(19,15): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-range-lookbehind.ts (2 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?<=.){2,3}/u; + ~~~~~ +!!! error TS1505: There is nothing available for repetition. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.js b/tests/baselines/reference/u-invalid-range-lookbehind.js new file mode 100644 index 0000000000000..0dc127b0794ed --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-lookbehind.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts] //// + +//// [u-invalid-range-lookbehind.ts] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.){2,3}/u; + + +//// [u-invalid-range-lookbehind.js] +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ +/.(?<=.){2,3}/u; diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.symbols b/tests/baselines/reference/u-invalid-range-lookbehind.symbols new file mode 100644 index 0000000000000..1a60a4c63dce1 --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-lookbehind.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts] //// + +=== u-invalid-range-lookbehind.ts === + +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.){2,3}/u; + diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.types b/tests/baselines/reference/u-invalid-range-lookbehind.types new file mode 100644 index 0000000000000..131e23e6cf4a1 --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-lookbehind.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts] //// + +=== u-invalid-range-lookbehind.ts === +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.){2,3}/u; +>/.(?<=.){2,3}/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt b/tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt new file mode 100644 index 0000000000000..9d486247eb8d0 --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt @@ -0,0 +1,29 @@ +u-invalid-range-negative-lookahead.ts(19,8): error TS1505: There is nothing available for repetition. +u-invalid-range-negative-lookahead.ts(19,14): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-range-negative-lookahead.ts (2 errors) ==== + // Copyright (C) 2016 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + es6id: B.1.4 + description: Quantifiable assertions disallowed with `u` flag + info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?!.){2,3}/u; + ~~~~~ +!!! error TS1505: There is nothing available for repetition. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.js b/tests/baselines/reference/u-invalid-range-negative-lookahead.js new file mode 100644 index 0000000000000..a76869977c434 --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-negative-lookahead.js @@ -0,0 +1,42 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts] //// + +//// [u-invalid-range-negative-lookahead.ts] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.){2,3}/u; + + +//// [u-invalid-range-negative-lookahead.js] +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ +/.(?!.){2,3}/u; diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.symbols b/tests/baselines/reference/u-invalid-range-negative-lookahead.symbols new file mode 100644 index 0000000000000..d97d8bf9c9bb6 --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-negative-lookahead.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts] //// + +=== u-invalid-range-negative-lookahead.ts === + +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.){2,3}/u; + diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.types b/tests/baselines/reference/u-invalid-range-negative-lookahead.types new file mode 100644 index 0000000000000..4548e5b2e38a6 --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-negative-lookahead.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts] //// + +=== u-invalid-range-negative-lookahead.ts === +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.){2,3}/u; +>/.(?!.){2,3}/u : RegExp + diff --git a/tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt new file mode 100644 index 0000000000000..bf2389105956d --- /dev/null +++ b/tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt @@ -0,0 +1,29 @@ +u-invalid-range-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. +u-invalid-range-negative-lookbehind.ts(19,15): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-invalid-range-negative-lookbehind.ts (2 errors) ==== + // Copyright (C) 2018 Igalia S. L. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + /*--- + esid: sec-regular-expressions-patterns + description: Lookbehinds are not treated as a QuantifiableAssertion + info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) + negative: + phase: parse + type: SyntaxError + ---*/ + + + /.(?/.(? 1114111. + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\u{110000}/u; + ~~~~~~ +!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-unicode-esc-bounds.js b/tests/baselines/reference/u-unicode-esc-bounds.js new file mode 100644 index 0000000000000..13a15d044bac8 --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-bounds.js @@ -0,0 +1,41 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts] //// + +//// [u-unicode-esc-bounds.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence +es6id: 21.2.1.1 +info: | + 21.2.1.1 Static Semantics: Early Errors + + RegExpUnicodeEscapeSequence :: u{ HexDigits } + + - It is a Syntax Error if the MV of HexDigits > 1114111. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{110000}/u; + + +//// [u-unicode-esc-bounds.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence +es6id: 21.2.1.1 +info: | + 21.2.1.1 Static Semantics: Early Errors + + RegExpUnicodeEscapeSequence :: u{ HexDigits } + + - It is a Syntax Error if the MV of HexDigits > 1114111. +negative: + phase: parse + type: SyntaxError +---*/ +/\u{110000}/u; diff --git a/tests/baselines/reference/u-unicode-esc-bounds.symbols b/tests/baselines/reference/u-unicode-esc-bounds.symbols new file mode 100644 index 0000000000000..ca40441434186 --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-bounds.symbols @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts] //// + +=== u-unicode-esc-bounds.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence +es6id: 21.2.1.1 +info: | + 21.2.1.1 Static Semantics: Early Errors + + RegExpUnicodeEscapeSequence :: u{ HexDigits } + + - It is a Syntax Error if the MV of HexDigits > 1114111. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{110000}/u; + diff --git a/tests/baselines/reference/u-unicode-esc-bounds.types b/tests/baselines/reference/u-unicode-esc-bounds.types new file mode 100644 index 0000000000000..f330eb7ed92a5 --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-bounds.types @@ -0,0 +1,24 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts] //// + +=== u-unicode-esc-bounds.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence +es6id: 21.2.1.1 +info: | + 21.2.1.1 Static Semantics: Early Errors + + RegExpUnicodeEscapeSequence :: u{ HexDigits } + + - It is a Syntax Error if the MV of HexDigits > 1114111. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{110000}/u; +>/\u{110000}/u : RegExp + diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.errors.txt b/tests/baselines/reference/u-unicode-esc-non-hex.errors.txt new file mode 100644 index 0000000000000..bfea4bca62853 --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-non-hex.errors.txt @@ -0,0 +1,27 @@ +u-unicode-esc-non-hex.ts(14,6): error TS1199: Unterminated Unicode escape sequence. +u-unicode-esc-non-hex.ts(14,7): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +u-unicode-esc-non-hex.ts(14,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== u-unicode-esc-non-hex.ts (3 errors) ==== + // Copyright (C) 2015 the V8 project authors. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + description: > + Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence + es6id: 21.2.1 + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\u{1,}/u; + +!!! error TS1199: Unterminated Unicode escape sequence. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.js b/tests/baselines/reference/u-unicode-esc-non-hex.js new file mode 100644 index 0000000000000..070691621dfbf --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-non-hex.js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts] //// + +//// [u-unicode-esc-non-hex.ts] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence +es6id: 21.2.1 +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1,}/u; + + +//// [u-unicode-esc-non-hex.js] +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence +es6id: 21.2.1 +negative: + phase: parse + type: SyntaxError +---*/ +/\u{1,}/u; diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.symbols b/tests/baselines/reference/u-unicode-esc-non-hex.symbols new file mode 100644 index 0000000000000..ec77d08b0e9f2 --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-non-hex.symbols @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts] //// + +=== u-unicode-esc-non-hex.ts === + +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence +es6id: 21.2.1 +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1,}/u; + diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.types b/tests/baselines/reference/u-unicode-esc-non-hex.types new file mode 100644 index 0000000000000..c197dbc01e423 --- /dev/null +++ b/tests/baselines/reference/u-unicode-esc-non-hex.types @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts] //// + +=== u-unicode-esc-non-hex.ts === +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence +es6id: 21.2.1 +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1,}/u; +>/\u{1,}/u : RegExp + diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.errors.txt b/tests/baselines/reference/unicode-escape-nls-err-double.errors.txt new file mode 100644 index 0000000000000..bfa63b383543c --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-double.errors.txt @@ -0,0 +1,55 @@ +unicode-escape-nls-err-double.ts(48,7): error TS1199: Unterminated Unicode escape sequence. + + +==== unicode-escape-nls-err-double.ts (1 errors) ==== + // Copyright (C) 2017 Valerie Young. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-StringLiteral + description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) + info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + DoubleStringCharacters:: + DoubleStringCharacter DoubleStringCharacters opt + + DoubleStringCharacter:: + SourceCharacter but not one of " or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + features: [numeric-separator-literal] + negative: + phase: parse + type: SyntaxError + ---*/ + + + "\u{1F_639}" + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.js b/tests/baselines/reference/unicode-escape-nls-err-double.js new file mode 100644 index 0000000000000..f3afad66c76de --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-double.js @@ -0,0 +1,99 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts] //// + +//// [unicode-escape-nls-err-double.ts] +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + DoubleStringCharacters:: + DoubleStringCharacter DoubleStringCharacters opt + + DoubleStringCharacter:: + SourceCharacter but not one of " or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u{1F_639}" + + +//// [unicode-escape-nls-err-double.js] +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + DoubleStringCharacters:: + DoubleStringCharacter DoubleStringCharacters opt + + DoubleStringCharacter:: + SourceCharacter but not one of " or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ +"\u{1F_639}"; diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.symbols b/tests/baselines/reference/unicode-escape-nls-err-double.symbols new file mode 100644 index 0000000000000..9f7ac04de9967 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-double.symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts] //// + +=== unicode-escape-nls-err-double.ts === + +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + DoubleStringCharacters:: + DoubleStringCharacter DoubleStringCharacters opt + + DoubleStringCharacter:: + SourceCharacter but not one of " or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u{1F_639}" + diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.types b/tests/baselines/reference/unicode-escape-nls-err-double.types new file mode 100644 index 0000000000000..c9dd48aa7d89f --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-double.types @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts] //// + +=== unicode-escape-nls-err-double.ts === +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + DoubleStringCharacters:: + DoubleStringCharacter DoubleStringCharacters opt + + DoubleStringCharacter:: + SourceCharacter but not one of " or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u{1F_639}" +>"\u{1F_639}" : "\\u{1F_639}" + diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.errors.txt b/tests/baselines/reference/unicode-escape-nls-err-single.errors.txt new file mode 100644 index 0000000000000..0c42d15f6eac4 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-single.errors.txt @@ -0,0 +1,55 @@ +unicode-escape-nls-err-single.ts(48,7): error TS1199: Unterminated Unicode escape sequence. + + +==== unicode-escape-nls-err-single.ts (1 errors) ==== + // Copyright (C) 2017 Valerie Young. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-StringLiteral + description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) + info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + SingleStringCharacters:: + SingleStringCharacterSingleStringCharactersopt + + SingleStringCharacter:: + SourceCharacterbut not one of ' or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + features: [numeric-separator-literal] + negative: + phase: parse + type: SyntaxError + ---*/ + + + '\u{1F_639}'; + +!!! error TS1199: Unterminated Unicode escape sequence. + \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.js b/tests/baselines/reference/unicode-escape-nls-err-single.js new file mode 100644 index 0000000000000..a27556af7754b --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-single.js @@ -0,0 +1,99 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts] //// + +//// [unicode-escape-nls-err-single.ts] +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + SingleStringCharacters:: + SingleStringCharacterSingleStringCharactersopt + + SingleStringCharacter:: + SourceCharacterbut not one of ' or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u{1F_639}'; + + +//// [unicode-escape-nls-err-single.js] +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + SingleStringCharacters:: + SingleStringCharacterSingleStringCharactersopt + + SingleStringCharacter:: + SourceCharacterbut not one of ' or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ +'\u{1F_639}'; diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.symbols b/tests/baselines/reference/unicode-escape-nls-err-single.symbols new file mode 100644 index 0000000000000..ae00d73eb1e18 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-single.symbols @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts] //// + +=== unicode-escape-nls-err-single.ts === + +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + SingleStringCharacters:: + SingleStringCharacterSingleStringCharactersopt + + SingleStringCharacter:: + SourceCharacterbut not one of ' or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u{1F_639}'; + diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.types b/tests/baselines/reference/unicode-escape-nls-err-single.types new file mode 100644 index 0000000000000..292f0b5d141a4 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err-single.types @@ -0,0 +1,53 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts] //// + +=== unicode-escape-nls-err-single.ts === +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + SingleStringCharacters:: + SingleStringCharacterSingleStringCharactersopt + + SingleStringCharacter:: + SourceCharacterbut not one of ' or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u{1F_639}'; +>'\u{1F_639}' : "\\u{1F_639}" + diff --git a/tests/baselines/reference/unicode-escape-nls-err.errors.txt b/tests/baselines/reference/unicode-escape-nls-err.errors.txt new file mode 100644 index 0000000000000..66b9d81859bbf --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err.errors.txt @@ -0,0 +1,85 @@ +unicode-escape-nls-err.ts(72,7): error TS1199: Unterminated Unicode escape sequence. +unicode-escape-nls-err.ts(72,11): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? +unicode-escape-nls-err.ts(72,13): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== unicode-escape-nls-err.ts (3 errors) ==== + // Copyright (C) 2017 Valerie Young. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-Pattern + description: NumericLiteralSeperator disallowed in unicode CodePoint sequence + info: | + Pattern[U, N]:: + Disjunction[?U, ?N] + + Disjunction[U, N]:: + Alternative[?U, ?N] + Alternative[?U, ?N]|Disjunction[?U, ?N] + + Alternative[U, N]:: + [empty] + Alternative[?U, ?N]Term[?U, ?N] + + Term[U, N]:: + Assertion[?U, ?N] + Atom[?U, ?N] + Atom[?U, ?N]Quantifier + + Atom[U, N]:: + PatternCharacter + . + \AtomEscape[?U, ?N] + CharacterClass[?U] + (GroupSpecifier[?U]Disjunction[?U, ?N]) + (?:Disjunction[?U, ?N]) + + AtomEscape[U, N]:: + DecimalEscape + CharacterClassEscape[?U] + CharacterEscape[?U] + [+N]kGroupName[?U] + + CharacterEscape[U]:: + ControlEscape + cControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + + RegExpUnicodeEscapeSequence[U]:: + [+U]uLeadSurrogate\uTrailSurrogate + [+U]uLeadSurrogate + [+U]uTrailSurrogate + [+U]uNonSurrogate + [~U]uHex4Digits + [+U]u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + features: [numeric-separator-literal] + negative: + phase: parse + type: SyntaxError + ---*/ + + + /\u{1F_639}/u; + +!!! error TS1199: Unterminated Unicode escape sequence. + ~ +!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-nls-err.js b/tests/baselines/reference/unicode-escape-nls-err.js new file mode 100644 index 0000000000000..1708ee5b767ac --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err.js @@ -0,0 +1,147 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts] //// + +//// [unicode-escape-nls-err.ts] +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-Pattern +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence +info: | + Pattern[U, N]:: + Disjunction[?U, ?N] + + Disjunction[U, N]:: + Alternative[?U, ?N] + Alternative[?U, ?N]|Disjunction[?U, ?N] + + Alternative[U, N]:: + [empty] + Alternative[?U, ?N]Term[?U, ?N] + + Term[U, N]:: + Assertion[?U, ?N] + Atom[?U, ?N] + Atom[?U, ?N]Quantifier + + Atom[U, N]:: + PatternCharacter + . + \AtomEscape[?U, ?N] + CharacterClass[?U] + (GroupSpecifier[?U]Disjunction[?U, ?N]) + (?:Disjunction[?U, ?N]) + + AtomEscape[U, N]:: + DecimalEscape + CharacterClassEscape[?U] + CharacterEscape[?U] + [+N]kGroupName[?U] + + CharacterEscape[U]:: + ControlEscape + cControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + + RegExpUnicodeEscapeSequence[U]:: + [+U]uLeadSurrogate\uTrailSurrogate + [+U]uLeadSurrogate + [+U]uTrailSurrogate + [+U]uNonSurrogate + [~U]uHex4Digits + [+U]u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1F_639}/u; + + +//// [unicode-escape-nls-err.js] +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-Pattern +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence +info: | + Pattern[U, N]:: + Disjunction[?U, ?N] + + Disjunction[U, N]:: + Alternative[?U, ?N] + Alternative[?U, ?N]|Disjunction[?U, ?N] + + Alternative[U, N]:: + [empty] + Alternative[?U, ?N]Term[?U, ?N] + + Term[U, N]:: + Assertion[?U, ?N] + Atom[?U, ?N] + Atom[?U, ?N]Quantifier + + Atom[U, N]:: + PatternCharacter + . + \AtomEscape[?U, ?N] + CharacterClass[?U] + (GroupSpecifier[?U]Disjunction[?U, ?N]) + (?:Disjunction[?U, ?N]) + + AtomEscape[U, N]:: + DecimalEscape + CharacterClassEscape[?U] + CharacterEscape[?U] + [+N]kGroupName[?U] + + CharacterEscape[U]:: + ControlEscape + cControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + + RegExpUnicodeEscapeSequence[U]:: + [+U]uLeadSurrogate\uTrailSurrogate + [+U]uLeadSurrogate + [+U]uTrailSurrogate + [+U]uNonSurrogate + [~U]uHex4Digits + [+U]u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ +/\u{1F_639}/u; diff --git a/tests/baselines/reference/unicode-escape-nls-err.symbols b/tests/baselines/reference/unicode-escape-nls-err.symbols new file mode 100644 index 0000000000000..3e19c3e7b3470 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err.symbols @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts] //// + +=== unicode-escape-nls-err.ts === + +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-Pattern +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence +info: | + Pattern[U, N]:: + Disjunction[?U, ?N] + + Disjunction[U, N]:: + Alternative[?U, ?N] + Alternative[?U, ?N]|Disjunction[?U, ?N] + + Alternative[U, N]:: + [empty] + Alternative[?U, ?N]Term[?U, ?N] + + Term[U, N]:: + Assertion[?U, ?N] + Atom[?U, ?N] + Atom[?U, ?N]Quantifier + + Atom[U, N]:: + PatternCharacter + . + \AtomEscape[?U, ?N] + CharacterClass[?U] + (GroupSpecifier[?U]Disjunction[?U, ?N]) + (?:Disjunction[?U, ?N]) + + AtomEscape[U, N]:: + DecimalEscape + CharacterClassEscape[?U] + CharacterEscape[?U] + [+N]kGroupName[?U] + + CharacterEscape[U]:: + ControlEscape + cControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + + RegExpUnicodeEscapeSequence[U]:: + [+U]uLeadSurrogate\uTrailSurrogate + [+U]uLeadSurrogate + [+U]uTrailSurrogate + [+U]uNonSurrogate + [~U]uHex4Digits + [+U]u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1F_639}/u; + diff --git a/tests/baselines/reference/unicode-escape-nls-err.types b/tests/baselines/reference/unicode-escape-nls-err.types new file mode 100644 index 0000000000000..6287b37f025ed --- /dev/null +++ b/tests/baselines/reference/unicode-escape-nls-err.types @@ -0,0 +1,77 @@ +//// [tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts] //// + +=== unicode-escape-nls-err.ts === +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-Pattern +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence +info: | + Pattern[U, N]:: + Disjunction[?U, ?N] + + Disjunction[U, N]:: + Alternative[?U, ?N] + Alternative[?U, ?N]|Disjunction[?U, ?N] + + Alternative[U, N]:: + [empty] + Alternative[?U, ?N]Term[?U, ?N] + + Term[U, N]:: + Assertion[?U, ?N] + Atom[?U, ?N] + Atom[?U, ?N]Quantifier + + Atom[U, N]:: + PatternCharacter + . + \AtomEscape[?U, ?N] + CharacterClass[?U] + (GroupSpecifier[?U]Disjunction[?U, ?N]) + (?:Disjunction[?U, ?N]) + + AtomEscape[U, N]:: + DecimalEscape + CharacterClassEscape[?U] + CharacterEscape[?U] + [+N]kGroupName[?U] + + CharacterEscape[U]:: + ControlEscape + cControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + + RegExpUnicodeEscapeSequence[U]:: + [+U]uLeadSurrogate\uTrailSurrogate + [+U]uLeadSurrogate + [+U]uTrailSurrogate + [+U]uNonSurrogate + [~U]uHex4Digits + [+U]u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1F_639}/u; +>/\u{1F_639}/u : RegExp + diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt b/tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt new file mode 100644 index 0000000000000..c5eae25e663a9 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt @@ -0,0 +1,52 @@ +unicode-escape-no-hex-err-double.ts(45,4): error TS1125: Hexadecimal digit expected. + + +==== unicode-escape-no-hex-err-double.ts (1 errors) ==== + // Copyright (C) 2020 Alexey Shvayka. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-StringLiteral + description: > + \u is at the end of string, Hex4Digits is required. + info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + DoubleStringCharacters :: + DoubleStringCharacter DoubleStringCharacters_opt + + DoubleStringCharacter :: + SourceCharacter but not one of " or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + ---*/ + + + "\u" + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.js b/tests/baselines/reference/unicode-escape-no-hex-err-double.js new file mode 100644 index 0000000000000..58306c7e1351a --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-double.js @@ -0,0 +1,93 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts] //// + +//// [unicode-escape-no-hex-err-double.ts] +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + DoubleStringCharacters :: + DoubleStringCharacter DoubleStringCharacters_opt + + DoubleStringCharacter :: + SourceCharacter but not one of " or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u" + + +//// [unicode-escape-no-hex-err-double.js] +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + DoubleStringCharacters :: + DoubleStringCharacter DoubleStringCharacters_opt + + DoubleStringCharacter :: + SourceCharacter but not one of " or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ +"\u"; diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.symbols b/tests/baselines/reference/unicode-escape-no-hex-err-double.symbols new file mode 100644 index 0000000000000..71af11afa4613 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-double.symbols @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts] //// + +=== unicode-escape-no-hex-err-double.ts === + +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + DoubleStringCharacters :: + DoubleStringCharacter DoubleStringCharacters_opt + + DoubleStringCharacter :: + SourceCharacter but not one of " or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u" + diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.types b/tests/baselines/reference/unicode-escape-no-hex-err-double.types new file mode 100644 index 0000000000000..d0fa202193362 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-double.types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts] //// + +=== unicode-escape-no-hex-err-double.ts === +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + DoubleStringCharacters :: + DoubleStringCharacter DoubleStringCharacters_opt + + DoubleStringCharacter :: + SourceCharacter but not one of " or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u" +>"\u" : "\\u" + diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt b/tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt new file mode 100644 index 0000000000000..35916b40b2648 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt @@ -0,0 +1,52 @@ +unicode-escape-no-hex-err-single.ts(45,4): error TS1125: Hexadecimal digit expected. + + +==== unicode-escape-no-hex-err-single.ts (1 errors) ==== + // Copyright (C) 2020 Alexey Shvayka. All rights reserved. + // This code is governed by the BSD license found in the LICENSE file. + + /*--- + esid: prod-StringLiteral + description: > + \u is at the end of string, Hex4Digits is required. + info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + SingleStringCharacters :: + SingleStringCharacter SingleStringCharacters_opt + + SingleStringCharacter :: + SourceCharacter but not one of ' or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + + negative: + phase: parse + type: SyntaxError + ---*/ + + + '\u' + +!!! error TS1125: Hexadecimal digit expected. + \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.js b/tests/baselines/reference/unicode-escape-no-hex-err-single.js new file mode 100644 index 0000000000000..a4705d9cbe7f0 --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-single.js @@ -0,0 +1,93 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts] //// + +//// [unicode-escape-no-hex-err-single.ts] +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + SingleStringCharacters :: + SingleStringCharacter SingleStringCharacters_opt + + SingleStringCharacter :: + SourceCharacter but not one of ' or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u' + + +//// [unicode-escape-no-hex-err-single.js] +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + SingleStringCharacters :: + SingleStringCharacter SingleStringCharacters_opt + + SingleStringCharacter :: + SourceCharacter but not one of ' or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ +'\u'; diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.symbols b/tests/baselines/reference/unicode-escape-no-hex-err-single.symbols new file mode 100644 index 0000000000000..ee86d83b6604e --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-single.symbols @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts] //// + +=== unicode-escape-no-hex-err-single.ts === + +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + SingleStringCharacters :: + SingleStringCharacter SingleStringCharacters_opt + + SingleStringCharacter :: + SourceCharacter but not one of ' or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u' + diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.types b/tests/baselines/reference/unicode-escape-no-hex-err-single.types new file mode 100644 index 0000000000000..10f618524003f --- /dev/null +++ b/tests/baselines/reference/unicode-escape-no-hex-err-single.types @@ -0,0 +1,50 @@ +//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts] //// + +=== unicode-escape-no-hex-err-single.ts === +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + SingleStringCharacters :: + SingleStringCharacter SingleStringCharacters_opt + + SingleStringCharacter :: + SourceCharacter but not one of ' or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u' +>'\u' : "\\u" + diff --git a/tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts new file mode 100644 index 0000000000000..72a0ab3cdf259 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Binary BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0b2n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts new file mode 100644 index 0000000000000..6a51c2e5623f6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Octal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0o9n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts b/tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts new file mode 100644 index 0000000000000..5b732f9112275 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts @@ -0,0 +1,15 @@ +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. +esid: sec-numeric-literal-static-semantics-early-errors +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0e0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts new file mode 100644 index 0000000000000..84e285a810a01 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2017 Robin Templeton. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Hexadecimal BigInt literal containing an invalid digit +esid: prod-NumericLiteral +info: | + NumericLiteral :: + NumericLiteralBase NumericLiteralSuffix + + NumericLiteralBase :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + NumericLiteralSuffix :: n +negative: + phase: parse + type: SyntaxError +features: [BigInt] +---*/ + + +0xgn; diff --git a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts new file mode 100644 index 0000000000000..c8c60d9f3f6b1 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +00n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts new file mode 100644 index 0000000000000..e3c7bc650a5d6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +01n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts new file mode 100644 index 0000000000000..a35f811a7bd16 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in LegacyOctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + LegacyOctalIntegerLiteral + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +07n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts b/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts new file mode 100644 index 0000000000000..eb5a8d27ab641 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts @@ -0,0 +1,26 @@ +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +2017.8n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts b/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts new file mode 100644 index 0000000000000..52ade930ad9ed --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts @@ -0,0 +1,26 @@ +// Copyright (C) 2017 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-numeric-literal-static-semantics-early-errors +description: > + It is a Syntax Error if the MV is not an integer. (dot decimalDigits) +info: | + Static Semantics: BigInt Value + + NumericLiteral :: NumericLiteralBase NumericLiteralSuffix + + 1. Assert: NumericLiteralSuffix is n. + 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt + . DecimalDigits +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +.0000000001n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts new file mode 100644 index 0000000000000..ff59230c8d7aa --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +0008n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts new file mode 100644 index 0000000000000..101d05d6a7497 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +012348n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts new file mode 100644 index 0000000000000..bbaeb606ac408 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +08n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts new file mode 100644 index 0000000000000..b125414afc4b0 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteral +description: > + The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + + https://github.com/tc39/proposal-bigint/issues/208 + + NumericLiteral :: + DecimalBigIntegerLiteral + + DecimalBigIntegerLiteral :: + 0 BigIntLiteralSuffix + NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix +features: [BigInt] +negative: + phase: parse + type: SyntaxError +---*/ + + +09n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts new file mode 100644 index 0000000000000..ae3b11d861a79 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts new file mode 100644 index 0000000000000..89517ae0052db --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0__0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts new file mode 100644 index 0000000000000..7ed0922fe95f1 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts @@ -0,0 +1,42 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral (before n) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0b0_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts new file mode 100644 index 0000000000000..3dd98c34ad3e0 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts @@ -0,0 +1,35 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1__0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts new file mode 100644 index 0000000000000..5cf872fa36616 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts @@ -0,0 +1,37 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts new file mode 100644 index 0000000000000..d6cb436b74ea0 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts @@ -0,0 +1,35 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10__0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts new file mode 100644 index 0000000000000..2c9a867a4b256 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts @@ -0,0 +1,38 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +10_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts new file mode 100644 index 0000000000000..f9f644b6eac40 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts new file mode 100644 index 0000000000000..381ce5e1cc1e9 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0__0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts new file mode 100644 index 0000000000000..8e1177a8d68d3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0x0_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts new file mode 100644 index 0000000000000..cd2f5d958552f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts @@ -0,0 +1,51 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +00_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts new file mode 100644 index 0000000000000..16d88c7344732 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts @@ -0,0 +1,51 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +01_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts new file mode 100644 index 0000000000000..b0789a0b52b76 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts @@ -0,0 +1,53 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +07_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts new file mode 100644 index 0000000000000..8cbc9012c5720 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts @@ -0,0 +1,51 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts new file mode 100644 index 0000000000000..f6b5978808a1c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts @@ -0,0 +1,51 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts new file mode 100644 index 0000000000000..f964556364a41 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts @@ -0,0 +1,52 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_7n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts new file mode 100644 index 0000000000000..f0027f898e392 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts @@ -0,0 +1,48 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +08_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts new file mode 100644 index 0000000000000..ac70e3fc38ad8 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts @@ -0,0 +1,48 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +09_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts new file mode 100644 index 0000000000000..92c2c539ded63 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts @@ -0,0 +1,48 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_8n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts new file mode 100644 index 0000000000000..574cdc1c3feea --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts @@ -0,0 +1,48 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_9n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts new file mode 100644 index 0000000000000..a29afc1f1b33a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts @@ -0,0 +1,38 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0__0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts new file mode 100644 index 0000000000000..9cf743d7148e3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts @@ -0,0 +1,36 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0_0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts new file mode 100644 index 0000000000000..220e9efef5f6f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0__0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts new file mode 100644 index 0000000000000..f5d694f883a3c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o0_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts new file mode 100644 index 0000000000000..6b202c3b8a794 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts @@ -0,0 +1,43 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +0o_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts new file mode 100644 index 0000000000000..a5f9c5f00dedb --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts @@ -0,0 +1,35 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteral :: + DecimalIntegerLiteral BigIntLiteralSuffix + NumericLiteralBase BigIntLiteralSuffix + + NumericLiteralBase :: + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + + BigIntLiteralSuffix :: n + + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError +features: [BigInt, numeric-separator-literal] +---*/ + + +1\u005F0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts b/tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts new file mode 100644 index 0000000000000..a26af8ea8df92 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1gs +description: Strict Mode - octal extension(010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var y = 010; diff --git a/tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts b/tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts new file mode 100644 index 0000000000000..100a66409df4c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts @@ -0,0 +1,18 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-2gs +description: > + Strict Mode - octal extension is forbidden in strict mode (after a + hex number is assigned to a variable) +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +var a; +a = 0x1; +a = 01; diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts new file mode 100644 index 0000000000000..535023502e863 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T1 +description: Checking if execution of "0x" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0x diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts new file mode 100644 index 0000000000000..ab208db17e977 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "HexIntegerLiteral :: 0(x/X) is incorrect" +es5id: 7.8.3_A6.1_T2 +description: Checking if execution of "0X" passes +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0X diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts new file mode 100644 index 0000000000000..a5ee50a80393e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T1 +description: Checking if execution of "0xG" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xG diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts new file mode 100644 index 0000000000000..a1691aa34c6a3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: 0xG is incorrect +es5id: 7.8.3_A6.2_T2 +description: Checking if execution of "0xg" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +0xg diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts new file mode 100644 index 0000000000000..96d213179872a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence containing an invalid digit +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b2; diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts new file mode 100644 index 0000000000000..1ee35a4771d55 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence with a leading 0 +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +00b0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts new file mode 100644 index 0000000000000..f72459b01daaa --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence without any digits +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0b; diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts new file mode 100644 index 0000000000000..f6b7dc0b79882 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Binary-integer-literal-like sequence expressed with unicode escape sequence +info: | + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigit :: one of + 0 1 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u00620; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts new file mode 100644 index 0000000000000..96c7d9d270df2 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts @@ -0,0 +1,32 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: LegacyOctalIntegerLiteral is not enabled in strict mode code +info: | + NumericLiteral :: + DecimalLiteral + BinaryIntegerLiteral + OctalIntegerLiteral + HexIntegerLiteral + LegacyOctalIntegerLiteral + + LegacyOctalIntegerLiteral :: + 0 OctalDigit + LegacyOctalIntegerLiteral OctalDigit + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +00; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts new file mode 100644 index 0000000000000..1f6029969597e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-6-s +description: Strict Mode - octal extension (000) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +000; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts new file mode 100644 index 0000000000000..4f34110677eac --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-7-s +description: Strict Mode - octal extension (005) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +005; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts new file mode 100644 index 0000000000000..2c53e521ca5ca --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-3-s +description: Strict Mode - octal extension (01) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +01; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts new file mode 100644 index 0000000000000..bab4a5ac4eb2e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-1-s +description: Strict Mode - octal extension (010) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +010; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts new file mode 100644 index 0000000000000..bae8dcc42948b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-4-s +description: Strict Mode - octal extension (06) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +06; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts new file mode 100644 index 0000000000000..ad5fdc5cca524 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts @@ -0,0 +1,14 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.3-5-s +description: Strict Mode - octal extension (07) is forbidden in strict mode +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +07; diff --git a/tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts new file mode 100644 index 0000000000000..552f36c0ae71c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts @@ -0,0 +1,38 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-numeric-literals +description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code +info: | + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigits[opt] + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit :: one of + 8 9 + + ## 12.8.3.1 Static Semantics: Early Errors + + NumericLiteral :: LegacyOctalIntegerLiteral + DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral + + - It is a Syntax Error if the source code matching this production is + strict mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +08; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts new file mode 100644 index 0000000000000..babb4345006f8 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts @@ -0,0 +1,17 @@ +// Copyright (C) 2018 Mozilla. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-numeric-literals +description: > + NumericLiteral followed by IdentifierStart +info: | + The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. + +negative: + phase: parse + type: SyntaxError +---*/ + + +3in [] diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts new file mode 100644 index 0000000000000..00025edc222e4 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b_1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts new file mode 100644 index 0000000000000..535c73c86fbda --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0__0 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts new file mode 100644 index 0000000000000..e12e1acc9e7eb --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + BinaryIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + BinaryIntegerLiteral :: + 0b BinaryDigits + 0B BinaryDigits + + BinaryDigits :: + BinaryDigit + BinaryDigits BinaryDigit + BinaryDigits NumericLiteralSeparator BinaryDigit + + BinaryDigit :: one of + 0 1 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0b0_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts new file mode 100644 index 0000000000000..350899cec7068 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1__0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts new file mode 100644 index 0000000000000..3f727d65116b5 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts new file mode 100644 index 0000000000000..066ab7a1bc5c6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10__0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts new file mode 100644 index 0000000000000..667e9bf7b832d --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts @@ -0,0 +1,28 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts new file mode 100644 index 0000000000000..0e79f92dac4e0 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10.0_e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts new file mode 100644 index 0000000000000..7cf8c73e1e6df --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts @@ -0,0 +1,27 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts new file mode 100644 index 0000000000000..ce5f589f9ffd3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts @@ -0,0 +1,30 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts new file mode 100644 index 0000000000000..d745ae0227cc8 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts @@ -0,0 +1,28 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +10._ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts new file mode 100644 index 0000000000000..c0f86826f912c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts @@ -0,0 +1,29 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NumericLiteralSeparator may not appear adjacent to ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +.0_e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts new file mode 100644 index 0000000000000..bf9d8e5246255 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts @@ -0,0 +1,30 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear between `.` and ExponentPart +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + + ExponentIndicator :: one of + e E + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts new file mode 100644 index 0000000000000..da6aeea341d91 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts @@ -0,0 +1,28 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + DecimalLiteral, nor adjacent to `.` +info: | + NumericLiteralSeparator :: + _ + + DecimalLiteral :: + . DecimalDigits ExponentPart_opt + + DecimalDigits :: + ... + DecimalDigits NumericLiteralSeparator DecimalDigit + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +._ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts new file mode 100644 index 0000000000000..c4338fad56b14 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x_1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts new file mode 100644 index 0000000000000..661396c692335 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0__0 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts new file mode 100644 index 0000000000000..52e550019d441 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of a + HexIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + HexIntegerLiteral :: + 0x HexDigits + 0X HexDigits + + HexDigits :: + HexDigit + HexDigits HexDigit + HexDigits NumericLiteralSeparator HexDigit + + HexDigit::one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0x0_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts new file mode 100644 index 0000000000000..b457d5c091855 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts @@ -0,0 +1,40 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +00_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts new file mode 100644 index 0000000000000..4e6de3b40ce52 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts @@ -0,0 +1,40 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +01_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts new file mode 100644 index 0000000000000..220023d5c89f4 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts @@ -0,0 +1,42 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +07_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts new file mode 100644 index 0000000000000..47d017709c5ca --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts @@ -0,0 +1,40 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts new file mode 100644 index 0000000000000..b1cdb931ab0f2 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts @@ -0,0 +1,40 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_1; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts new file mode 100644 index 0000000000000..72ffe3034e995 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts @@ -0,0 +1,41 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) + ) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 + + OctalDigit::one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_7; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts new file mode 100644 index 0000000000000..2fb71eec88bde --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts @@ -0,0 +1,37 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +08_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts new file mode 100644 index 0000000000000..09ec1ff937ab3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts @@ -0,0 +1,37 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +09_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts new file mode 100644 index 0000000000000..6ad113573893a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts @@ -0,0 +1,37 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_8; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts new file mode 100644 index 0000000000000..dcb89fc2b4b4c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts @@ -0,0 +1,37 @@ +// Copyright (C) 2019 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + 0 + NonZeroDigit DecimalDigitsopt + NonZeroDigit + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + NonOctalDecimalIntegerLiteral + + NonOctalDecimalIntegerLiteral :: + 0 NonOctalDigit + LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit + NonOctalDecimalIntegerLiteral DecimalDigit + + LegacyOctalLikeDecimalIntegerLiteral :: + 0 OctalDigit + LegacyOctalLikeDecimalIntegerLiteral OctalDigit + + NonOctalDigit::one of + 8 9 +negative: + phase: parse + type: SyntaxError +features: [numeric-separator-literal] +---*/ + + +0_9; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts new file mode 100644 index 0000000000000..f4210e6e0d525 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts @@ -0,0 +1,28 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in DecimalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0__0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts new file mode 100644 index 0000000000000..d4b7157ca129a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts @@ -0,0 +1,26 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: NonZeroDigit NumericLiteralSeparator DecimalDigits +info: | + NumericLiteralSeparator :: + _ + + DecimalIntegerLiteral :: + ... + NonZeroDigit NumericLiteralSeparator DecimalDigits + + NonZeroDigit :: one of + 1 2 3 4 5 6 7 8 9 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0_0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts new file mode 100644 index 0000000000000..d51ff124cfc60 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not appear adjacent to another + NumericLiteralSeparator in a OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0__0 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts new file mode 100644 index 0000000000000..a657d92768e6b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the last digit character of an + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o0_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts new file mode 100644 index 0000000000000..867ca37ce9e44 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts @@ -0,0 +1,33 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a + OctalIntegerLiteral +info: | + NumericLiteralSeparator :: + _ + + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigits NumericLiteralSeparator OctalDigit + + OctalDigit :: one of + 0 1 2 3 4 5 6 7 + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +0o_1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts new file mode 100644 index 0000000000000..10936c88497c2 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-NumericLiteralSeparator +description: > + NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with + unicode escape sequence +info: | + NumericLiteralSeparator:: + _ + + DecimalIntegerLiteral:: + ... + NonZeroDigit NumericLiteralSeparator_opt DecimalDigits + +negative: + phase: parse + type: SyntaxError + +features: [numeric-separator-literal] +---*/ + + +1\u005F0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts new file mode 100644 index 0000000000000..9e2c7330766f2 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence containing an invalid digit +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o8; diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts new file mode 100644 index 0000000000000..994fdf60b09a4 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence with a leading 0 +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +00o0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts new file mode 100644 index 0000000000000..eed3af2160a08 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence without any digits +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0o; diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts new file mode 100644 index 0000000000000..ffd5bc06eda3c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es6id: 11.8.3 +description: Octal-integer-literal-like sequence expressed with unicode escape sequence +info: | + OctalIntegerLiteral :: + 0o OctalDigits + 0O OctalDigits + OctalDigits :: + OctalDigit + OctalDigits OctalDigit + OctalDigit :: one of + 0 1 2 3 4 5 6 7 +negative: + phase: parse + type: SyntaxError +---*/ + + +0\u006f0; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts new file mode 100644 index 0000000000000..69078db816d70 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionFirstChar +info: | + RegularExpressionChars :: + [empty] + RegularExpressionCharsRegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "*" +negative: + phase: parse + type: SyntaxError +---*/ + + +/*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts new file mode 100644 index 0000000000000..5b46820b4c37b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts @@ -0,0 +1,25 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "\" +negative: + phase: parse + type: SyntaxError +---*/ + + +/\/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts new file mode 100644 index 0000000000000..ae413951fd149 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + +description: > + The first character of a regular expression may not be "/" +negative: + phase: parse + type: SyntaxError +---*/ + + +/// +.source; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts new file mode 100644 index 0000000000000..e9ae52f0b03c3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionLiteral:: + / RegularExpressionBody / RegularExpressionFlags + + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars:: + [empty] + + MemberExpression . IdentifierName + +description: A regular expression may not be empty. +negative: + phase: parse + type: SyntaxError +---*/ + + +// +.source; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts new file mode 100644 index 0000000000000..955189753736e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts @@ -0,0 +1,29 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a (\u000A) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts new file mode 100644 index 0000000000000..d722e1fdec039 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts @@ -0,0 +1,29 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a , (\u000D) +negative: + phase: parse + type: SyntaxError +---*/ + + +/ +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts new file mode 100644 index 0000000000000..61d057a371ffb --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts @@ -0,0 +1,23 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a + +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts new file mode 100644 index 0000000000000..e6cc0353255e2 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A RegularExpressionBackslashSequence may not contain a +negative: + phase: parse + type: SyntaxError +---*/ + + +/\ +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts new file mode 100644 index 0000000000000..55ade9cd3755e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular express may not contain a "\" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts new file mode 100644 index 0000000000000..f1b4640b40712 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionChar +info: | + RegularExpressionChar :: + RegularExpressionNonTerminator but not one of \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a "/" as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a//.source; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts new file mode 100644 index 0000000000000..311223ecdda68 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts @@ -0,0 +1,32 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts new file mode 100644 index 0000000000000..d1b8476c9b350 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts @@ -0,0 +1,33 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-literals-regular-expression-literals +info: | + RegularExpressionChar :: + RegularExpressionBackslashSequence + + + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter + +negative: + phase: parse + type: SyntaxError +---*/ + + +/a +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts new file mode 100644 index 0000000000000..be98260c34edf --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts @@ -0,0 +1,28 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts new file mode 100644 index 0000000000000..7d43e77df2f66 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts @@ -0,0 +1,28 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\ +/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts new file mode 100644 index 0000000000000..defeb2cd14e38 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts @@ -0,0 +1,17 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./G; diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts new file mode 100644 index 0000000000000..66991a14c9cd8 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts @@ -0,0 +1,17 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. + +negative: + phase: parse + type: SyntaxError +---*/ + + +/./gig; diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts new file mode 100644 index 0000000000000..5fc2231f6999e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts @@ -0,0 +1,17 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-regular-expression-literals-static-semantics-early-errors +info: | + RegularExpressionFlags :: + RegularExpressionFlags IdentifierPart + +description: > + It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. +negative: + phase: parse + type: SyntaxError +---*/ + + +/./\u0067; diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts new file mode 100644 index 0000000000000..6fc999a5f2b5a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts @@ -0,0 +1,16 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors +info: | + PrimaryExpression : RegularExpressionLiteral + +description: > + It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. +negative: + phase: parse + type: SyntaxError +---*/ + + +/?/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts new file mode 100644 index 0000000000000..8e1560e567ce6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts @@ -0,0 +1,24 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (exact count) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2}/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts new file mode 100644 index 0000000000000..0456d32b60cc3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts @@ -0,0 +1,24 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (lower-bounds) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,}/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts new file mode 100644 index 0000000000000..7e1e9cd3fcf6b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts @@ -0,0 +1,24 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Braced quantifier in an Atom position (range) +info: | + SyntaxCharacter :: one of + ^$\.*+?()[]{}| + + PatternCharacter :: + SourceCharacter but not SyntaxCharacter + + Although Annex B extends the definition of Term to include + ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier + pattern with a higher precedence. This makes the SyntaxError for such + patterns consistent between Annex-B and non-Annex-B environments. +negative: + phase: parse + type: SyntaxError +---*/ + + +/{2,3}/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts new file mode 100644 index 0000000000000..cacbf08e82564 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts new file mode 100644 index 0000000000000..d531d4778b9eb --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?a)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts new file mode 100644 index 0000000000000..f4af2aafc4cf5 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts new file mode 100644 index 0000000000000..154e9d022687a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts new file mode 100644 index 0000000000000..90b51ed71fb8f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts new file mode 100644 index 0000000000000..a2319c9ba5bec --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts new file mode 100644 index 0000000000000..ba751f6980395 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts new file mode 100644 index 0000000000000..f8985b4f7c4a5 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?x)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts new file mode 100644 index 0000000000000..a3ff1914526ca --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts new file mode 100644 index 0000000000000..334ac1ff07cce --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts new file mode 100644 index 0000000000000..9e1f77bddd2e9 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts @@ -0,0 +1,19 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Group reference must have corresponding group. +info: | + It is a Syntax Error if the enclosing Pattern does not contain a + GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue + equals the StringValue of the RegExpIdentifierName of this production's + GroupName. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts new file mode 100644 index 0000000000000..8828633966481 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts @@ -0,0 +1,18 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts new file mode 100644 index 0000000000000..adb5645e33871 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts @@ -0,0 +1,18 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?b)(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts new file mode 100644 index 0000000000000..12089b87c7a9b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts @@ -0,0 +1,18 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts new file mode 100644 index 0000000000000..5055f3bcf676c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts @@ -0,0 +1,18 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifiers within one alternative must be unique. +info: | + It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s + _x_ and _y_ for which CapturingGroupName(_x_) is the same as + CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. +esid: sec-patterns-static-semantics-early-errors +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts new file mode 100644 index 0000000000000..b737d3bc69161 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts new file mode 100644 index 0000000000000..36e00507dac5f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts new file mode 100644 index 0000000000000..26cc4f439f366 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?\a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts new file mode 100644 index 0000000000000..f4843e4f4f922 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts new file mode 100644 index 0000000000000..ec30112a1cbf4 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k<>/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts new file mode 100644 index 0000000000000..4ed0fc8e1daa6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\ka)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts new file mode 100644 index 0000000000000..5213e74721970 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts new file mode 100644 index 0000000000000..f566be0735628 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts new file mode 100644 index 0000000000000..a8b7b58543d43 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts new file mode 100644 index 0000000000000..fdf498f46173f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k<>/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts new file mode 100644 index 0000000000000..52865ee3e495d --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts new file mode 100644 index 0000000000000..2c596edc521f6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupName is `< RegExpIdentifierName >`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/\k`. +esid: prod-GroupName +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts new file mode 100644 index 0000000000000..b4e6f25941b07 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts new file mode 100644 index 0000000000000..6d24b11b4ff13 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts new file mode 100644 index 0000000000000..fe41abe55a4a2 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<$❁Ea)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts new file mode 100644 index 0000000000000..bf95ffd15a2df --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts new file mode 100644 index 0000000000000..9e23d7454b655 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<𐒤>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts new file mode 100644 index 0000000000000..3c19ae55a4201 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts new file mode 100644 index 0000000000000..2dc275935eec4 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts new file mode 100644 index 0000000000000..85502ae6f012a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts new file mode 100644 index 0000000000000..efb3a66a5c7ee --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts new file mode 100644 index 0000000000000..27477c10962a6 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts new file mode 100644 index 0000000000000..8b7c6f5fbfafd --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts new file mode 100644 index 0000000000000..1c9e0c576ee4f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts new file mode 100644 index 0000000000000..2886ff50adc6f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts new file mode 100644 index 0000000000000..59ca99b3b3d02 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<\>.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts new file mode 100644 index 0000000000000..7b1e6cc6de473 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts new file mode 100644 index 0000000000000..124ed7f403e09 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts new file mode 100644 index 0000000000000..b60a2cbb98560 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<❤>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts new file mode 100644 index 0000000000000..78fc8f902c82e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts new file mode 100644 index 0000000000000..b125cbfa731ed --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<42a>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts new file mode 100644 index 0000000000000..10eb89ea0218e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts new file mode 100644 index 0000000000000..6b04b11322fd9 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?<:a>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts new file mode 100644 index 0000000000000..fa29dcc67977a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts new file mode 100644 index 0000000000000..89d5f4d1ae292 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts new file mode 100644 index 0000000000000..9131978866613 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts @@ -0,0 +1,14 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + + +/(? + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/
/ + +/* +There is a between the two / characters +*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts b/tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts new file mode 100644 index 0000000000000..cecd1b5496388 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts @@ -0,0 +1,32 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + The first character of a regular expression may not be a +negative: + phase: parse + type: SyntaxError +---*/ + + +/
/ + +/* +There is a between the two / characters +*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts b/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts new file mode 100644 index 0000000000000..024da8f37c361 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts @@ -0,0 +1,31 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionBackslashSequence +info: | + RegularExpressionBackslashSequence :: + \ RegularExpressionNonTerminator + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + + LineTerminator :: + + + + + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\
/ + +/* +There is a between "a\\
" and "/" +*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts b/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts new file mode 100644 index 0000000000000..50e3e69e3f9fa --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts @@ -0,0 +1,32 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-RegularExpressionNonTerminator +info: | + RegularExpressionBody :: + RegularExpressionFirstChar RegularExpressionChars + + RegularExpressionChars :: + [empty] + RegularExpressionChars RegularExpressionChar + + RegularExpressionFirstChar :: + RegularExpressionNonTerminator but not one of * or \ or / or [ + + RegularExpressionNonTerminator :: + SourceCharacter but not LineTerminator + +description: > + A regular expression may not contain a as a SourceCharacter +negative: + phase: parse + type: SyntaxError +---*/ + + +/a\\

/ + +/* +There is a between "a\\
" and "/" +*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts new file mode 100644 index 0000000000000..cc628a4caa987 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts @@ -0,0 +1,22 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: > + ClassEscape does not recognize "class control" patterns +info: | + ClassEscape[U] :: + b + [+U] - + CharacterClassEscape + CharacterEscape[?U] + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\c0/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts new file mode 100644 index 0000000000000..1c62aea237012 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes the use of extended pattern characters irrespective + of the presence of Annex B extensions. + + Term[U] :: + [~U] ExtendedAtom +negative: + phase: parse + type: SyntaxError +---*/ + + +/{/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts new file mode 100644 index 0000000000000..27fc2c3812bb5 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts @@ -0,0 +1,21 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Support for UnicodeIDContinue in IdentityEscape +info: | + IdentityEscape[U] :: + [+U] SyntaxCharacter + [+U] / + [~U] SourceCharacter but not UnicodeIDContinue + + The `u` flag precludes the use of characters in UnicodeIDContinue + irrespective of the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\M/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts new file mode 100644 index 0000000000000..97dab7c0b8af8 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts @@ -0,0 +1,24 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-patterns +es6id: 21.2.1 +description: Legacy Octal Escape Sequence not supported with `u` flag +info: | + The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective + of the presence of Annex B extensions. + + CharacterEscape [U] :: + ControlEscape + c ControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\1/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts new file mode 100644 index 0000000000000..0e79980108f92 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts @@ -0,0 +1,31 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("A" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\d-a]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts new file mode 100644 index 0000000000000..fb7429fb12684 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts @@ -0,0 +1,31 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + (both "A" and "B" parameters) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[\s-\d]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts new file mode 100644 index 0000000000000..90b75675c005b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts @@ -0,0 +1,31 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set + ("B" parameter) +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[%-\d]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts new file mode 100644 index 0000000000000..a368d90076950 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts @@ -0,0 +1,30 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: > + NonEmptyClassRangesNoDash production cannot specify a multi-character set +info: | + The production + NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates + as follows: + + 1. Evaluate ClassAtomNoDash to obtain a CharSet A. + 2. Evaluate ClassAtom to obtain a CharSet B. + 3. Evaluate ClassRanges to obtain a CharSet C. + 4. Call CharacterRange(A, B) and let D be the resulting CharSet. + + 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation + + 1. If A does not contain exactly one character or B does not contain + exactly one character, throw a SyntaxError exception. + + The `u` flag precludes the Annex B extension that enables this pattern. +negative: + phase: parse + type: SyntaxError +---*/ + + +/[--\d]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts new file mode 100644 index 0000000000000..af69d7c2244e4 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-pattern-semantics +es6id: 21.2.2 +description: Out-of-bounds decimal escapes +info: | + 1. Evaluate DecimalEscape to obtain an integer n. + 2. If n>NcapturingParens, throw a SyntaxError exception. + + When the "unicode" flag is set, this algorithm is honored irrespective of + the presence of Annex B extensions. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\8/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts new file mode 100644 index 0000000000000..756c59c177f01 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?=.)?/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts new file mode 100644 index 0000000000000..f421452a86fcb --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?<=.)?/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts new file mode 100644 index 0000000000000..0a06cc3d9fa17 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +es6id: B.1.4 +description: Quantifiable assertions disallowed with `u` flag +info: | + The `u` flag precludes quantifiable assertions (even when Annex B is + honored) + + Term[U] :: + [~U] QuantifiableAssertion Quantifier +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(?!.)?/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts new file mode 100644 index 0000000000000..30a673c53f2bc --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts @@ -0,0 +1,19 @@ +// Copyright (C) 2018 Igalia S. L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-regular-expressions-patterns +description: Lookbehinds are not treated as a QuantifiableAssertion +info: | + Term[U] :: + [~U] QuantifiableAssertion Quantifier + + QuantifiableAssertion[N]:: + ( ? = Disjunction[~U, ?N] ) + ( ? ! Disjunction[~U, ?N] ) +negative: + phase: parse + type: SyntaxError +---*/ + + +/.(? 1114111. +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{110000}/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts b/tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts new file mode 100644 index 0000000000000..e7b87722e1b5e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts @@ -0,0 +1,14 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence +es6id: 21.2.1 +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1,}/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts b/tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts new file mode 100644 index 0000000000000..625b2758676b1 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts @@ -0,0 +1,72 @@ +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-Pattern +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence +info: | + Pattern[U, N]:: + Disjunction[?U, ?N] + + Disjunction[U, N]:: + Alternative[?U, ?N] + Alternative[?U, ?N]|Disjunction[?U, ?N] + + Alternative[U, N]:: + [empty] + Alternative[?U, ?N]Term[?U, ?N] + + Term[U, N]:: + Assertion[?U, ?N] + Atom[?U, ?N] + Atom[?U, ?N]Quantifier + + Atom[U, N]:: + PatternCharacter + . + \AtomEscape[?U, ?N] + CharacterClass[?U] + (GroupSpecifier[?U]Disjunction[?U, ?N]) + (?:Disjunction[?U, ?N]) + + AtomEscape[U, N]:: + DecimalEscape + CharacterClassEscape[?U] + CharacterEscape[?U] + [+N]kGroupName[?U] + + CharacterEscape[U]:: + ControlEscape + cControlLetter + 0[lookahead ∁EDecimalDigit] + HexEscapeSequence + RegExpUnicodeEscapeSequence[?U] + IdentityEscape[?U] + + RegExpUnicodeEscapeSequence[U]:: + [+U]uLeadSurrogate\uTrailSurrogate + [+U]uLeadSurrogate + [+U]uTrailSurrogate + [+U]uNonSurrogate + [~U]uHex4Digits + [+U]u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +/\u{1F_639}/u; diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts new file mode 100644 index 0000000000000..5a35d6e61541a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts @@ -0,0 +1,17 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T1 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +""" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts new file mode 100644 index 0000000000000..5bcd82f7b639b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts @@ -0,0 +1,18 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"DoubleStringCharacters_opt\"" +es5id: 7.8.4_A1.1_T2 +description: > + DoubleStringCharacter :: SourceCharacter but not double-quote " or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +" +" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts new file mode 100644 index 0000000000000..713174706de33 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts @@ -0,0 +1,17 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T1 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +''' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts new file mode 100644 index 0000000000000..730f9e7004047 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts @@ -0,0 +1,18 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: 'SingleStringCharacters_opt'" +es5id: 7.8.4_A1.2_T2 +description: > + SingleStringCharacter :: SourceCharacter but not single-quote ' or + LineTerminator +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +' +' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts new file mode 100644 index 0000000000000..272984b75faab --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T1 +description: Checking if execution of "\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts new file mode 100644 index 0000000000000..e4e3ac15d9036 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\" or '\\' is not correct" +es5id: 7.8.4_A3.1_T2 +description: Checking if execution of "'\'" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts new file mode 100644 index 0000000000000..0278fbf401003 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T1 +description: Checking if execution of "\\\" fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\\\" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts new file mode 100644 index 0000000000000..0aa395e921fe1 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" +es5id: 7.8.4_A3.2_T2 +description: Checking if execution of '\\\' fails +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +'\\\' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts new file mode 100644 index 0000000000000..49db7a6f8736d --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T1 +description: "EscapeCharacter :: DecimalDigits :: 1" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\1" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts new file mode 100644 index 0000000000000..299d9c1033cb9 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: NonEscapeSequence is not EscapeCharacter +es5id: 7.8.4_A4.3_T2 +description: "EscapeCharacter :: DecimalDigits :: 7" +negative: + phase: parse + type: SyntaxError +flags: [onlyStrict] +---*/ + + +"\7" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts new file mode 100644 index 0000000000000..e7d68c5e0f626 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts @@ -0,0 +1,17 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: | + EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +es5id: 7.8.4_A7.1_T4 +description: "UnicodeEscapeSequence :: u000G is incorrect" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK# +"\u000G" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts new file mode 100644 index 0000000000000..0fcea4f61944f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T1 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u1" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts new file mode 100644 index 0000000000000..f751bb14bc258 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T2 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uA" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts new file mode 100644 index 0000000000000..b5886053adc5a --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T3 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u11" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts new file mode 100644 index 0000000000000..10b06c6a22c98 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T4 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAA" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts new file mode 100644 index 0000000000000..9f061b62581ec --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T5 +description: ":: HexDigit :: 1" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\u111" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts new file mode 100644 index 0000000000000..29d7490455122 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" +es5id: 7.8.4_A7.2_T6 +description: ":: HexDigit :: A" +negative: + phase: parse + type: SyntaxError +---*/ + + +//CHECK#1 +"\uAAA" diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..ea83c4ce1e4b5 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 1 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\1"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..fa5253a47da6e --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 2 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\2"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..226f98b328282 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; ZeroToThree 3 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + ZeroToThree::one of + 0 1 2 3 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\3"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..6adbede01925f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 4 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\4"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..8de2f2108c72f --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 5 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\5"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..0e0f8aa41cb3b --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 6 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\6"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..e44fa5b90611c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; FourToSeven 7 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + FourToSeven::one of + 4 5 6 7 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\7"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..d2714e1255687 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\8"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts new file mode 100644 index 0000000000000..aa6d975564961 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts @@ -0,0 +1,30 @@ +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\8'; diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts new file mode 100644 index 0000000000000..54ff7dbd6fa76 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts @@ -0,0 +1,25 @@ +// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: > + String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 +info: | + It is possible for string literals to precede a Use Strict Directive that places the enclosing + code in strict mode, and implementations must take care to not use this extended definition of + EscapeSequence with such literals. For example, attempting to parse the following source text + must fail. + + Strict mode is entered via the explicit Use Strict Directive. + + NonOctalDecimalEscapeSequence::one of + 8 9 + +flags: [noStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +function invalid() { "\9"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts new file mode 100644 index 0000000000000..5d7ba4bb85609 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts @@ -0,0 +1,30 @@ +// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-literals-string-literals +description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 +info: | + EscapeSequence :: + CharacterEscapeSequence + LegacyOctalEscapeSequence + NonOctalDecimalEscapeSequence + HexEscapeSequence + UnicodeEscapeSequence + + NonOctalDecimalEscapeSequence :: one of + 8 9 + + ## 12.8.4.1 Static Semantics: Early Errors + + EscapeSequence :: NonOctalDecimalEscapeSequence + + - It is a Syntax Error if the source code matching this production is strict + mode code. +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\9'; diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts new file mode 100644 index 0000000000000..fbad784d69cff --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts @@ -0,0 +1,26 @@ +// Copyright (C) 2017 Kevin Gibbons. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\08'; diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts new file mode 100644 index 0000000000000..b0c32c5360627 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts @@ -0,0 +1,18 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 7.8.4-1-s +description: > + A directive preceding an 'use strict' directive may not contain + an OctalEscapeSequence +negative: + phase: parse + type: SyntaxError +---*/ + + +(function() { + "asterisk: \052"; + "use strict"; +}); diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts new file mode 100644 index 0000000000000..a3b5ec733195c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts @@ -0,0 +1,26 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-template-literal-lexical-components +description: LegacyOctalEscapeSequence is not available in template literals +info: | + TemplateCharacter :: + $ [lookahead ≠ {] + \ TemplateEscapeSequence + \ NotEscapeSequence + LineContinuation + LineTerminatorSequence + SourceCharacter but not one of ` or \ or $ or LineTerminator + TemplateEscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence +flags: [onlyStrict] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\1'; diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts new file mode 100644 index 0000000000000..caed8287e412c --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts @@ -0,0 +1,48 @@ +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + DoubleStringCharacters:: + DoubleStringCharacter DoubleStringCharacters opt + + DoubleStringCharacter:: + SourceCharacter but not one of " or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u{1F_639}" diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts new file mode 100644 index 0000000000000..b43ad79b29cbe --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts @@ -0,0 +1,48 @@ +// Copyright (C) 2017 Valerie Young. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) +info: | + StringLiteral:: + "DoubleStringCharacters opt" + 'SingleStringCharacters opt' + + SingleStringCharacters:: + SingleStringCharacterSingleStringCharactersopt + + SingleStringCharacter:: + SourceCharacterbut not one of ' or \ or LineTerminator + \ EscapeSequence + LineContinuation + + EscapeSequence:: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + uHex4Digits + u{CodePoint} + + CodePoint :: + HexDigit but only if MV of HexDigits ≤ 0x10FFFF + CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF + + CodePointDigits :: + HexDigit + CodePointDigitsHexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +features: [numeric-separator-literal] +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u{1F_639}'; diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts new file mode 100644 index 0000000000000..dee44abd81f60 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts @@ -0,0 +1,45 @@ +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + DoubleStringCharacters :: + DoubleStringCharacter DoubleStringCharacters_opt + + DoubleStringCharacter :: + SourceCharacter but not one of " or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +"\u" diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts new file mode 100644 index 0000000000000..d35cf4dc379e3 --- /dev/null +++ b/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts @@ -0,0 +1,45 @@ +// Copyright (C) 2020 Alexey Shvayka. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: prod-StringLiteral +description: > + \u is at the end of string, Hex4Digits is required. +info: | + StringLiteral :: + " DoubleStringCharacters_opt " + ' SingleStringCharacters_opt ' + + SingleStringCharacters :: + SingleStringCharacter SingleStringCharacters_opt + + SingleStringCharacter :: + SourceCharacter but not one of ' or \ or LineTerminator + + + \ EscapeSequence + LineContinuation + + EscapeSequence :: + CharacterEscapeSequence + 0 [lookahead ∁EDecimalDigit] + HexEscapeSequence + UnicodeEscapeSequence + + UnicodeEscapeSequence :: + u Hex4Digits + u{ CodePoint } + + Hex4Digits :: + HexDigit HexDigit HexDigit HexDigit + + HexDigit :: one of + 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F + +negative: + phase: parse + type: SyntaxError +---*/ + + +'\u' From 1a5228d20452db775930201826fe8b46409a1097 Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Sat, 2 Sep 2023 03:09:59 +0800 Subject: [PATCH 03/10] Provide Spelling Suggestions for Unicode Property Value Expressions --- src/compiler/core.ts | 2 +- src/compiler/parser.ts | 10 ++++++++-- src/compiler/scanner.ts | 13 ++++++++++++ ...pertyValueExpressionSuggestions.errors.txt | 20 +++++++++++++++++++ ...icodePropertyValueExpressionSuggestions.js | 8 ++++++++ ...PropertyValueExpressionSuggestions.symbols | 6 ++++++ ...dePropertyValueExpressionSuggestions.types | 7 +++++++ ...icodePropertyValueExpressionSuggestions.ts | 1 + 8 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.js create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.symbols create mode 100644 tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.types create mode 100644 tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 21eae040ba922..c65ed24656aee 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -2322,7 +2322,7 @@ export function compareBooleans(a: boolean, b: boolean): Comparison { * * @internal */ -export function getSpellingSuggestion(name: string, candidates: T[], getName: (candidate: T) => string | undefined): T | undefined { +export function getSpellingSuggestion(name: string, candidates: Iterable, getName: (candidate: T) => string | undefined): T | undefined { const maximumLengthDifference = Math.max(2, Math.floor(name.length * 0.34)); let bestDistance = Math.floor(name.length * 0.4) + 1; // If the best result is worse than this, don't bother. let bestCandidate: T | undefined; diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 6b900302c96df..d696191fe1864 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -64,6 +64,7 @@ import { DeleteExpression, Diagnostic, DiagnosticArguments, + DiagnosticCategory, DiagnosticMessage, Diagnostics, DiagnosticWithDetachedLocation, @@ -115,6 +116,7 @@ import { HasModifiers, HeritageClause, Identifier, + identity, idText, IfStatement, ImportClause, @@ -2114,7 +2116,11 @@ namespace Parser { // Don't report another error if it would just be at the same position as the last error. const lastError = lastOrUndefined(parseDiagnostics); let result: DiagnosticWithDetachedLocation | undefined; - if (!lastError || start !== lastError.start) { + if (message.category === DiagnosticCategory.Message && lastError && start === lastError.start && length === lastError.length) { + result = createDetachedDiagnostic(fileName, sourceText, start, length, message, ...args); + addRelatedInfo(lastError, result); + } + else if (!lastError || start !== lastError.start) { result = createDetachedDiagnostic(fileName, sourceText, start, length, message, ...args); parseDiagnostics.push(result); } @@ -2370,7 +2376,7 @@ namespace Parser { } // The user alternatively might have misspelled or forgotten to add a space after a common keyword. - const suggestion = getSpellingSuggestion(expressionText, viableKeywordSuggestions, n => n) ?? getSpaceSuggestion(expressionText); + const suggestion = getSpellingSuggestion(expressionText, viableKeywordSuggestions, identity) ?? getSpaceSuggestion(expressionText); if (suggestion) { parseErrorAt(pos, node.end, Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, suggestion); return; diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 35d50a89161f7..c83c78909d090 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -12,6 +12,7 @@ import { DiagnosticMessage, Diagnostics, forEach, + getSpellingSuggestion, identity, JSDocSyntaxKind, JsxTokenSyntaxKind, @@ -3302,6 +3303,10 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } else if (propertyName === undefined) { error(Diagnostics.Unknown_Unicode_property_name, propertyNameOrValueStart, pos - propertyNameOrValueStart); + const suggestion = getSpellingSuggestion(propertyNameOrValue, nonBinaryUnicodeProperties.keys(), identity); + if (suggestion) { + error(Diagnostics.Did_you_mean_0, propertyNameOrValueStart, pos - propertyNameOrValueStart, suggestion); + } } pos++; const propertyValueStart = pos; @@ -3311,6 +3316,10 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } else if (propertyName !== undefined && !valuesOfNonBinaryUnicodeProperties[propertyName].has(propertyValue)) { error(Diagnostics.Unknown_Unicode_property_value, propertyValueStart, pos - propertyValueStart); + const suggestion = getSpellingSuggestion(propertyValue, valuesOfNonBinaryUnicodeProperties[propertyName], identity); + if (suggestion) { + error(Diagnostics.Did_you_mean_0, propertyValueStart, pos - propertyValueStart, suggestion); + } } } else { @@ -3330,6 +3339,10 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } else if (!valuesOfNonBinaryUnicodeProperties.General_Category.has(propertyNameOrValue) && !binaryUnicodeProperties.has(propertyNameOrValue)) { error(Diagnostics.Unknown_Unicode_property_name_or_value, propertyNameOrValueStart, pos - propertyNameOrValueStart); + const suggestion = getSpellingSuggestion(propertyNameOrValue, [...valuesOfNonBinaryUnicodeProperties.General_Category, ...binaryUnicodeProperties, ...binaryUnicodePropertiesOfStrings], identity); + if (suggestion) { + error(Diagnostics.Did_you_mean_0, propertyNameOrValueStart, pos - propertyNameOrValueStart, suggestion); + } } } scanExpectedChar(CharacterCodes.closeBrace); diff --git a/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt new file mode 100644 index 0000000000000..3e7b6909e83db --- /dev/null +++ b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt @@ -0,0 +1,20 @@ +regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,19): error TS1527: Unknown Unicode property name or value. +regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,28): error TS1522: Unknown Unicode property name. +regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,45): error TS1524: Unknown Unicode property value. +regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,55): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + + +==== regularExpressionUnicodePropertyValueExpressionSuggestions.ts (4 errors) ==== + const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; + ~~~~~ +!!! error TS1527: Unknown Unicode property name or value. +!!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:19: Did you mean 'ASCII'? + ~~ +!!! error TS1522: Unknown Unicode property name. +!!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:28: Did you mean 'sc'? + ~~~~~~~~ +!!! error TS1524: Unknown Unicode property value. +!!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:45: Did you mean 'Unknown'? + ~ +!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. + \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.js b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.js new file mode 100644 index 0000000000000..3e134fc01b56e --- /dev/null +++ b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.js @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// + +//// [regularExpressionUnicodePropertyValueExpressionSuggestions.ts] +const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; + + +//// [regularExpressionUnicodePropertyValueExpressionSuggestions.js] +var regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; diff --git a/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.symbols b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.symbols new file mode 100644 index 0000000000000..c2d1297689992 --- /dev/null +++ b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.symbols @@ -0,0 +1,6 @@ +//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// + +=== regularExpressionUnicodePropertyValueExpressionSuggestions.ts === +const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; +>regex : Symbol(regex, Decl(regularExpressionUnicodePropertyValueExpressionSuggestions.ts, 0, 5)) + diff --git a/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.types b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.types new file mode 100644 index 0000000000000..bf79211722c5c --- /dev/null +++ b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.types @@ -0,0 +1,7 @@ +//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// + +=== regularExpressionUnicodePropertyValueExpressionSuggestions.ts === +const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; +>regex : RegExp +>/\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u : RegExp + diff --git a/tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts b/tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts new file mode 100644 index 0000000000000..4fe1bef352d38 --- /dev/null +++ b/tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts @@ -0,0 +1 @@ +const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; From 43ae136607051f7ddfc7931e40f6d36a533dd8d9 Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Sat, 2 Sep 2023 04:21:52 +0800 Subject: [PATCH 04/10] Fix Self-check --- src/services/stringCompletions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index 76326ad5ed9f9..71d921fee173f 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -1227,7 +1227,7 @@ function isPathRelativeToScript(path: string) { * * /// Date: Tue, 31 Oct 2023 16:30:18 +0800 Subject: [PATCH 05/10] Revert "Add More Test Cases from test262" This reverts commit fefcf29bdc9ce403c357c107e286cad38b357ccc. --- .../baselines/reference/7.8.3-1gs.errors.txt | 21 --- tests/baselines/reference/7.8.3-1gs.js | 31 ---- tests/baselines/reference/7.8.3-1gs.symbols | 19 --- tests/baselines/reference/7.8.3-1gs.types | 20 --- .../baselines/reference/7.8.3-2gs.errors.txt | 25 --- tests/baselines/reference/7.8.3-2gs.js | 39 ----- tests/baselines/reference/7.8.3-2gs.symbols | 27 ---- tests/baselines/reference/7.8.3-2gs.types | 31 ---- .../reference/S7.8.3_A6.1_T1.errors.txt | 22 --- tests/baselines/reference/S7.8.3_A6.1_T1.js | 33 ---- .../reference/S7.8.3_A6.1_T1.symbols | 20 --- .../baselines/reference/S7.8.3_A6.1_T1.types | 20 --- .../reference/S7.8.3_A6.1_T2.errors.txt | 22 --- tests/baselines/reference/S7.8.3_A6.1_T2.js | 33 ---- .../reference/S7.8.3_A6.1_T2.symbols | 20 --- .../baselines/reference/S7.8.3_A6.1_T2.types | 20 --- .../reference/S7.8.3_A6.2_T1.errors.txt | 25 --- tests/baselines/reference/S7.8.3_A6.2_T1.js | 34 ---- .../reference/S7.8.3_A6.2_T1.symbols | 20 --- .../baselines/reference/S7.8.3_A6.2_T1.types | 21 --- .../reference/S7.8.3_A6.2_T2.errors.txt | 25 --- tests/baselines/reference/S7.8.3_A6.2_T2.js | 34 ---- .../reference/S7.8.3_A6.2_T2.symbols | 20 --- .../baselines/reference/S7.8.3_A6.2_T2.types | 21 --- .../reference/S7.8.4_A1.1_T1.errors.txt | 27 ---- tests/baselines/reference/S7.8.4_A1.1_T1.js | 38 ----- .../reference/S7.8.4_A1.1_T1.symbols | 22 --- .../baselines/reference/S7.8.4_A1.1_T1.types | 23 --- .../reference/S7.8.4_A1.1_T2.errors.txt | 28 ---- tests/baselines/reference/S7.8.4_A1.1_T2.js | 39 ----- .../reference/S7.8.4_A1.1_T2.symbols | 23 --- .../baselines/reference/S7.8.4_A1.1_T2.types | 25 --- .../reference/S7.8.4_A1.2_T1.errors.txt | 27 ---- tests/baselines/reference/S7.8.4_A1.2_T1.js | 38 ----- .../reference/S7.8.4_A1.2_T1.symbols | 22 --- .../baselines/reference/S7.8.4_A1.2_T1.types | 23 --- .../reference/S7.8.4_A1.2_T2.errors.txt | 28 ---- tests/baselines/reference/S7.8.4_A1.2_T2.js | 39 ----- .../reference/S7.8.4_A1.2_T2.symbols | 23 --- .../baselines/reference/S7.8.4_A1.2_T2.types | 25 --- .../reference/S7.8.4_A3.1_T1.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A3.1_T1.js | 33 ---- .../reference/S7.8.4_A3.1_T1.symbols | 20 --- .../baselines/reference/S7.8.4_A3.1_T1.types | 20 --- .../reference/S7.8.4_A3.1_T2.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A3.1_T2.js | 33 ---- .../reference/S7.8.4_A3.1_T2.symbols | 20 --- .../baselines/reference/S7.8.4_A3.1_T2.types | 20 --- .../reference/S7.8.4_A3.2_T1.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A3.2_T1.js | 33 ---- .../reference/S7.8.4_A3.2_T1.symbols | 20 --- .../baselines/reference/S7.8.4_A3.2_T1.types | 20 --- .../reference/S7.8.4_A3.2_T2.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A3.2_T2.js | 33 ---- .../reference/S7.8.4_A3.2_T2.symbols | 20 --- .../baselines/reference/S7.8.4_A3.2_T2.types | 20 --- .../reference/S7.8.4_A4.3_T1.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A4.3_T1.js | 33 ---- .../reference/S7.8.4_A4.3_T1.symbols | 20 --- .../baselines/reference/S7.8.4_A4.3_T1.types | 20 --- .../reference/S7.8.4_A4.3_T2.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A4.3_T2.js | 33 ---- .../reference/S7.8.4_A4.3_T2.symbols | 20 --- .../baselines/reference/S7.8.4_A4.3_T2.types | 20 --- .../reference/S7.8.4_A7.1_T4.errors.txt | 24 --- tests/baselines/reference/S7.8.4_A7.1_T4.js | 37 ----- .../reference/S7.8.4_A7.1_T4.symbols | 22 --- .../baselines/reference/S7.8.4_A7.1_T4.types | 22 --- .../reference/S7.8.4_A7.2_T1.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A7.2_T1.js | 33 ---- .../reference/S7.8.4_A7.2_T1.symbols | 20 --- .../baselines/reference/S7.8.4_A7.2_T1.types | 20 --- .../reference/S7.8.4_A7.2_T2.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A7.2_T2.js | 33 ---- .../reference/S7.8.4_A7.2_T2.symbols | 20 --- .../baselines/reference/S7.8.4_A7.2_T2.types | 20 --- .../reference/S7.8.4_A7.2_T3.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A7.2_T3.js | 33 ---- .../reference/S7.8.4_A7.2_T3.symbols | 20 --- .../baselines/reference/S7.8.4_A7.2_T3.types | 20 --- .../reference/S7.8.4_A7.2_T4.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A7.2_T4.js | 33 ---- .../reference/S7.8.4_A7.2_T4.symbols | 20 --- .../baselines/reference/S7.8.4_A7.2_T4.types | 20 --- .../reference/S7.8.4_A7.2_T5.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A7.2_T5.js | 33 ---- .../reference/S7.8.4_A7.2_T5.symbols | 20 --- .../baselines/reference/S7.8.4_A7.2_T5.types | 20 --- .../reference/S7.8.4_A7.2_T6.errors.txt | 22 --- tests/baselines/reference/S7.8.4_A7.2_T6.js | 33 ---- .../reference/S7.8.4_A7.2_T6.symbols | 20 --- .../baselines/reference/S7.8.4_A7.2_T6.types | 20 --- .../reference/S7.8.5_A1.2_T1.errors.txt | 29 ---- tests/baselines/reference/S7.8.5_A1.2_T1.js | 48 ------ .../reference/S7.8.5_A1.2_T1.symbols | 27 ---- .../baselines/reference/S7.8.5_A1.2_T1.types | 27 ---- .../reference/S7.8.5_A1.2_T2.errors.txt | 32 ---- tests/baselines/reference/S7.8.5_A1.2_T2.js | 53 ------- .../reference/S7.8.5_A1.2_T2.symbols | 30 ---- .../baselines/reference/S7.8.5_A1.2_T2.types | 30 ---- .../reference/S7.8.5_A1.2_T3.errors.txt | 36 ----- tests/baselines/reference/S7.8.5_A1.2_T3.js | 35 ----- .../reference/S7.8.5_A1.2_T3.symbols | 31 ---- .../baselines/reference/S7.8.5_A1.2_T3.types | 31 ---- .../reference/S7.8.5_A1.2_T4.errors.txt | 36 ----- tests/baselines/reference/S7.8.5_A1.2_T4.js | 35 ----- .../reference/S7.8.5_A1.2_T4.symbols | 31 ---- .../baselines/reference/S7.8.5_A1.2_T4.types | 31 ---- .../reference/S7.8.5_A1.3_T1.errors.txt | 42 ----- tests/baselines/reference/S7.8.5_A1.3_T1.js | 62 -------- .../reference/S7.8.5_A1.3_T1.symbols | 34 ---- .../baselines/reference/S7.8.5_A1.3_T1.types | 38 ----- .../reference/S7.8.5_A1.3_T3.errors.txt | 42 ----- tests/baselines/reference/S7.8.5_A1.3_T3.js | 62 -------- .../reference/S7.8.5_A1.3_T3.symbols | 34 ---- .../baselines/reference/S7.8.5_A1.3_T3.types | 38 ----- .../reference/S7.8.5_A1.5_T1.errors.txt | 36 ----- tests/baselines/reference/S7.8.5_A1.5_T1.js | 50 ------ .../reference/S7.8.5_A1.5_T1.symbols | 28 ---- .../baselines/reference/S7.8.5_A1.5_T1.types | 32 ---- .../reference/S7.8.5_A1.5_T3.errors.txt | 35 ----- tests/baselines/reference/S7.8.5_A1.5_T3.js | 48 ------ .../reference/S7.8.5_A1.5_T3.symbols | 27 ---- .../baselines/reference/S7.8.5_A1.5_T3.types | 31 ---- .../reference/S7.8.5_A2.2_T1.errors.txt | 29 ---- tests/baselines/reference/S7.8.5_A2.2_T1.js | 47 ------ .../reference/S7.8.5_A2.2_T1.symbols | 27 ---- .../baselines/reference/S7.8.5_A2.2_T1.types | 27 ---- .../reference/S7.8.5_A2.2_T2.errors.txt | 32 ---- tests/baselines/reference/S7.8.5_A2.2_T2.js | 47 ------ .../reference/S7.8.5_A2.2_T2.symbols | 27 ---- .../baselines/reference/S7.8.5_A2.2_T2.types | 31 ---- .../reference/S7.8.5_A2.3_T1.errors.txt | 45 ------ tests/baselines/reference/S7.8.5_A2.3_T1.js | 68 -------- .../reference/S7.8.5_A2.3_T1.symbols | 37 ----- .../baselines/reference/S7.8.5_A2.3_T1.types | 41 ----- .../reference/S7.8.5_A2.3_T3.errors.txt | 46 ------ tests/baselines/reference/S7.8.5_A2.3_T3.js | 70 --------- .../reference/S7.8.5_A2.3_T3.symbols | 38 ----- .../baselines/reference/S7.8.5_A2.3_T3.types | 42 ----- .../reference/S7.8.5_A2.5_T1.errors.txt | 44 ------ tests/baselines/reference/S7.8.5_A2.5_T1.js | 60 ------- .../reference/S7.8.5_A2.5_T1.symbols | 33 ---- .../baselines/reference/S7.8.5_A2.5_T1.types | 37 ----- .../reference/S7.8.5_A2.5_T3.errors.txt | 44 ------ tests/baselines/reference/S7.8.5_A2.5_T3.js | 60 ------- .../reference/S7.8.5_A2.5_T3.symbols | 33 ---- .../baselines/reference/S7.8.5_A2.5_T3.types | 37 ----- .../bigint-binary-invalid-digit.errors.txt | 32 ---- .../reference/bigint-binary-invalid-digit.js | 54 ------- .../bigint-binary-invalid-digit.symbols | 30 ---- .../bigint-binary-invalid-digit.types | 31 ---- ...rator-literal-bil-bd-nsl-bd-err.errors.txt | 50 ------ ...ric-separator-literal-bil-bd-nsl-bd-err.js | 89 ----------- ...eparator-literal-bil-bd-nsl-bd-err.symbols | 48 ------ ...-separator-literal-bil-bd-nsl-bd-err.types | 48 ------ ...r-literal-bil-nsl-bd-dunder-err.errors.txt | 50 ------ ...separator-literal-bil-nsl-bd-dunder-err.js | 89 ----------- ...ator-literal-bil-nsl-bd-dunder-err.symbols | 48 ------ ...arator-literal-bil-nsl-bd-dunder-err.types | 48 ------ ...eparator-literal-bil-nsl-bd-err.errors.txt | 49 ------ ...umeric-separator-literal-bil-nsl-bd-err.js | 87 ----------- ...c-separator-literal-bil-nsl-bd-err.symbols | 47 ------ ...ric-separator-literal-bil-nsl-bd-err.types | 47 ------ ...r-literal-dd-nsl-dds-dunder-err.errors.txt | 42 ----- ...separator-literal-dd-nsl-dds-dunder-err.js | 73 --------- ...ator-literal-dd-nsl-dds-dunder-err.symbols | 40 ----- ...arator-literal-dd-nsl-dds-dunder-err.types | 40 ----- ...ic-separator-literal-dd-nsl-err.errors.txt | 44 ------ ...nt-numeric-separator-literal-dd-nsl-err.js | 77 --------- ...meric-separator-literal-dd-nsl-err.symbols | 42 ----- ...numeric-separator-literal-dd-nsl-err.types | 42 ----- ...-literal-dds-nsl-dds-dunder-err.errors.txt | 42 ----- ...eparator-literal-dds-nsl-dds-dunder-err.js | 73 --------- ...tor-literal-dds-nsl-dds-dunder-err.symbols | 40 ----- ...rator-literal-dds-nsl-dds-dunder-err.types | 40 ----- ...c-separator-literal-dds-nsl-err.errors.txt | 45 ------ ...t-numeric-separator-literal-dds-nsl-err.js | 79 ---------- ...eric-separator-literal-dds-nsl-err.symbols | 43 ----- ...umeric-separator-literal-dds-nsl-err.types | 43 ----- ...rator-literal-hil-hd-nsl-hd-err.errors.txt | 50 ------ ...ric-separator-literal-hil-hd-nsl-hd-err.js | 89 ----------- ...eparator-literal-hil-hd-nsl-hd-err.symbols | 48 ------ ...-separator-literal-hil-hd-nsl-hd-err.types | 48 ------ ...r-literal-hil-nsl-hd-dunder-err.errors.txt | 50 ------ ...separator-literal-hil-nsl-hd-dunder-err.js | 89 ----------- ...ator-literal-hil-nsl-hd-dunder-err.symbols | 48 ------ ...arator-literal-hil-nsl-hd-dunder-err.types | 48 ------ ...eparator-literal-hil-nsl-hd-err.errors.txt | 50 ------ ...umeric-separator-literal-hil-nsl-hd-err.js | 89 ----------- ...c-separator-literal-hil-nsl-hd-err.symbols | 48 ------ ...ric-separator-literal-hil-nsl-hd-err.types | 48 ------ ...ic-separator-literal-lol-00-err.errors.txt | 64 -------- ...nt-numeric-separator-literal-lol-00-err.js | 106 ------------- ...meric-separator-literal-lol-00-err.symbols | 56 ------- ...numeric-separator-literal-lol-00-err.types | 57 ------- ...ic-separator-literal-lol-01-err.errors.txt | 64 -------- ...nt-numeric-separator-literal-lol-01-err.js | 106 ------------- ...meric-separator-literal-lol-01-err.symbols | 56 ------- ...numeric-separator-literal-lol-01-err.types | 57 ------- ...ic-separator-literal-lol-07-err.errors.txt | 66 -------- ...nt-numeric-separator-literal-lol-07-err.js | 110 ------------- ...meric-separator-literal-lol-07-err.symbols | 58 ------- ...numeric-separator-literal-lol-07-err.types | 59 ------- ...c-separator-literal-lol-0_0-err.errors.txt | 58 ------- ...t-numeric-separator-literal-lol-0_0-err.js | 105 ------------- ...eric-separator-literal-lol-0_0-err.symbols | 56 ------- ...umeric-separator-literal-lol-0_0-err.types | 56 ------- ...c-separator-literal-lol-0_1-err.errors.txt | 58 ------- ...t-numeric-separator-literal-lol-0_1-err.js | 105 ------------- ...eric-separator-literal-lol-0_1-err.symbols | 56 ------- ...umeric-separator-literal-lol-0_1-err.types | 56 ------- ...c-separator-literal-lol-0_7-err.errors.txt | 59 ------- ...t-numeric-separator-literal-lol-0_7-err.js | 107 ------------- ...eric-separator-literal-lol-0_7-err.symbols | 57 ------- ...umeric-separator-literal-lol-0_7-err.types | 57 ------- ...parator-literal-nonoctal-08-err.errors.txt | 61 -------- ...meric-separator-literal-nonoctal-08-err.js | 100 ------------ ...-separator-literal-nonoctal-08-err.symbols | 53 ------- ...ic-separator-literal-nonoctal-08-err.types | 54 ------- ...parator-literal-nonoctal-09-err.errors.txt | 61 -------- ...meric-separator-literal-nonoctal-09-err.js | 100 ------------ ...-separator-literal-nonoctal-09-err.symbols | 53 ------- ...ic-separator-literal-nonoctal-09-err.types | 54 ------- ...arator-literal-nonoctal-0_8-err.errors.txt | 55 ------- ...eric-separator-literal-nonoctal-0_8-err.js | 99 ------------ ...separator-literal-nonoctal-0_8-err.symbols | 53 ------- ...c-separator-literal-nonoctal-0_8-err.types | 53 ------- ...arator-literal-nonoctal-0_9-err.errors.txt | 55 ------- ...eric-separator-literal-nonoctal-0_9-err.js | 99 ------------ ...separator-literal-nonoctal-0_9-err.symbols | 53 ------- ...c-separator-literal-nonoctal-0_9-err.types | 53 ------- ...-literal-nzd-nsl-dds-dunder-err.errors.txt | 48 ------ ...eparator-literal-nzd-nsl-dds-dunder-err.js | 79 ---------- ...tor-literal-nzd-nsl-dds-dunder-err.symbols | 43 ----- ...rator-literal-nzd-nsl-dds-dunder-err.types | 43 ----- ...al-nzd-nsl-dds-leading-zero-err.errors.txt | 43 ----- ...or-literal-nzd-nsl-dds-leading-zero-err.js | 75 --------- ...teral-nzd-nsl-dds-leading-zero-err.symbols | 41 ----- ...literal-nzd-nsl-dds-leading-zero-err.types | 41 ----- ...r-literal-oil-nsl-od-dunder-err.errors.txt | 50 ------ ...separator-literal-oil-nsl-od-dunder-err.js | 89 ----------- ...ator-literal-oil-nsl-od-dunder-err.symbols | 48 ------ ...arator-literal-oil-nsl-od-dunder-err.types | 48 ------ ...eparator-literal-oil-nsl-od-err.errors.txt | 50 ------ ...umeric-separator-literal-oil-nsl-od-err.js | 89 ----------- ...c-separator-literal-oil-nsl-od-err.symbols | 48 ------ ...ric-separator-literal-oil-nsl-od-err.types | 48 ------ ...rator-literal-oil-od-nsl-od-err.errors.txt | 50 ------ ...ric-separator-literal-oil-od-nsl-od-err.js | 89 ----------- ...eparator-literal-oil-od-nsl-od-err.symbols | 48 ------ ...-separator-literal-oil-od-nsl-od-err.types | 48 ------ ...c-separator-literal-unicode-err.errors.txt | 45 ------ ...t-numeric-separator-literal-unicode-err.js | 74 --------- ...eric-separator-literal-unicode-err.symbols | 40 ----- ...umeric-separator-literal-unicode-err.types | 41 ----- .../bigint-octal-invalid-digit.errors.txt | 32 ---- .../reference/bigint-octal-invalid-digit.js | 54 ------- .../bigint-octal-invalid-digit.symbols | 30 ---- .../bigint-octal-invalid-digit.types | 31 ---- .../reference/binary-invalid-digit.errors.txt | 29 ---- .../reference/binary-invalid-digit.js | 48 ------ .../reference/binary-invalid-digit.symbols | 27 ---- .../reference/binary-invalid-digit.types | 28 ---- .../binary-invalid-leading.errors.txt | 35 ----- .../reference/binary-invalid-leading.js | 48 ------ .../reference/binary-invalid-leading.symbols | 27 ---- .../reference/binary-invalid-leading.types | 28 ---- .../binary-invalid-truncated.errors.txt | 29 ---- .../reference/binary-invalid-truncated.js | 47 ------ .../binary-invalid-truncated.symbols | 27 ---- .../reference/binary-invalid-truncated.types | 27 ---- .../binary-invalid-unicode.errors.txt | 32 ---- .../reference/binary-invalid-unicode.js | 48 ------ .../reference/binary-invalid-unicode.symbols | 27 ---- .../reference/binary-invalid-unicode.types | 28 ---- .../reference/early-err-bad-flag.errors.txt | 24 --- .../baselines/reference/early-err-bad-flag.js | 38 ----- .../reference/early-err-bad-flag.symbols | 22 --- .../reference/early-err-bad-flag.types | 22 --- .../reference/early-err-dup-flag.errors.txt | 24 --- .../baselines/reference/early-err-dup-flag.js | 38 ----- .../reference/early-err-dup-flag.symbols | 22 --- .../reference/early-err-dup-flag.types | 22 --- .../early-err-flags-unicode-escape.errors.txt | 27 ---- .../early-err-flags-unicode-escape.js | 39 ----- .../early-err-flags-unicode-escape.symbols | 22 --- .../early-err-flags-unicode-escape.types | 23 --- .../reference/early-err-pattern.errors.txt | 23 --- .../baselines/reference/early-err-pattern.js | 36 ----- .../reference/early-err-pattern.symbols | 21 --- .../reference/early-err-pattern.types | 21 --- .../reference/exponent-part.errors.txt | 22 --- tests/baselines/reference/exponent-part.js | 33 ---- .../baselines/reference/exponent-part.symbols | 20 --- tests/baselines/reference/exponent-part.types | 20 --- .../hexadecimal-invalid-digit.errors.txt | 35 ----- .../reference/hexadecimal-invalid-digit.js | 54 ------- .../hexadecimal-invalid-digit.symbols | 30 ---- .../reference/hexadecimal-invalid-digit.types | 31 ---- ...invalid-braced-quantifier-exact.errors.txt | 31 ---- .../invalid-braced-quantifier-exact.js | 52 ------- .../invalid-braced-quantifier-exact.symbols | 29 ---- .../invalid-braced-quantifier-exact.types | 29 ---- ...invalid-braced-quantifier-lower.errors.txt | 31 ---- .../invalid-braced-quantifier-lower.js | 52 ------- .../invalid-braced-quantifier-lower.symbols | 29 ---- .../invalid-braced-quantifier-lower.types | 29 ---- ...invalid-braced-quantifier-range.errors.txt | 31 ---- .../invalid-braced-quantifier-range.js | 52 ------- .../invalid-braced-quantifier-range.symbols | 29 ---- .../invalid-braced-quantifier-range.types | 29 ---- .../invalid-dangling-groupname-2-u.errors.txt | 32 ---- .../invalid-dangling-groupname-2-u.js | 41 ----- .../invalid-dangling-groupname-2-u.symbols | 24 --- .../invalid-dangling-groupname-2-u.types | 24 --- .../invalid-dangling-groupname-2.errors.txt | 29 ---- .../reference/invalid-dangling-groupname-2.js | 41 ----- .../invalid-dangling-groupname-2.symbols | 24 --- .../invalid-dangling-groupname-2.types | 24 --- .../invalid-dangling-groupname-3-u.errors.txt | 32 ---- .../invalid-dangling-groupname-3-u.js | 41 ----- .../invalid-dangling-groupname-3-u.symbols | 24 --- .../invalid-dangling-groupname-3-u.types | 24 --- .../invalid-dangling-groupname-3.errors.txt | 29 ---- .../reference/invalid-dangling-groupname-3.js | 41 ----- .../invalid-dangling-groupname-3.symbols | 24 --- .../invalid-dangling-groupname-3.types | 24 --- .../invalid-dangling-groupname-4-u.errors.txt | 32 ---- .../invalid-dangling-groupname-4-u.js | 41 ----- .../invalid-dangling-groupname-4-u.symbols | 24 --- .../invalid-dangling-groupname-4-u.types | 24 --- .../invalid-dangling-groupname-4.errors.txt | 29 ---- .../reference/invalid-dangling-groupname-4.js | 41 ----- .../invalid-dangling-groupname-4.symbols | 24 --- .../invalid-dangling-groupname-4.types | 24 --- .../invalid-dangling-groupname-5.errors.txt | 29 ---- .../reference/invalid-dangling-groupname-5.js | 41 ----- .../invalid-dangling-groupname-5.symbols | 24 --- .../invalid-dangling-groupname-5.types | 24 --- .../invalid-dangling-groupname-u.errors.txt | 32 ---- .../reference/invalid-dangling-groupname-u.js | 41 ----- .../invalid-dangling-groupname-u.symbols | 24 --- .../invalid-dangling-groupname-u.types | 24 --- ...gling-groupname-without-group-u.errors.txt | 29 ---- ...alid-dangling-groupname-without-group-u.js | 41 ----- ...dangling-groupname-without-group-u.symbols | 24 --- ...d-dangling-groupname-without-group-u.types | 24 --- .../invalid-dangling-groupname.errors.txt | 29 ---- .../reference/invalid-dangling-groupname.js | 41 ----- .../invalid-dangling-groupname.symbols | 24 --- .../invalid-dangling-groupname.types | 24 --- ...id-duplicate-groupspecifier-2-u.errors.txt | 37 ----- .../invalid-duplicate-groupspecifier-2-u.js | 39 ----- ...valid-duplicate-groupspecifier-2-u.symbols | 23 --- ...invalid-duplicate-groupspecifier-2-u.types | 23 --- ...alid-duplicate-groupspecifier-2.errors.txt | 34 ---- .../invalid-duplicate-groupspecifier-2.js | 39 ----- ...invalid-duplicate-groupspecifier-2.symbols | 23 --- .../invalid-duplicate-groupspecifier-2.types | 23 --- ...alid-duplicate-groupspecifier-u.errors.txt | 34 ---- .../invalid-duplicate-groupspecifier-u.js | 39 ----- ...invalid-duplicate-groupspecifier-u.symbols | 23 --- .../invalid-duplicate-groupspecifier-u.types | 23 --- ...nvalid-duplicate-groupspecifier.errors.txt | 31 ---- .../invalid-duplicate-groupspecifier.js | 39 ----- .../invalid-duplicate-groupspecifier.symbols | 23 --- .../invalid-duplicate-groupspecifier.types | 23 --- .../invalid-empty-groupspecifier-u.errors.txt | 27 ---- .../invalid-empty-groupspecifier-u.js | 31 ---- .../invalid-empty-groupspecifier-u.symbols | 19 --- .../invalid-empty-groupspecifier-u.types | 19 --- .../invalid-empty-groupspecifier.errors.txt | 24 --- .../reference/invalid-empty-groupspecifier.js | 31 ---- .../invalid-empty-groupspecifier.symbols | 19 --- .../invalid-empty-groupspecifier.types | 19 --- ...id-identity-escape-in-capture-u.errors.txt | 27 ---- .../invalid-identity-escape-in-capture-u.js | 31 ---- ...valid-identity-escape-in-capture-u.symbols | 19 --- ...invalid-identity-escape-in-capture-u.types | 19 --- ...nvalid-incomplete-groupname-2-u.errors.txt | 27 ---- .../invalid-incomplete-groupname-2-u.js | 31 ---- .../invalid-incomplete-groupname-2-u.symbols | 19 --- .../invalid-incomplete-groupname-2-u.types | 19 --- .../invalid-incomplete-groupname-2.errors.txt | 24 --- .../invalid-incomplete-groupname-2.js | 31 ---- .../invalid-incomplete-groupname-2.symbols | 19 --- .../invalid-incomplete-groupname-2.types | 19 --- ...nvalid-incomplete-groupname-3-u.errors.txt | 27 ---- .../invalid-incomplete-groupname-3-u.js | 31 ---- .../invalid-incomplete-groupname-3-u.symbols | 19 --- .../invalid-incomplete-groupname-3-u.types | 19 --- .../invalid-incomplete-groupname-3.errors.txt | 24 --- .../invalid-incomplete-groupname-3.js | 31 ---- .../invalid-incomplete-groupname-3.symbols | 19 --- .../invalid-incomplete-groupname-3.types | 19 --- .../invalid-incomplete-groupname-4.errors.txt | 24 --- .../invalid-incomplete-groupname-4.js | 31 ---- .../invalid-incomplete-groupname-4.symbols | 19 --- .../invalid-incomplete-groupname-4.types | 19 --- .../invalid-incomplete-groupname-5.errors.txt | 24 --- .../invalid-incomplete-groupname-5.js | 31 ---- .../invalid-incomplete-groupname-5.symbols | 19 --- .../invalid-incomplete-groupname-5.types | 19 --- .../invalid-incomplete-groupname-6.errors.txt | 21 --- .../invalid-incomplete-groupname-6.js | 31 ---- .../invalid-incomplete-groupname-6.symbols | 19 --- .../invalid-incomplete-groupname-6.types | 19 --- .../invalid-incomplete-groupname-u.errors.txt | 27 ---- .../invalid-incomplete-groupname-u.js | 31 ---- .../invalid-incomplete-groupname-u.symbols | 19 --- .../invalid-incomplete-groupname-u.types | 19 --- ...ete-groupname-without-group-2-u.errors.txt | 24 --- ...-incomplete-groupname-without-group-2-u.js | 31 ---- ...mplete-groupname-without-group-2-u.symbols | 19 --- ...complete-groupname-without-group-2-u.types | 19 --- ...ete-groupname-without-group-3-u.errors.txt | 24 --- ...-incomplete-groupname-without-group-3-u.js | 31 ---- ...mplete-groupname-without-group-3-u.symbols | 19 --- ...complete-groupname-without-group-3-u.types | 19 --- ...plete-groupname-without-group-u.errors.txt | 27 ---- ...id-incomplete-groupname-without-group-u.js | 31 ---- ...complete-groupname-without-group-u.symbols | 19 --- ...incomplete-groupname-without-group-u.types | 19 --- .../invalid-incomplete-groupname.errors.txt | 21 --- .../reference/invalid-incomplete-groupname.js | 31 ---- .../invalid-incomplete-groupname.symbols | 19 --- .../invalid-incomplete-groupname.types | 19 --- ...-id-continue-groupspecifier-4-u.errors.txt | 30 ---- ...alid-non-id-continue-groupspecifier-4-u.js | 31 ---- ...non-id-continue-groupspecifier-4-u.symbols | 19 --- ...d-non-id-continue-groupspecifier-4-u.types | 19 --- ...on-id-continue-groupspecifier-4.errors.txt | 24 --- ...nvalid-non-id-continue-groupspecifier-4.js | 31 ---- ...d-non-id-continue-groupspecifier-4.symbols | 19 --- ...lid-non-id-continue-groupspecifier-4.types | 19 --- ...-non-id-continue-groupspecifier.errors.txt | 24 --- .../invalid-non-id-continue-groupspecifier.js | 31 ---- ...lid-non-id-continue-groupspecifier.symbols | 19 --- ...valid-non-id-continue-groupspecifier.types | 19 --- ...non-id-start-groupspecifier-2-u.errors.txt | 27 ---- ...invalid-non-id-start-groupspecifier-2-u.js | 31 ---- ...id-non-id-start-groupspecifier-2-u.symbols | 19 --- ...alid-non-id-start-groupspecifier-2-u.types | 19 --- ...d-non-id-start-groupspecifier-2.errors.txt | 24 --- .../invalid-non-id-start-groupspecifier-2.js | 31 ---- ...alid-non-id-start-groupspecifier-2.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-2.types | 19 --- ...d-non-id-start-groupspecifier-3.errors.txt | 24 --- .../invalid-non-id-start-groupspecifier-3.js | 31 ---- ...alid-non-id-start-groupspecifier-3.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-3.types | 19 --- ...non-id-start-groupspecifier-4-u.errors.txt | 27 ---- ...invalid-non-id-start-groupspecifier-4-u.js | 31 ---- ...id-non-id-start-groupspecifier-4-u.symbols | 19 --- ...alid-non-id-start-groupspecifier-4-u.types | 19 --- ...d-non-id-start-groupspecifier-4.errors.txt | 24 --- .../invalid-non-id-start-groupspecifier-4.js | 31 ---- ...alid-non-id-start-groupspecifier-4.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-4.types | 19 --- ...non-id-start-groupspecifier-5-u.errors.txt | 27 ---- ...invalid-non-id-start-groupspecifier-5-u.js | 31 ---- ...id-non-id-start-groupspecifier-5-u.symbols | 19 --- ...alid-non-id-start-groupspecifier-5-u.types | 19 --- ...d-non-id-start-groupspecifier-5.errors.txt | 24 --- .../invalid-non-id-start-groupspecifier-5.js | 31 ---- ...alid-non-id-start-groupspecifier-5.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-5.types | 19 --- ...d-non-id-start-groupspecifier-6.errors.txt | 30 ---- .../invalid-non-id-start-groupspecifier-6.js | 31 ---- ...alid-non-id-start-groupspecifier-6.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-6.types | 19 --- ...d-non-id-start-groupspecifier-7.errors.txt | 30 ---- .../invalid-non-id-start-groupspecifier-7.js | 31 ---- ...alid-non-id-start-groupspecifier-7.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-7.types | 19 --- ...non-id-start-groupspecifier-8-u.errors.txt | 30 ---- ...invalid-non-id-start-groupspecifier-8-u.js | 31 ---- ...id-non-id-start-groupspecifier-8-u.symbols | 19 --- ...alid-non-id-start-groupspecifier-8-u.types | 19 --- ...d-non-id-start-groupspecifier-8.errors.txt | 24 --- .../invalid-non-id-start-groupspecifier-8.js | 31 ---- ...alid-non-id-start-groupspecifier-8.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-8.types | 19 --- ...non-id-start-groupspecifier-9-u.errors.txt | 30 ---- ...invalid-non-id-start-groupspecifier-9-u.js | 31 ---- ...id-non-id-start-groupspecifier-9-u.symbols | 19 --- ...alid-non-id-start-groupspecifier-9-u.types | 19 --- ...d-non-id-start-groupspecifier-u.errors.txt | 27 ---- .../invalid-non-id-start-groupspecifier-u.js | 31 ---- ...alid-non-id-start-groupspecifier-u.symbols | 19 --- ...nvalid-non-id-start-groupspecifier-u.types | 19 --- ...lid-non-id-start-groupspecifier.errors.txt | 24 --- .../invalid-non-id-start-groupspecifier.js | 31 ---- ...nvalid-non-id-start-groupspecifier.symbols | 19 --- .../invalid-non-id-start-groupspecifier.types | 19 --- ...nvalid-numeric-groupspecifier-u.errors.txt | 27 ---- .../invalid-numeric-groupspecifier-u.js | 31 ---- .../invalid-numeric-groupspecifier-u.symbols | 19 --- .../invalid-numeric-groupspecifier-u.types | 19 --- .../invalid-numeric-groupspecifier.errors.txt | 24 --- .../invalid-numeric-groupspecifier.js | 31 ---- .../invalid-numeric-groupspecifier.symbols | 19 --- .../invalid-numeric-groupspecifier.types | 19 --- .../invalid-optional-lookbehind.errors.txt | 26 ---- .../reference/invalid-optional-lookbehind.js | 42 ----- .../invalid-optional-lookbehind.symbols | 24 --- .../invalid-optional-lookbehind.types | 24 --- ...id-optional-negative-lookbehind.errors.txt | 26 ---- .../invalid-optional-negative-lookbehind.js | 42 ----- ...valid-optional-negative-lookbehind.symbols | 24 --- ...invalid-optional-negative-lookbehind.types | 24 --- ...uator-starting-groupspecifier-u.errors.txt | 27 ---- ...id-punctuator-starting-groupspecifier-u.js | 31 ---- ...nctuator-starting-groupspecifier-u.symbols | 19 --- ...punctuator-starting-groupspecifier-u.types | 19 --- ...ctuator-starting-groupspecifier.errors.txt | 24 --- ...alid-punctuator-starting-groupspecifier.js | 31 ---- ...punctuator-starting-groupspecifier.symbols | 19 --- ...d-punctuator-starting-groupspecifier.types | 19 --- ...ctuator-within-groupspecifier-u.errors.txt | 27 ---- ...alid-punctuator-within-groupspecifier-u.js | 31 ---- ...punctuator-within-groupspecifier-u.symbols | 19 --- ...d-punctuator-within-groupspecifier-u.types | 19 --- ...unctuator-within-groupspecifier.errors.txt | 24 --- ...nvalid-punctuator-within-groupspecifier.js | 31 ---- ...d-punctuator-within-groupspecifier.symbols | 19 --- ...lid-punctuator-within-groupspecifier.types | 19 --- .../invalid-range-lookbehind.errors.txt | 26 ---- .../reference/invalid-range-lookbehind.js | 42 ----- .../invalid-range-lookbehind.symbols | 24 --- .../reference/invalid-range-lookbehind.types | 24 --- ...valid-range-negative-lookbehind.errors.txt | 26 ---- .../invalid-range-negative-lookbehind.js | 42 ----- .../invalid-range-negative-lookbehind.symbols | 24 --- .../invalid-range-negative-lookbehind.types | 24 --- ...d-unterminated-groupspecifier-u.errors.txt | 27 ---- .../invalid-unterminated-groupspecifier-u.js | 31 ---- ...alid-unterminated-groupspecifier-u.symbols | 19 --- ...nvalid-unterminated-groupspecifier-u.types | 19 --- ...lid-unterminated-groupspecifier.errors.txt | 24 --- .../invalid-unterminated-groupspecifier.js | 31 ---- ...nvalid-unterminated-groupspecifier.symbols | 19 --- .../invalid-unterminated-groupspecifier.types | 19 --- ...quence-1-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-1-strict-explicit-pragma.js | 57 ------- ...-sequence-1-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-1-strict-explicit-pragma.types | 32 ---- ...quence-2-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-2-strict-explicit-pragma.js | 57 ------- ...-sequence-2-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-2-strict-explicit-pragma.types | 32 ---- ...quence-3-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-3-strict-explicit-pragma.js | 57 ------- ...-sequence-3-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-3-strict-explicit-pragma.types | 32 ---- ...quence-4-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-4-strict-explicit-pragma.js | 57 ------- ...-sequence-4-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-4-strict-explicit-pragma.types | 32 ---- ...quence-5-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-5-strict-explicit-pragma.js | 57 ------- ...-sequence-5-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-5-strict-explicit-pragma.types | 32 ---- ...quence-6-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-6-strict-explicit-pragma.js | 57 ------- ...-sequence-6-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-6-strict-explicit-pragma.types | 32 ---- ...quence-7-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-7-strict-explicit-pragma.js | 57 ------- ...-sequence-7-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-7-strict-explicit-pragma.types | 32 ---- ...quence-8-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-8-strict-explicit-pragma.js | 57 ------- ...-sequence-8-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-8-strict-explicit-pragma.types | 32 ---- ...-octal-escape-sequence-8-strict.errors.txt | 37 ----- ...gacy-non-octal-escape-sequence-8-strict.js | 64 -------- ...non-octal-escape-sequence-8-strict.symbols | 35 ----- ...y-non-octal-escape-sequence-8-strict.types | 35 ----- ...quence-9-strict-explicit-pragma.errors.txt | 32 ---- ...scape-sequence-9-strict-explicit-pragma.js | 57 ------- ...-sequence-9-strict-explicit-pragma.symbols | 30 ---- ...pe-sequence-9-strict-explicit-pragma.types | 32 ---- ...-octal-escape-sequence-9-strict.errors.txt | 37 ----- ...gacy-non-octal-escape-sequence-9-strict.js | 64 -------- ...non-octal-escape-sequence-9-strict.symbols | 35 ----- ...y-non-octal-escape-sequence-9-strict.types | 35 ----- ...on-octal-escape-sequence-strict.errors.txt | 33 ---- ...legacy-non-octal-escape-sequence-strict.js | 56 ------- ...y-non-octal-escape-sequence-strict.symbols | 31 ---- ...acy-non-octal-escape-sequence-strict.types | 31 ---- ...escape-sequence-prologue-strict.errors.txt | 25 --- ...y-octal-escape-sequence-prologue-strict.js | 39 ----- ...al-escape-sequence-prologue-strict.symbols | 23 --- ...ctal-escape-sequence-prologue-strict.types | 29 ---- ...cy-octal-escape-sequence-strict.errors.txt | 33 ---- .../legacy-octal-escape-sequence-strict.js | 56 ------- ...egacy-octal-escape-sequence-strict.symbols | 31 ---- .../legacy-octal-escape-sequence-strict.types | 31 ---- .../legacy-octal-integer-strict.errors.txt | 39 ----- .../reference/legacy-octal-integer-strict.js | 68 -------- .../legacy-octal-integer-strict.symbols | 37 ----- .../legacy-octal-integer-strict.types | 37 ----- ...egacy-octal-integery-000-strict.errors.txt | 21 --- .../legacy-octal-integery-000-strict.js | 31 ---- .../legacy-octal-integery-000-strict.symbols | 19 --- .../legacy-octal-integery-000-strict.types | 19 --- ...egacy-octal-integery-005-strict.errors.txt | 21 --- .../legacy-octal-integery-005-strict.js | 31 ---- .../legacy-octal-integery-005-strict.symbols | 19 --- .../legacy-octal-integery-005-strict.types | 19 --- ...legacy-octal-integery-01-strict.errors.txt | 21 --- .../legacy-octal-integery-01-strict.js | 31 ---- .../legacy-octal-integery-01-strict.symbols | 19 --- .../legacy-octal-integery-01-strict.types | 19 --- ...egacy-octal-integery-010-strict.errors.txt | 21 --- .../legacy-octal-integery-010-strict.js | 31 ---- .../legacy-octal-integery-010-strict.symbols | 19 --- .../legacy-octal-integery-010-strict.types | 19 --- ...legacy-octal-integery-06-strict.errors.txt | 21 --- .../legacy-octal-integery-06-strict.js | 31 ---- .../legacy-octal-integery-06-strict.symbols | 19 --- .../legacy-octal-integery-06-strict.types | 19 --- ...legacy-octal-integery-07-strict.errors.txt | 21 --- .../legacy-octal-integery-07-strict.js | 31 ---- .../legacy-octal-integery-07-strict.symbols | 19 --- .../legacy-octal-integery-07-strict.types | 19 --- .../legacy-octal-like-invalid-00n.errors.txt | 40 ----- .../legacy-octal-like-invalid-00n.js | 58 ------- .../legacy-octal-like-invalid-00n.symbols | 32 ---- .../legacy-octal-like-invalid-00n.types | 33 ---- .../legacy-octal-like-invalid-01n.errors.txt | 40 ----- .../legacy-octal-like-invalid-01n.js | 58 ------- .../legacy-octal-like-invalid-01n.symbols | 32 ---- .../legacy-octal-like-invalid-01n.types | 33 ---- .../legacy-octal-like-invalid-07n.errors.txt | 40 ----- .../legacy-octal-like-invalid-07n.js | 58 ------- .../legacy-octal-like-invalid-07n.symbols | 32 ---- .../legacy-octal-like-invalid-07n.types | 33 ---- .../mv-is-not-integer-dil-dot-dds.errors.txt | 33 ---- .../mv-is-not-integer-dil-dot-dds.js | 55 ------- .../mv-is-not-integer-dil-dot-dds.symbols | 31 ---- .../mv-is-not-integer-dil-dot-dds.types | 31 ---- .../mv-is-not-integer-dot-dds.errors.txt | 33 ---- .../reference/mv-is-not-integer-dot-dds.js | 55 ------- .../mv-is-not-integer-dot-dds.symbols | 31 ---- .../reference/mv-is-not-integer-dot-dds.types | 31 ---- ...on-octal-decimal-integer-strict.errors.txt | 45 ------ .../non-octal-decimal-integer-strict.js | 80 ---------- .../non-octal-decimal-integer-strict.symbols | 43 ----- .../non-octal-decimal-integer-strict.types | 43 ----- .../non-octal-like-invalid-0008n.errors.txt | 40 ----- .../reference/non-octal-like-invalid-0008n.js | 58 ------- .../non-octal-like-invalid-0008n.symbols | 32 ---- .../non-octal-like-invalid-0008n.types | 33 ---- .../non-octal-like-invalid-012348n.errors.txt | 40 ----- .../non-octal-like-invalid-012348n.js | 58 ------- .../non-octal-like-invalid-012348n.symbols | 32 ---- .../non-octal-like-invalid-012348n.types | 33 ---- .../non-octal-like-invalid-08n.errors.txt | 40 ----- .../reference/non-octal-like-invalid-08n.js | 58 ------- .../non-octal-like-invalid-08n.symbols | 32 ---- .../non-octal-like-invalid-08n.types | 33 ---- .../non-octal-like-invalid-09n.errors.txt | 40 ----- .../reference/non-octal-like-invalid-09n.js | 58 ------- .../non-octal-like-invalid-09n.symbols | 32 ---- .../non-octal-like-invalid-09n.types | 33 ---- .../numeric-followed-by-ident.errors.txt | 24 --- .../reference/numeric-followed-by-ident.js | 37 ----- .../numeric-followed-by-ident.symbols | 22 --- .../reference/numeric-followed-by-ident.types | 24 --- ...rator-literal-bil-bd-nsl-bd-err.errors.txt | 40 ----- ...ric-separator-literal-bil-bd-nsl-bd-err.js | 69 -------- ...eparator-literal-bil-bd-nsl-bd-err.symbols | 38 ----- ...-separator-literal-bil-bd-nsl-bd-err.types | 38 ----- ...r-literal-bil-nsl-bd-dunder-err.errors.txt | 40 ----- ...separator-literal-bil-nsl-bd-dunder-err.js | 69 -------- ...ator-literal-bil-nsl-bd-dunder-err.symbols | 38 ----- ...arator-literal-bil-nsl-bd-dunder-err.types | 38 ----- ...eparator-literal-bil-nsl-bd-err.errors.txt | 40 ----- ...umeric-separator-literal-bil-nsl-bd-err.js | 69 -------- ...c-separator-literal-bil-nsl-bd-err.symbols | 38 ----- ...ric-separator-literal-bil-nsl-bd-err.types | 38 ----- ...r-literal-dd-nsl-dds-dunder-err.errors.txt | 32 ---- ...separator-literal-dd-nsl-dds-dunder-err.js | 53 ------- ...ator-literal-dd-nsl-dds-dunder-err.symbols | 30 ---- ...arator-literal-dd-nsl-dds-dunder-err.types | 30 ---- ...ic-separator-literal-dd-nsl-err.errors.txt | 34 ---- .../numeric-separator-literal-dd-nsl-err.js | 57 ------- ...meric-separator-literal-dd-nsl-err.symbols | 32 ---- ...numeric-separator-literal-dd-nsl-err.types | 32 ---- ...-literal-dds-nsl-dds-dunder-err.errors.txt | 32 ---- ...eparator-literal-dds-nsl-dds-dunder-err.js | 53 ------- ...tor-literal-dds-nsl-dds-dunder-err.symbols | 30 ---- ...rator-literal-dds-nsl-dds-dunder-err.types | 30 ---- ...c-separator-literal-dds-nsl-err.errors.txt | 35 ----- .../numeric-separator-literal-dds-nsl-err.js | 59 ------- ...eric-separator-literal-dds-nsl-err.symbols | 33 ---- ...umeric-separator-literal-dds-nsl-err.types | 33 ---- ...teral-dil-dot-dds-nsl-ep-dd-err.errors.txt | 34 ---- ...rator-literal-dil-dot-dds-nsl-ep-dd-err.js | 57 ------- ...-literal-dil-dot-dds-nsl-ep-dd-err.symbols | 32 ---- ...or-literal-dil-dot-dds-nsl-ep-dd-err.types | 32 ---- ...ator-literal-dil-dot-nsl-dd-err.errors.txt | 34 ---- ...ic-separator-literal-dil-dot-nsl-dd-err.js | 57 ------- ...parator-literal-dil-dot-nsl-dd-err.symbols | 32 ---- ...separator-literal-dil-dot-nsl-dd-err.types | 32 ---- ...ator-literal-dil-dot-nsl-ep-err.errors.txt | 37 ----- ...ic-separator-literal-dil-dot-nsl-ep-err.js | 63 -------- ...parator-literal-dil-dot-nsl-ep-err.symbols | 35 ----- ...separator-literal-dil-dot-nsl-ep-err.types | 35 ----- ...parator-literal-dil-dot-nsl-err.errors.txt | 35 ----- ...meric-separator-literal-dil-dot-nsl-err.js | 59 ------- ...-separator-literal-dil-dot-nsl-err.symbols | 33 ---- ...ic-separator-literal-dil-dot-nsl-err.types | 33 ---- ...ator-literal-dot-dds-nsl-ep-err.errors.txt | 36 ----- ...ic-separator-literal-dot-dds-nsl-ep-err.js | 61 -------- ...parator-literal-dot-dds-nsl-ep-err.symbols | 34 ---- ...separator-literal-dot-dds-nsl-ep-err.types | 34 ---- ...eparator-literal-dot-nsl-ep-err.errors.txt | 40 ----- ...umeric-separator-literal-dot-nsl-ep-err.js | 39 ----- ...c-separator-literal-dot-nsl-ep-err.symbols | 35 ----- ...ric-separator-literal-dot-nsl-ep-err.types | 35 ----- ...c-separator-literal-dot-nsl-err.errors.txt | 38 ----- .../numeric-separator-literal-dot-nsl-err.js | 37 ----- ...eric-separator-literal-dot-nsl-err.symbols | 33 ---- ...umeric-separator-literal-dot-nsl-err.types | 33 ---- ...rator-literal-hil-hd-nsl-hd-err.errors.txt | 40 ----- ...ric-separator-literal-hil-hd-nsl-hd-err.js | 69 -------- ...eparator-literal-hil-hd-nsl-hd-err.symbols | 38 ----- ...-separator-literal-hil-hd-nsl-hd-err.types | 38 ----- ...r-literal-hil-nsl-hd-dunder-err.errors.txt | 40 ----- ...separator-literal-hil-nsl-hd-dunder-err.js | 69 -------- ...ator-literal-hil-nsl-hd-dunder-err.symbols | 38 ----- ...arator-literal-hil-nsl-hd-dunder-err.types | 38 ----- ...eparator-literal-hil-nsl-hd-err.errors.txt | 40 ----- ...umeric-separator-literal-hil-nsl-hd-err.js | 69 -------- ...c-separator-literal-hil-nsl-hd-err.symbols | 38 ----- ...ric-separator-literal-hil-nsl-hd-err.types | 38 ----- ...ic-separator-literal-lol-00-err.errors.txt | 53 ------- .../numeric-separator-literal-lol-00-err.js | 84 ---------- ...meric-separator-literal-lol-00-err.symbols | 45 ------ ...numeric-separator-literal-lol-00-err.types | 46 ------ ...ic-separator-literal-lol-01-err.errors.txt | 53 ------- .../numeric-separator-literal-lol-01-err.js | 84 ---------- ...meric-separator-literal-lol-01-err.symbols | 45 ------ ...numeric-separator-literal-lol-01-err.types | 46 ------ ...ic-separator-literal-lol-07-err.errors.txt | 55 ------- .../numeric-separator-literal-lol-07-err.js | 88 ----------- ...meric-separator-literal-lol-07-err.symbols | 47 ------ ...numeric-separator-literal-lol-07-err.types | 48 ------ ...c-separator-literal-lol-0_0-err.errors.txt | 47 ------ .../numeric-separator-literal-lol-0_0-err.js | 83 ---------- ...eric-separator-literal-lol-0_0-err.symbols | 45 ------ ...umeric-separator-literal-lol-0_0-err.types | 45 ------ ...c-separator-literal-lol-0_1-err.errors.txt | 47 ------ .../numeric-separator-literal-lol-0_1-err.js | 83 ---------- ...eric-separator-literal-lol-0_1-err.symbols | 45 ------ ...umeric-separator-literal-lol-0_1-err.types | 45 ------ ...c-separator-literal-lol-0_7-err.errors.txt | 48 ------ .../numeric-separator-literal-lol-0_7-err.js | 85 ---------- ...eric-separator-literal-lol-0_7-err.symbols | 46 ------ ...umeric-separator-literal-lol-0_7-err.types | 46 ------ ...parator-literal-nonoctal-08-err.errors.txt | 50 ------ ...meric-separator-literal-nonoctal-08-err.js | 78 ---------- ...-separator-literal-nonoctal-08-err.symbols | 42 ----- ...ic-separator-literal-nonoctal-08-err.types | 43 ----- ...parator-literal-nonoctal-09-err.errors.txt | 50 ------ ...meric-separator-literal-nonoctal-09-err.js | 78 ---------- ...-separator-literal-nonoctal-09-err.symbols | 42 ----- ...ic-separator-literal-nonoctal-09-err.types | 43 ----- ...arator-literal-nonoctal-0_8-err.errors.txt | 44 ------ ...eric-separator-literal-nonoctal-0_8-err.js | 77 --------- ...separator-literal-nonoctal-0_8-err.symbols | 42 ----- ...c-separator-literal-nonoctal-0_8-err.types | 42 ----- ...arator-literal-nonoctal-0_9-err.errors.txt | 44 ------ ...eric-separator-literal-nonoctal-0_9-err.js | 77 --------- ...separator-literal-nonoctal-0_9-err.symbols | 42 ----- ...c-separator-literal-nonoctal-0_9-err.types | 42 ----- ...-literal-nzd-nsl-dds-dunder-err.errors.txt | 38 ----- ...eparator-literal-nzd-nsl-dds-dunder-err.js | 59 ------- ...tor-literal-nzd-nsl-dds-dunder-err.symbols | 33 ---- ...rator-literal-nzd-nsl-dds-dunder-err.types | 33 ---- ...al-nzd-nsl-dds-leading-zero-err.errors.txt | 33 ---- ...or-literal-nzd-nsl-dds-leading-zero-err.js | 55 ------- ...teral-nzd-nsl-dds-leading-zero-err.symbols | 31 ---- ...literal-nzd-nsl-dds-leading-zero-err.types | 31 ---- ...r-literal-oil-nsl-od-dunder-err.errors.txt | 40 ----- ...separator-literal-oil-nsl-od-dunder-err.js | 69 -------- ...ator-literal-oil-nsl-od-dunder-err.symbols | 38 ----- ...arator-literal-oil-nsl-od-dunder-err.types | 38 ----- ...eparator-literal-oil-nsl-od-err.errors.txt | 40 ----- ...umeric-separator-literal-oil-nsl-od-err.js | 69 -------- ...c-separator-literal-oil-nsl-od-err.symbols | 38 ----- ...ric-separator-literal-oil-nsl-od-err.types | 38 ----- ...rator-literal-oil-od-nsl-od-err.errors.txt | 40 ----- ...ric-separator-literal-oil-od-nsl-od-err.js | 69 -------- ...eparator-literal-oil-od-nsl-od-err.symbols | 38 ----- ...-separator-literal-oil-od-nsl-od-err.types | 38 ----- ...c-separator-literal-unicode-err.errors.txt | 35 ----- .../numeric-separator-literal-unicode-err.js | 54 ------- ...eric-separator-literal-unicode-err.symbols | 30 ---- ...umeric-separator-literal-unicode-err.types | 31 ---- .../reference/octal-invalid-digit.errors.txt | 29 ---- .../reference/octal-invalid-digit.js | 48 ------ .../reference/octal-invalid-digit.symbols | 27 ---- .../reference/octal-invalid-digit.types | 28 ---- .../octal-invalid-leading.errors.txt | 35 ----- .../reference/octal-invalid-leading.js | 48 ------ .../reference/octal-invalid-leading.symbols | 27 ---- .../reference/octal-invalid-leading.types | 28 ---- .../octal-invalid-truncated.errors.txt | 29 ---- .../reference/octal-invalid-truncated.js | 47 ------ .../reference/octal-invalid-truncated.symbols | 27 ---- .../reference/octal-invalid-truncated.types | 27 ---- .../octal-invalid-unicode.errors.txt | 32 ---- .../reference/octal-invalid-unicode.js | 48 ------ .../reference/octal-invalid-unicode.symbols | 27 ---- .../reference/octal-invalid-unicode.types | 28 ---- ...xp-first-char-no-line-separator.errors.txt | 45 ------ .../regexp-first-char-no-line-separator.js | 68 -------- ...egexp-first-char-no-line-separator.symbols | 38 ----- .../regexp-first-char-no-line-separator.types | 42 ----- ...rst-char-no-paragraph-separator.errors.txt | 45 ------ ...egexp-first-char-no-paragraph-separator.js | 68 -------- ...-first-char-no-paragraph-separator.symbols | 38 ----- ...xp-first-char-no-paragraph-separator.types | 42 ----- ...p-source-char-no-line-separator.errors.txt | 44 ------ .../regexp-source-char-no-line-separator.js | 67 -------- ...gexp-source-char-no-line-separator.symbols | 38 ----- ...regexp-source-char-no-line-separator.types | 42 ----- ...rce-char-no-paragraph-separator.errors.txt | 45 ------ ...gexp-source-char-no-paragraph-separator.js | 69 -------- ...source-char-no-paragraph-separator.symbols | 40 ----- ...p-source-char-no-paragraph-separator.types | 43 ----- .../u-invalid-class-escape.errors.txt | 32 ---- .../reference/u-invalid-class-escape.js | 48 ------ .../reference/u-invalid-class-escape.symbols | 27 ---- .../reference/u-invalid-class-escape.types | 27 ---- ...u-invalid-extended-pattern-char.errors.txt | 29 ---- .../u-invalid-extended-pattern-char.js | 42 ----- .../u-invalid-extended-pattern-char.symbols | 24 --- .../u-invalid-extended-pattern-char.types | 24 --- .../u-invalid-identity-escape.errors.txt | 31 ---- .../reference/u-invalid-identity-escape.js | 46 ------ .../u-invalid-identity-escape.symbols | 26 ---- .../reference/u-invalid-identity-escape.types | 26 ---- .../u-invalid-legacy-octal-escape.errors.txt | 34 ---- .../u-invalid-legacy-octal-escape.js | 52 ------- .../u-invalid-legacy-octal-escape.symbols | 29 ---- .../u-invalid-legacy-octal-escape.types | 29 ---- ...on-empty-class-ranges-no-dash-a.errors.txt | 41 ----- ...nvalid-non-empty-class-ranges-no-dash-a.js | 66 -------- ...d-non-empty-class-ranges-no-dash-a.symbols | 36 ----- ...lid-non-empty-class-ranges-no-dash-a.types | 36 ----- ...n-empty-class-ranges-no-dash-ab.errors.txt | 44 ------ ...valid-non-empty-class-ranges-no-dash-ab.js | 66 -------- ...-non-empty-class-ranges-no-dash-ab.symbols | 36 ----- ...id-non-empty-class-ranges-no-dash-ab.types | 36 ----- ...on-empty-class-ranges-no-dash-b.errors.txt | 41 ----- ...nvalid-non-empty-class-ranges-no-dash-b.js | 66 -------- ...d-non-empty-class-ranges-no-dash-b.symbols | 36 ----- ...lid-non-empty-class-ranges-no-dash-b.types | 36 ----- ...-invalid-non-empty-class-ranges.errors.txt | 40 ----- .../u-invalid-non-empty-class-ranges.js | 64 -------- .../u-invalid-non-empty-class-ranges.symbols | 35 ----- .../u-invalid-non-empty-class-ranges.types | 35 ----- .../u-invalid-oob-decimal-escape.errors.txt | 29 ---- .../reference/u-invalid-oob-decimal-escape.js | 42 ----- .../u-invalid-oob-decimal-escape.symbols | 24 --- .../u-invalid-oob-decimal-escape.types | 24 --- .../u-invalid-optional-lookahead.errors.txt | 29 ---- .../reference/u-invalid-optional-lookahead.js | 42 ----- .../u-invalid-optional-lookahead.symbols | 24 --- .../u-invalid-optional-lookahead.types | 24 --- .../u-invalid-optional-lookbehind.errors.txt | 29 ---- .../u-invalid-optional-lookbehind.js | 42 ----- .../u-invalid-optional-lookbehind.symbols | 24 --- .../u-invalid-optional-lookbehind.types | 24 --- ...lid-optional-negative-lookahead.errors.txt | 29 ---- .../u-invalid-optional-negative-lookahead.js | 42 ----- ...nvalid-optional-negative-lookahead.symbols | 24 --- ...-invalid-optional-negative-lookahead.types | 24 --- ...id-optional-negative-lookbehind.errors.txt | 29 ---- .../u-invalid-optional-negative-lookbehind.js | 42 ----- ...valid-optional-negative-lookbehind.symbols | 24 --- ...invalid-optional-negative-lookbehind.types | 24 --- .../u-invalid-range-lookahead.errors.txt | 29 ---- .../reference/u-invalid-range-lookahead.js | 42 ----- .../u-invalid-range-lookahead.symbols | 24 --- .../reference/u-invalid-range-lookahead.types | 24 --- .../u-invalid-range-lookbehind.errors.txt | 29 ---- .../reference/u-invalid-range-lookbehind.js | 42 ----- .../u-invalid-range-lookbehind.symbols | 24 --- .../u-invalid-range-lookbehind.types | 24 --- ...nvalid-range-negative-lookahead.errors.txt | 29 ---- .../u-invalid-range-negative-lookahead.js | 42 ----- ...u-invalid-range-negative-lookahead.symbols | 24 --- .../u-invalid-range-negative-lookahead.types | 24 --- ...valid-range-negative-lookbehind.errors.txt | 29 ---- .../u-invalid-range-negative-lookbehind.js | 42 ----- ...-invalid-range-negative-lookbehind.symbols | 24 --- .../u-invalid-range-negative-lookbehind.types | 24 --- .../reference/u-unicode-esc-bounds.errors.txt | 29 ---- .../reference/u-unicode-esc-bounds.js | 41 ----- .../reference/u-unicode-esc-bounds.symbols | 24 --- .../reference/u-unicode-esc-bounds.types | 24 --- .../u-unicode-esc-non-hex.errors.txt | 27 ---- .../reference/u-unicode-esc-non-hex.js | 31 ---- .../reference/u-unicode-esc-non-hex.symbols | 19 --- .../reference/u-unicode-esc-non-hex.types | 19 --- .../unicode-escape-nls-err-double.errors.txt | 55 ------- .../unicode-escape-nls-err-double.js | 99 ------------ .../unicode-escape-nls-err-double.symbols | 53 ------- .../unicode-escape-nls-err-double.types | 53 ------- .../unicode-escape-nls-err-single.errors.txt | 55 ------- .../unicode-escape-nls-err-single.js | 99 ------------ .../unicode-escape-nls-err-single.symbols | 53 ------- .../unicode-escape-nls-err-single.types | 53 ------- .../unicode-escape-nls-err.errors.txt | 85 ---------- .../reference/unicode-escape-nls-err.js | 147 ------------------ .../reference/unicode-escape-nls-err.symbols | 77 --------- .../reference/unicode-escape-nls-err.types | 77 --------- ...nicode-escape-no-hex-err-double.errors.txt | 52 ------- .../unicode-escape-no-hex-err-double.js | 93 ----------- .../unicode-escape-no-hex-err-double.symbols | 50 ------ .../unicode-escape-no-hex-err-double.types | 50 ------ ...nicode-escape-no-hex-err-single.errors.txt | 52 ------- .../unicode-escape-no-hex-err-single.js | 93 ----------- .../unicode-escape-no-hex-err-single.symbols | 50 ------ .../unicode-escape-no-hex-err-single.types | 50 ------ .../bigint/bigint-binary-invalid-digit.ts | 25 --- .../bigint/bigint-octal-invalid-digit.ts | 25 --- .../language/literals/bigint/exponent-part.ts | 15 -- .../bigint/hexadecimal-invalid-digit.ts | 25 --- .../bigint/legacy-octal-like-invalid-00n.ts | 27 ---- .../bigint/legacy-octal-like-invalid-01n.ts | 27 ---- .../bigint/legacy-octal-like-invalid-07n.ts | 27 ---- .../bigint/mv-is-not-integer-dil-dot-dds.ts | 26 ---- .../bigint/mv-is-not-integer-dot-dds.ts | 26 ---- .../bigint/non-octal-like-invalid-0008n.ts | 27 ---- .../bigint/non-octal-like-invalid-012348n.ts | 27 ---- .../bigint/non-octal-like-invalid-08n.ts | 27 ---- .../bigint/non-octal-like-invalid-09n.ts | 27 ---- ...ric-separator-literal-bil-bd-nsl-bd-err.ts | 43 ----- ...separator-literal-bil-nsl-bd-dunder-err.ts | 43 ----- ...umeric-separator-literal-bil-nsl-bd-err.ts | 42 ----- ...separator-literal-dd-nsl-dds-dunder-err.ts | 35 ----- ...nt-numeric-separator-literal-dd-nsl-err.ts | 37 ----- ...eparator-literal-dds-nsl-dds-dunder-err.ts | 35 ----- ...t-numeric-separator-literal-dds-nsl-err.ts | 38 ----- ...ric-separator-literal-hil-hd-nsl-hd-err.ts | 43 ----- ...separator-literal-hil-nsl-hd-dunder-err.ts | 43 ----- ...umeric-separator-literal-hil-nsl-hd-err.ts | 43 ----- ...nt-numeric-separator-literal-lol-00-err.ts | 51 ------ ...nt-numeric-separator-literal-lol-01-err.ts | 51 ------ ...nt-numeric-separator-literal-lol-07-err.ts | 53 ------- ...t-numeric-separator-literal-lol-0_0-err.ts | 51 ------ ...t-numeric-separator-literal-lol-0_1-err.ts | 51 ------ ...t-numeric-separator-literal-lol-0_7-err.ts | 52 ------- ...meric-separator-literal-nonoctal-08-err.ts | 48 ------ ...meric-separator-literal-nonoctal-09-err.ts | 48 ------ ...eric-separator-literal-nonoctal-0_8-err.ts | 48 ------ ...eric-separator-literal-nonoctal-0_9-err.ts | 48 ------ ...eparator-literal-nzd-nsl-dds-dunder-err.ts | 38 ----- ...or-literal-nzd-nsl-dds-leading-zero-err.ts | 36 ----- ...separator-literal-oil-nsl-od-dunder-err.ts | 43 ----- ...umeric-separator-literal-oil-nsl-od-err.ts | 43 ----- ...ric-separator-literal-oil-od-nsl-od-err.ts | 43 ----- ...t-numeric-separator-literal-unicode-err.ts | 35 ----- .../language/literals/numeric/7.8.3-1gs.ts | 14 -- .../language/literals/numeric/7.8.3-2gs.ts | 18 --- .../literals/numeric/S7.8.3_A6.1_T1.ts | 15 -- .../literals/numeric/S7.8.3_A6.1_T2.ts | 15 -- .../literals/numeric/S7.8.3_A6.2_T1.ts | 15 -- .../literals/numeric/S7.8.3_A6.2_T2.ts | 15 -- .../literals/numeric/binary-invalid-digit.ts | 22 --- .../numeric/binary-invalid-leading.ts | 22 --- .../numeric/binary-invalid-truncated.ts | 22 --- .../numeric/binary-invalid-unicode.ts | 22 --- .../numeric/legacy-octal-integer-strict.ts | 32 ---- .../legacy-octal-integery-000-strict.ts | 14 -- .../legacy-octal-integery-005-strict.ts | 14 -- .../legacy-octal-integery-01-strict.ts | 14 -- .../legacy-octal-integery-010-strict.ts | 14 -- .../legacy-octal-integery-06-strict.ts | 14 -- .../legacy-octal-integery-07-strict.ts | 14 -- .../non-octal-decimal-integer-strict.ts | 38 ----- .../numeric/numeric-followed-by-ident.ts | 17 -- ...ric-separator-literal-bil-bd-nsl-bd-err.ts | 33 ---- ...separator-literal-bil-nsl-bd-dunder-err.ts | 33 ---- ...umeric-separator-literal-bil-nsl-bd-err.ts | 33 ---- ...separator-literal-dd-nsl-dds-dunder-err.ts | 25 --- .../numeric-separator-literal-dd-nsl-err.ts | 27 ---- ...eparator-literal-dds-nsl-dds-dunder-err.ts | 25 --- .../numeric-separator-literal-dds-nsl-err.ts | 28 ---- ...rator-literal-dil-dot-dds-nsl-ep-dd-err.ts | 27 ---- ...ic-separator-literal-dil-dot-nsl-dd-err.ts | 27 ---- ...ic-separator-literal-dil-dot-nsl-ep-err.ts | 30 ---- ...meric-separator-literal-dil-dot-nsl-err.ts | 28 ---- ...ic-separator-literal-dot-dds-nsl-ep-err.ts | 29 ---- ...umeric-separator-literal-dot-nsl-ep-err.ts | 30 ---- .../numeric-separator-literal-dot-nsl-err.ts | 28 ---- ...ric-separator-literal-hil-hd-nsl-hd-err.ts | 33 ---- ...separator-literal-hil-nsl-hd-dunder-err.ts | 33 ---- ...umeric-separator-literal-hil-nsl-hd-err.ts | 33 ---- .../numeric-separator-literal-lol-00-err.ts | 40 ----- .../numeric-separator-literal-lol-01-err.ts | 40 ----- .../numeric-separator-literal-lol-07-err.ts | 42 ----- .../numeric-separator-literal-lol-0_0-err.ts | 40 ----- .../numeric-separator-literal-lol-0_1-err.ts | 40 ----- .../numeric-separator-literal-lol-0_7-err.ts | 41 ----- ...meric-separator-literal-nonoctal-08-err.ts | 37 ----- ...meric-separator-literal-nonoctal-09-err.ts | 37 ----- ...eric-separator-literal-nonoctal-0_8-err.ts | 37 ----- ...eric-separator-literal-nonoctal-0_9-err.ts | 37 ----- ...eparator-literal-nzd-nsl-dds-dunder-err.ts | 28 ---- ...or-literal-nzd-nsl-dds-leading-zero-err.ts | 26 ---- ...separator-literal-oil-nsl-od-dunder-err.ts | 33 ---- ...umeric-separator-literal-oil-nsl-od-err.ts | 33 ---- ...ric-separator-literal-oil-od-nsl-od-err.ts | 33 ---- .../numeric-separator-literal-unicode-err.ts | 25 --- .../literals/numeric/octal-invalid-digit.ts | 22 --- .../literals/numeric/octal-invalid-leading.ts | 22 --- .../numeric/octal-invalid-truncated.ts | 22 --- .../literals/numeric/octal-invalid-unicode.ts | 22 --- .../literals/regexp/S7.8.5_A1.2_T1.ts | 22 --- .../literals/regexp/S7.8.5_A1.2_T2.ts | 25 --- .../literals/regexp/S7.8.5_A1.2_T3.ts | 26 ---- .../literals/regexp/S7.8.5_A1.2_T4.ts | 26 ---- .../literals/regexp/S7.8.5_A1.3_T1.ts | 29 ---- .../literals/regexp/S7.8.5_A1.3_T3.ts | 29 ---- .../literals/regexp/S7.8.5_A1.5_T1.ts | 23 --- .../literals/regexp/S7.8.5_A1.5_T3.ts | 22 --- .../literals/regexp/S7.8.5_A2.2_T1.ts | 22 --- .../literals/regexp/S7.8.5_A2.2_T2.ts | 22 --- .../literals/regexp/S7.8.5_A2.3_T1.ts | 32 ---- .../literals/regexp/S7.8.5_A2.3_T3.ts | 33 ---- .../literals/regexp/S7.8.5_A2.5_T1.ts | 28 ---- .../literals/regexp/S7.8.5_A2.5_T3.ts | 28 ---- .../literals/regexp/early-err-bad-flag.ts | 17 -- .../literals/regexp/early-err-dup-flag.ts | 17 -- .../regexp/early-err-flags-unicode-escape.ts | 17 -- .../literals/regexp/early-err-pattern.ts | 16 -- .../regexp/invalid-braced-quantifier-exact.ts | 24 --- .../regexp/invalid-braced-quantifier-lower.ts | 24 --- .../regexp/invalid-braced-quantifier-range.ts | 24 --- .../regexp/invalid-optional-lookbehind.ts | 19 --- .../invalid-optional-negative-lookbehind.ts | 19 --- .../regexp/invalid-range-lookbehind.ts | 19 --- .../invalid-range-negative-lookbehind.ts | 19 --- .../invalid-dangling-groupname-2-u.ts | 19 --- .../invalid-dangling-groupname-2.ts | 19 --- .../invalid-dangling-groupname-3-u.ts | 19 --- .../invalid-dangling-groupname-3.ts | 19 --- .../invalid-dangling-groupname-4-u.ts | 19 --- .../invalid-dangling-groupname-4.ts | 19 --- .../invalid-dangling-groupname-5.ts | 19 --- .../invalid-dangling-groupname-u.ts | 19 --- ...alid-dangling-groupname-without-group-u.ts | 19 --- .../invalid-dangling-groupname.ts | 19 --- .../invalid-duplicate-groupspecifier-2-u.ts | 18 --- .../invalid-duplicate-groupspecifier-2.ts | 18 --- .../invalid-duplicate-groupspecifier-u.ts | 18 --- .../invalid-duplicate-groupspecifier.ts | 18 --- .../invalid-empty-groupspecifier-u.ts | 14 -- .../invalid-empty-groupspecifier.ts | 14 -- .../invalid-identity-escape-in-capture-u.ts | 14 -- .../invalid-incomplete-groupname-2-u.ts | 14 -- .../invalid-incomplete-groupname-2.ts | 14 -- .../invalid-incomplete-groupname-3-u.ts | 14 -- .../invalid-incomplete-groupname-3.ts | 14 -- .../invalid-incomplete-groupname-4.ts | 14 -- .../invalid-incomplete-groupname-5.ts | 14 -- .../invalid-incomplete-groupname-6.ts | 14 -- .../invalid-incomplete-groupname-u.ts | 14 -- ...-incomplete-groupname-without-group-2-u.ts | 14 -- ...-incomplete-groupname-without-group-3-u.ts | 14 -- ...id-incomplete-groupname-without-group-u.ts | 14 -- .../invalid-incomplete-groupname.ts | 14 -- ...alid-non-id-continue-groupspecifier-4-u.ts | 14 -- ...nvalid-non-id-continue-groupspecifier-4.ts | 14 -- .../invalid-non-id-continue-groupspecifier.ts | 14 -- ...invalid-non-id-start-groupspecifier-2-u.ts | 14 -- .../invalid-non-id-start-groupspecifier-2.ts | 14 -- .../invalid-non-id-start-groupspecifier-3.ts | 14 -- ...invalid-non-id-start-groupspecifier-4-u.ts | 14 -- .../invalid-non-id-start-groupspecifier-4.ts | 14 -- ...invalid-non-id-start-groupspecifier-5-u.ts | 14 -- .../invalid-non-id-start-groupspecifier-5.ts | 14 -- .../invalid-non-id-start-groupspecifier-6.ts | 14 -- .../invalid-non-id-start-groupspecifier-7.ts | 14 -- ...invalid-non-id-start-groupspecifier-8-u.ts | 14 -- .../invalid-non-id-start-groupspecifier-8.ts | 14 -- ...invalid-non-id-start-groupspecifier-9-u.ts | 14 -- .../invalid-non-id-start-groupspecifier-u.ts | 14 -- .../invalid-non-id-start-groupspecifier.ts | 14 -- .../invalid-numeric-groupspecifier-u.ts | 14 -- .../invalid-numeric-groupspecifier.ts | 14 -- ...id-punctuator-starting-groupspecifier-u.ts | 14 -- ...alid-punctuator-starting-groupspecifier.ts | 14 -- ...alid-punctuator-within-groupspecifier-u.ts | 14 -- ...nvalid-punctuator-within-groupspecifier.ts | 14 -- .../invalid-unterminated-groupspecifier-u.ts | 14 -- .../invalid-unterminated-groupspecifier.ts | 14 -- .../regexp-first-char-no-line-separator.ts | 32 ---- ...egexp-first-char-no-paragraph-separator.ts | 32 ---- .../regexp-source-char-no-line-separator.ts | 31 ---- ...gexp-source-char-no-paragraph-separator.ts | 32 ---- .../literals/regexp/u-invalid-class-escape.ts | 22 --- .../regexp/u-invalid-extended-pattern-char.ts | 19 --- .../regexp/u-invalid-identity-escape.ts | 21 --- .../regexp/u-invalid-legacy-octal-escape.ts | 24 --- ...nvalid-non-empty-class-ranges-no-dash-a.ts | 31 ---- ...valid-non-empty-class-ranges-no-dash-ab.ts | 31 ---- ...nvalid-non-empty-class-ranges-no-dash-b.ts | 31 ---- .../u-invalid-non-empty-class-ranges.ts | 30 ---- .../regexp/u-invalid-oob-decimal-escape.ts | 19 --- .../regexp/u-invalid-optional-lookahead.ts | 19 --- .../regexp/u-invalid-optional-lookbehind.ts | 19 --- .../u-invalid-optional-negative-lookahead.ts | 19 --- .../u-invalid-optional-negative-lookbehind.ts | 19 --- .../regexp/u-invalid-range-lookahead.ts | 19 --- .../regexp/u-invalid-range-lookbehind.ts | 19 --- .../u-invalid-range-negative-lookahead.ts | 19 --- .../u-invalid-range-negative-lookbehind.ts | 19 --- .../literals/regexp/u-unicode-esc-bounds.ts | 19 --- .../literals/regexp/u-unicode-esc-non-hex.ts | 14 -- .../literals/regexp/unicode-escape-nls-err.ts | 72 --------- .../literals/string/S7.8.4_A1.1_T1.ts | 17 -- .../literals/string/S7.8.4_A1.1_T2.ts | 18 --- .../literals/string/S7.8.4_A1.2_T1.ts | 17 -- .../literals/string/S7.8.4_A1.2_T2.ts | 18 --- .../literals/string/S7.8.4_A3.1_T1.ts | 15 -- .../literals/string/S7.8.4_A3.1_T2.ts | 15 -- .../literals/string/S7.8.4_A3.2_T1.ts | 15 -- .../literals/string/S7.8.4_A3.2_T2.ts | 15 -- .../literals/string/S7.8.4_A4.3_T1.ts | 15 -- .../literals/string/S7.8.4_A4.3_T2.ts | 15 -- .../literals/string/S7.8.4_A7.1_T4.ts | 17 -- .../literals/string/S7.8.4_A7.2_T1.ts | 15 -- .../literals/string/S7.8.4_A7.2_T2.ts | 15 -- .../literals/string/S7.8.4_A7.2_T3.ts | 15 -- .../literals/string/S7.8.4_A7.2_T4.ts | 15 -- .../literals/string/S7.8.4_A7.2_T5.ts | 15 -- .../literals/string/S7.8.4_A7.2_T6.ts | 15 -- ...scape-sequence-1-strict-explicit-pragma.ts | 25 --- ...scape-sequence-2-strict-explicit-pragma.ts | 25 --- ...scape-sequence-3-strict-explicit-pragma.ts | 25 --- ...scape-sequence-4-strict-explicit-pragma.ts | 25 --- ...scape-sequence-5-strict-explicit-pragma.ts | 25 --- ...scape-sequence-6-strict-explicit-pragma.ts | 25 --- ...scape-sequence-7-strict-explicit-pragma.ts | 25 --- ...scape-sequence-8-strict-explicit-pragma.ts | 25 --- ...gacy-non-octal-escape-sequence-8-strict.ts | 30 ---- ...scape-sequence-9-strict-explicit-pragma.ts | 25 --- ...gacy-non-octal-escape-sequence-9-strict.ts | 30 ---- ...legacy-non-octal-escape-sequence-strict.ts | 26 ---- ...y-octal-escape-sequence-prologue-strict.ts | 18 --- .../legacy-octal-escape-sequence-strict.ts | 26 ---- .../string/unicode-escape-nls-err-double.ts | 48 ------ .../string/unicode-escape-nls-err-single.ts | 48 ------ .../unicode-escape-no-hex-err-double.ts | 45 ------ .../unicode-escape-no-hex-err-single.ts | 45 ------ 1165 files changed, 40251 deletions(-) delete mode 100644 tests/baselines/reference/7.8.3-1gs.errors.txt delete mode 100644 tests/baselines/reference/7.8.3-1gs.js delete mode 100644 tests/baselines/reference/7.8.3-1gs.symbols delete mode 100644 tests/baselines/reference/7.8.3-1gs.types delete mode 100644 tests/baselines/reference/7.8.3-2gs.errors.txt delete mode 100644 tests/baselines/reference/7.8.3-2gs.js delete mode 100644 tests/baselines/reference/7.8.3-2gs.symbols delete mode 100644 tests/baselines/reference/7.8.3-2gs.types delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.js delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T1.types delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.js delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.3_A6.1_T2.types delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.js delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T1.types delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.js delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.3_A6.2_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.js delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T1.types delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.js delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A1.1_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.js delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T1.types delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.js delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A1.2_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.js delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T1.types delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.js delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A3.1_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.js delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T1.types delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.js delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A3.2_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.js delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T1.types delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.js delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A4.3_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.1_T4.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T1.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T2.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T3.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T4.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T5.types delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.js delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.symbols delete mode 100644 tests/baselines/reference/S7.8.4_A7.2_T6.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T1.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T2.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T3.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.2_T4.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T1.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.3_T3.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T1.types delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.js delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A1.5_T3.types delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.js delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T1.types delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.js delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A2.2_T2.types delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.js delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T1.types delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.js delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A2.3_T3.types delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.js delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T1.types delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.js delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.symbols delete mode 100644 tests/baselines/reference/S7.8.5_A2.5_T3.types delete mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.errors.txt delete mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.js delete mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.symbols delete mode 100644 tests/baselines/reference/bigint-binary-invalid-digit.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols delete mode 100644 tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types delete mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.errors.txt delete mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.js delete mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.symbols delete mode 100644 tests/baselines/reference/bigint-octal-invalid-digit.types delete mode 100644 tests/baselines/reference/binary-invalid-digit.errors.txt delete mode 100644 tests/baselines/reference/binary-invalid-digit.js delete mode 100644 tests/baselines/reference/binary-invalid-digit.symbols delete mode 100644 tests/baselines/reference/binary-invalid-digit.types delete mode 100644 tests/baselines/reference/binary-invalid-leading.errors.txt delete mode 100644 tests/baselines/reference/binary-invalid-leading.js delete mode 100644 tests/baselines/reference/binary-invalid-leading.symbols delete mode 100644 tests/baselines/reference/binary-invalid-leading.types delete mode 100644 tests/baselines/reference/binary-invalid-truncated.errors.txt delete mode 100644 tests/baselines/reference/binary-invalid-truncated.js delete mode 100644 tests/baselines/reference/binary-invalid-truncated.symbols delete mode 100644 tests/baselines/reference/binary-invalid-truncated.types delete mode 100644 tests/baselines/reference/binary-invalid-unicode.errors.txt delete mode 100644 tests/baselines/reference/binary-invalid-unicode.js delete mode 100644 tests/baselines/reference/binary-invalid-unicode.symbols delete mode 100644 tests/baselines/reference/binary-invalid-unicode.types delete mode 100644 tests/baselines/reference/early-err-bad-flag.errors.txt delete mode 100644 tests/baselines/reference/early-err-bad-flag.js delete mode 100644 tests/baselines/reference/early-err-bad-flag.symbols delete mode 100644 tests/baselines/reference/early-err-bad-flag.types delete mode 100644 tests/baselines/reference/early-err-dup-flag.errors.txt delete mode 100644 tests/baselines/reference/early-err-dup-flag.js delete mode 100644 tests/baselines/reference/early-err-dup-flag.symbols delete mode 100644 tests/baselines/reference/early-err-dup-flag.types delete mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.errors.txt delete mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.js delete mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.symbols delete mode 100644 tests/baselines/reference/early-err-flags-unicode-escape.types delete mode 100644 tests/baselines/reference/early-err-pattern.errors.txt delete mode 100644 tests/baselines/reference/early-err-pattern.js delete mode 100644 tests/baselines/reference/early-err-pattern.symbols delete mode 100644 tests/baselines/reference/early-err-pattern.types delete mode 100644 tests/baselines/reference/exponent-part.errors.txt delete mode 100644 tests/baselines/reference/exponent-part.js delete mode 100644 tests/baselines/reference/exponent-part.symbols delete mode 100644 tests/baselines/reference/exponent-part.types delete mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.errors.txt delete mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.js delete mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.symbols delete mode 100644 tests/baselines/reference/hexadecimal-invalid-digit.types delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.js delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.symbols delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-exact.types delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.js delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.symbols delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-lower.types delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.errors.txt delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.js delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.symbols delete mode 100644 tests/baselines/reference/invalid-braced-quantifier-range.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2-u.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-2.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3-u.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-3.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4-u.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-4.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-5.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-u.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname-without-group-u.types delete mode 100644 tests/baselines/reference/invalid-dangling-groupname.errors.txt delete mode 100644 tests/baselines/reference/invalid-dangling-groupname.js delete mode 100644 tests/baselines/reference/invalid-dangling-groupname.symbols delete mode 100644 tests/baselines/reference/invalid-dangling-groupname.types delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.js delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-2.types delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-duplicate-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-empty-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.js delete mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols delete mode 100644 tests/baselines/reference/invalid-identity-escape-in-capture-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-2.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-3.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-4.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-5.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-6.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname-without-group-u.types delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname.errors.txt delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname.js delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname.symbols delete mode 100644 tests/baselines/reference/invalid-incomplete-groupname.types delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-continue-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-non-id-start-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-numeric-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-optional-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/invalid-optional-lookbehind.js delete mode 100644 tests/baselines/reference/invalid-optional-lookbehind.symbols delete mode 100644 tests/baselines/reference/invalid-optional-lookbehind.types delete mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.js delete mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.symbols delete mode 100644 tests/baselines/reference/invalid-optional-negative-lookbehind.types delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-punctuator-within-groupspecifier.types delete mode 100644 tests/baselines/reference/invalid-range-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/invalid-range-lookbehind.js delete mode 100644 tests/baselines/reference/invalid-range-lookbehind.symbols delete mode 100644 tests/baselines/reference/invalid-range-lookbehind.types delete mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.js delete mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.symbols delete mode 100644 tests/baselines/reference/invalid-range-negative-lookbehind.types delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.errors.txt delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.js delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.symbols delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier-u.types delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.errors.txt delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.js delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.symbols delete mode 100644 tests/baselines/reference/invalid-unterminated-groupspecifier.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols delete mode 100644 tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-escape-sequence-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integer-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integer-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integer-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integer-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integery-000-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integery-005-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integery-01-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integery-010-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integery-06-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.js delete mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.symbols delete mode 100644 tests/baselines/reference/legacy-octal-integery-07-strict.types delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.js delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.symbols delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-00n.types delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.js delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.symbols delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-01n.types delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.js delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.symbols delete mode 100644 tests/baselines/reference/legacy-octal-like-invalid-07n.types delete mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt delete mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js delete mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols delete mode 100644 tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types delete mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt delete mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.js delete mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.symbols delete mode 100644 tests/baselines/reference/mv-is-not-integer-dot-dds.types delete mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt delete mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.js delete mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.symbols delete mode 100644 tests/baselines/reference/non-octal-decimal-integer-strict.types delete mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt delete mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.js delete mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.symbols delete mode 100644 tests/baselines/reference/non-octal-like-invalid-0008n.types delete mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt delete mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.js delete mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.symbols delete mode 100644 tests/baselines/reference/non-octal-like-invalid-012348n.types delete mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.errors.txt delete mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.js delete mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.symbols delete mode 100644 tests/baselines/reference/non-octal-like-invalid-08n.types delete mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.errors.txt delete mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.js delete mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.symbols delete mode 100644 tests/baselines/reference/non-octal-like-invalid-09n.types delete mode 100644 tests/baselines/reference/numeric-followed-by-ident.errors.txt delete mode 100644 tests/baselines/reference/numeric-followed-by-ident.js delete mode 100644 tests/baselines/reference/numeric-followed-by-ident.symbols delete mode 100644 tests/baselines/reference/numeric-followed-by-ident.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-00-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-01-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-07-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types delete mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt delete mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.js delete mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.symbols delete mode 100644 tests/baselines/reference/numeric-separator-literal-unicode-err.types delete mode 100644 tests/baselines/reference/octal-invalid-digit.errors.txt delete mode 100644 tests/baselines/reference/octal-invalid-digit.js delete mode 100644 tests/baselines/reference/octal-invalid-digit.symbols delete mode 100644 tests/baselines/reference/octal-invalid-digit.types delete mode 100644 tests/baselines/reference/octal-invalid-leading.errors.txt delete mode 100644 tests/baselines/reference/octal-invalid-leading.js delete mode 100644 tests/baselines/reference/octal-invalid-leading.symbols delete mode 100644 tests/baselines/reference/octal-invalid-leading.types delete mode 100644 tests/baselines/reference/octal-invalid-truncated.errors.txt delete mode 100644 tests/baselines/reference/octal-invalid-truncated.js delete mode 100644 tests/baselines/reference/octal-invalid-truncated.symbols delete mode 100644 tests/baselines/reference/octal-invalid-truncated.types delete mode 100644 tests/baselines/reference/octal-invalid-unicode.errors.txt delete mode 100644 tests/baselines/reference/octal-invalid-unicode.js delete mode 100644 tests/baselines/reference/octal-invalid-unicode.symbols delete mode 100644 tests/baselines/reference/octal-invalid-unicode.types delete mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt delete mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.js delete mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.symbols delete mode 100644 tests/baselines/reference/regexp-first-char-no-line-separator.types delete mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt delete mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.js delete mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols delete mode 100644 tests/baselines/reference/regexp-first-char-no-paragraph-separator.types delete mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt delete mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.js delete mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.symbols delete mode 100644 tests/baselines/reference/regexp-source-char-no-line-separator.types delete mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt delete mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.js delete mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols delete mode 100644 tests/baselines/reference/regexp-source-char-no-paragraph-separator.types delete mode 100644 tests/baselines/reference/u-invalid-class-escape.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-class-escape.js delete mode 100644 tests/baselines/reference/u-invalid-class-escape.symbols delete mode 100644 tests/baselines/reference/u-invalid-class-escape.types delete mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.js delete mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.symbols delete mode 100644 tests/baselines/reference/u-invalid-extended-pattern-char.types delete mode 100644 tests/baselines/reference/u-invalid-identity-escape.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-identity-escape.js delete mode 100644 tests/baselines/reference/u-invalid-identity-escape.symbols delete mode 100644 tests/baselines/reference/u-invalid-identity-escape.types delete mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.js delete mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.symbols delete mode 100644 tests/baselines/reference/u-invalid-legacy-octal-escape.types delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.js delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols delete mode 100644 tests/baselines/reference/u-invalid-non-empty-class-ranges.types delete mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.js delete mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.symbols delete mode 100644 tests/baselines/reference/u-invalid-oob-decimal-escape.types delete mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.js delete mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.symbols delete mode 100644 tests/baselines/reference/u-invalid-optional-lookahead.types delete mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.js delete mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.symbols delete mode 100644 tests/baselines/reference/u-invalid-optional-lookbehind.types delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.js delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookahead.types delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.js delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.symbols delete mode 100644 tests/baselines/reference/u-invalid-optional-negative-lookbehind.types delete mode 100644 tests/baselines/reference/u-invalid-range-lookahead.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-range-lookahead.js delete mode 100644 tests/baselines/reference/u-invalid-range-lookahead.symbols delete mode 100644 tests/baselines/reference/u-invalid-range-lookahead.types delete mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.js delete mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.symbols delete mode 100644 tests/baselines/reference/u-invalid-range-lookbehind.types delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.js delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.symbols delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookahead.types delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.js delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.symbols delete mode 100644 tests/baselines/reference/u-invalid-range-negative-lookbehind.types delete mode 100644 tests/baselines/reference/u-unicode-esc-bounds.errors.txt delete mode 100644 tests/baselines/reference/u-unicode-esc-bounds.js delete mode 100644 tests/baselines/reference/u-unicode-esc-bounds.symbols delete mode 100644 tests/baselines/reference/u-unicode-esc-bounds.types delete mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.errors.txt delete mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.js delete mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.symbols delete mode 100644 tests/baselines/reference/u-unicode-esc-non-hex.types delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.errors.txt delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.js delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.symbols delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-double.types delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.errors.txt delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.js delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.symbols delete mode 100644 tests/baselines/reference/unicode-escape-nls-err-single.types delete mode 100644 tests/baselines/reference/unicode-escape-nls-err.errors.txt delete mode 100644 tests/baselines/reference/unicode-escape-nls-err.js delete mode 100644 tests/baselines/reference/unicode-escape-nls-err.symbols delete mode 100644 tests/baselines/reference/unicode-escape-nls-err.types delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.js delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.symbols delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-double.types delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.js delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.symbols delete mode 100644 tests/baselines/reference/unicode-escape-no-hex-err-single.types delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts delete mode 100644 tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/invalid-range-negative-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookahead.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookbehind.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts delete mode 100644 tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts delete mode 100644 tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts diff --git a/tests/baselines/reference/7.8.3-1gs.errors.txt b/tests/baselines/reference/7.8.3-1gs.errors.txt deleted file mode 100644 index 4dc80fd54deaa..0000000000000 --- a/tests/baselines/reference/7.8.3-1gs.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -7.8.3-1gs.ts(14,9): error TS1121: Octal literals are not allowed. Use the syntax '0o10'. - - -==== 7.8.3-1gs.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-1gs - description: Strict Mode - octal extension(010) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - var y = 010; - ~~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o10'. - \ No newline at end of file diff --git a/tests/baselines/reference/7.8.3-1gs.js b/tests/baselines/reference/7.8.3-1gs.js deleted file mode 100644 index f3edc50c03d78..0000000000000 --- a/tests/baselines/reference/7.8.3-1gs.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts] //// - -//// [7.8.3-1gs.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1gs -description: Strict Mode - octal extension(010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var y = 010; - - -//// [7.8.3-1gs.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-1gs -description: Strict Mode - octal extension(010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -var y = 8; diff --git a/tests/baselines/reference/7.8.3-1gs.symbols b/tests/baselines/reference/7.8.3-1gs.symbols deleted file mode 100644 index 1cda6c4a99171..0000000000000 --- a/tests/baselines/reference/7.8.3-1gs.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts] //// - -=== 7.8.3-1gs.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1gs -description: Strict Mode - octal extension(010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var y = 010; ->y : Symbol(y, Decl(7.8.3-1gs.ts, 13, 3)) - diff --git a/tests/baselines/reference/7.8.3-1gs.types b/tests/baselines/reference/7.8.3-1gs.types deleted file mode 100644 index 862baca664d6c..0000000000000 --- a/tests/baselines/reference/7.8.3-1gs.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts] //// - -=== 7.8.3-1gs.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1gs -description: Strict Mode - octal extension(010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var y = 010; ->y : number ->010 : 8 - diff --git a/tests/baselines/reference/7.8.3-2gs.errors.txt b/tests/baselines/reference/7.8.3-2gs.errors.txt deleted file mode 100644 index 682638a41319a..0000000000000 --- a/tests/baselines/reference/7.8.3-2gs.errors.txt +++ /dev/null @@ -1,25 +0,0 @@ -7.8.3-2gs.ts(18,5): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - - -==== 7.8.3-2gs.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-2gs - description: > - Strict Mode - octal extension is forbidden in strict mode (after a - hex number is assigned to a variable) - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - var a; - a = 0x1; - a = 01; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - \ No newline at end of file diff --git a/tests/baselines/reference/7.8.3-2gs.js b/tests/baselines/reference/7.8.3-2gs.js deleted file mode 100644 index e86bf071e1da2..0000000000000 --- a/tests/baselines/reference/7.8.3-2gs.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts] //// - -//// [7.8.3-2gs.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-2gs -description: > - Strict Mode - octal extension is forbidden in strict mode (after a - hex number is assigned to a variable) -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var a; -a = 0x1; -a = 01; - - -//// [7.8.3-2gs.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-2gs -description: > - Strict Mode - octal extension is forbidden in strict mode (after a - hex number is assigned to a variable) -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -var a; -a = 0x1; -a = 1; diff --git a/tests/baselines/reference/7.8.3-2gs.symbols b/tests/baselines/reference/7.8.3-2gs.symbols deleted file mode 100644 index 131b1b05ac933..0000000000000 --- a/tests/baselines/reference/7.8.3-2gs.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts] //// - -=== 7.8.3-2gs.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-2gs -description: > - Strict Mode - octal extension is forbidden in strict mode (after a - hex number is assigned to a variable) -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var a; ->a : Symbol(a, Decl(7.8.3-2gs.ts, 15, 3)) - -a = 0x1; ->a : Symbol(a, Decl(7.8.3-2gs.ts, 15, 3)) - -a = 01; ->a : Symbol(a, Decl(7.8.3-2gs.ts, 15, 3)) - diff --git a/tests/baselines/reference/7.8.3-2gs.types b/tests/baselines/reference/7.8.3-2gs.types deleted file mode 100644 index 9766fcefb87db..0000000000000 --- a/tests/baselines/reference/7.8.3-2gs.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts] //// - -=== 7.8.3-2gs.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-2gs -description: > - Strict Mode - octal extension is forbidden in strict mode (after a - hex number is assigned to a variable) -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var a; ->a : any - -a = 0x1; ->a = 0x1 : 1 ->a : any ->0x1 : 1 - -a = 01; ->a = 01 : 1 ->a : any ->01 : 1 - diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt b/tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt deleted file mode 100644 index b292ee9fd98e2..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T1.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.3_A6.1_T1.ts(15,3): error TS1125: Hexadecimal digit expected. - - -==== S7.8.3_A6.1_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "HexIntegerLiteral :: 0(x/X) is incorrect" - es5id: 7.8.3_A6.1_T1 - description: Checking if execution of "0x" passes - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - 0x - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.js b/tests/baselines/reference/S7.8.3_A6.1_T1.js deleted file mode 100644 index c401c183a769b..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T1.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts] //// - -//// [S7.8.3_A6.1_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T1 -description: Checking if execution of "0x" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0x - - -//// [S7.8.3_A6.1_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T1 -description: Checking if execution of "0x" passes -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -0x; diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.symbols b/tests/baselines/reference/S7.8.3_A6.1_T1.symbols deleted file mode 100644 index 984d3bcf02532..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T1.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts] //// - -=== S7.8.3_A6.1_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T1 -description: Checking if execution of "0x" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0x - diff --git a/tests/baselines/reference/S7.8.3_A6.1_T1.types b/tests/baselines/reference/S7.8.3_A6.1_T1.types deleted file mode 100644 index 990c6dfda3ce7..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T1.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts] //// - -=== S7.8.3_A6.1_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T1 -description: Checking if execution of "0x" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0x ->0x : 0 - diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt b/tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt deleted file mode 100644 index 90621ffaa6253..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T2.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.3_A6.1_T2.ts(15,3): error TS1125: Hexadecimal digit expected. - - -==== S7.8.3_A6.1_T2.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "HexIntegerLiteral :: 0(x/X) is incorrect" - es5id: 7.8.3_A6.1_T2 - description: Checking if execution of "0X" passes - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - 0X - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.js b/tests/baselines/reference/S7.8.3_A6.1_T2.js deleted file mode 100644 index 8e88f1b300dc8..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T2.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts] //// - -//// [S7.8.3_A6.1_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T2 -description: Checking if execution of "0X" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0X - - -//// [S7.8.3_A6.1_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T2 -description: Checking if execution of "0X" passes -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -0X; diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.symbols b/tests/baselines/reference/S7.8.3_A6.1_T2.symbols deleted file mode 100644 index c7c9cdc0c272e..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T2.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts] //// - -=== S7.8.3_A6.1_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T2 -description: Checking if execution of "0X" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0X - diff --git a/tests/baselines/reference/S7.8.3_A6.1_T2.types b/tests/baselines/reference/S7.8.3_A6.1_T2.types deleted file mode 100644 index 755344a12d151..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.1_T2.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts] //// - -=== S7.8.3_A6.1_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T2 -description: Checking if execution of "0X" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0X ->0X : 0 - diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt b/tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt deleted file mode 100644 index 9e0fa4f5e0796..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T1.errors.txt +++ /dev/null @@ -1,25 +0,0 @@ -S7.8.3_A6.2_T1.ts(15,3): error TS1125: Hexadecimal digit expected. -S7.8.3_A6.2_T1.ts(15,3): error TS2304: Cannot find name 'G'. - - -==== S7.8.3_A6.2_T1.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: 0xG is incorrect - es5id: 7.8.3_A6.2_T1 - description: Checking if execution of "0xG" fails - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - 0xG - -!!! error TS1125: Hexadecimal digit expected. - ~ -!!! error TS2304: Cannot find name 'G'. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.js b/tests/baselines/reference/S7.8.3_A6.2_T1.js deleted file mode 100644 index 2941903133ca7..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T1.js +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts] //// - -//// [S7.8.3_A6.2_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T1 -description: Checking if execution of "0xG" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xG - - -//// [S7.8.3_A6.2_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T1 -description: Checking if execution of "0xG" fails -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -0x; -G; diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.symbols b/tests/baselines/reference/S7.8.3_A6.2_T1.symbols deleted file mode 100644 index ecf535d8ff489..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T1.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts] //// - -=== S7.8.3_A6.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T1 -description: Checking if execution of "0xG" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xG - diff --git a/tests/baselines/reference/S7.8.3_A6.2_T1.types b/tests/baselines/reference/S7.8.3_A6.2_T1.types deleted file mode 100644 index 23809dc853d05..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T1.types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts] //// - -=== S7.8.3_A6.2_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T1 -description: Checking if execution of "0xG" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xG ->0x : 0 ->G : any - diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt b/tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt deleted file mode 100644 index ef8f1a0e8c2d4..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T2.errors.txt +++ /dev/null @@ -1,25 +0,0 @@ -S7.8.3_A6.2_T2.ts(15,3): error TS1125: Hexadecimal digit expected. -S7.8.3_A6.2_T2.ts(15,3): error TS2304: Cannot find name 'g'. - - -==== S7.8.3_A6.2_T2.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: 0xG is incorrect - es5id: 7.8.3_A6.2_T2 - description: Checking if execution of "0xg" fails - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - 0xg - -!!! error TS1125: Hexadecimal digit expected. - ~ -!!! error TS2304: Cannot find name 'g'. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.js b/tests/baselines/reference/S7.8.3_A6.2_T2.js deleted file mode 100644 index 020d212405162..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T2.js +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts] //// - -//// [S7.8.3_A6.2_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T2 -description: Checking if execution of "0xg" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xg - - -//// [S7.8.3_A6.2_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T2 -description: Checking if execution of "0xg" fails -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -0x; -g; diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.symbols b/tests/baselines/reference/S7.8.3_A6.2_T2.symbols deleted file mode 100644 index 72192ff90de5a..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T2.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts] //// - -=== S7.8.3_A6.2_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T2 -description: Checking if execution of "0xg" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xg - diff --git a/tests/baselines/reference/S7.8.3_A6.2_T2.types b/tests/baselines/reference/S7.8.3_A6.2_T2.types deleted file mode 100644 index 25333efa54a61..0000000000000 --- a/tests/baselines/reference/S7.8.3_A6.2_T2.types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts] //// - -=== S7.8.3_A6.2_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T2 -description: Checking if execution of "0xg" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xg ->0x : 0 ->g : any - diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt b/tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt deleted file mode 100644 index 784e7d73e049e..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T1.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -S7.8.4_A1.1_T1.ts(17,3): error TS1005: ';' expected. -S7.8.4_A1.1_T1.ts(17,4): error TS1002: Unterminated string literal. - - -==== S7.8.4_A1.1_T1.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: \"DoubleStringCharacters_opt\"" - es5id: 7.8.4_A1.1_T1 - description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - """ - ~ -!!! error TS1005: ';' expected. - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.js b/tests/baselines/reference/S7.8.4_A1.1_T1.js deleted file mode 100644 index 74aaba3b3f4b1..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T1.js +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts] //// - -//// [S7.8.4_A1.1_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T1 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -""" - - -//// [S7.8.4_A1.1_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T1 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -""; -"; diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.symbols b/tests/baselines/reference/S7.8.4_A1.1_T1.symbols deleted file mode 100644 index 5863e80527247..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T1.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts] //// - -=== S7.8.4_A1.1_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T1 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -""" - diff --git a/tests/baselines/reference/S7.8.4_A1.1_T1.types b/tests/baselines/reference/S7.8.4_A1.1_T1.types deleted file mode 100644 index 15b72257d33d5..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T1.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts] //// - -=== S7.8.4_A1.1_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T1 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -""" ->"" : "" ->" : "" - diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt b/tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt deleted file mode 100644 index 4ef4e829fbbb2..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T2.errors.txt +++ /dev/null @@ -1,28 +0,0 @@ -S7.8.4_A1.1_T2.ts(17,2): error TS1002: Unterminated string literal. -S7.8.4_A1.1_T2.ts(18,2): error TS1002: Unterminated string literal. - - -==== S7.8.4_A1.1_T2.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: \"DoubleStringCharacters_opt\"" - es5id: 7.8.4_A1.1_T2 - description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - " - -!!! error TS1002: Unterminated string literal. - " - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.js b/tests/baselines/reference/S7.8.4_A1.1_T2.js deleted file mode 100644 index 7d3a8a175fb17..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T2.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts] //// - -//// [S7.8.4_A1.1_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T2 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -" -" - - -//// [S7.8.4_A1.1_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T2 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"; -"; diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.symbols b/tests/baselines/reference/S7.8.4_A1.1_T2.symbols deleted file mode 100644 index 60f9bca70c75d..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T2.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts] //// - -=== S7.8.4_A1.1_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T2 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -" -" - diff --git a/tests/baselines/reference/S7.8.4_A1.1_T2.types b/tests/baselines/reference/S7.8.4_A1.1_T2.types deleted file mode 100644 index 9c6959c7ab338..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.1_T2.types +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts] //// - -=== S7.8.4_A1.1_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T2 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -" ->" : "" - -" ->" : "" - diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt b/tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt deleted file mode 100644 index e0313dae5f9ac..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T1.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -S7.8.4_A1.2_T1.ts(17,3): error TS1005: ';' expected. -S7.8.4_A1.2_T1.ts(17,4): error TS1002: Unterminated string literal. - - -==== S7.8.4_A1.2_T1.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: 'SingleStringCharacters_opt'" - es5id: 7.8.4_A1.2_T1 - description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - ''' - ~ -!!! error TS1005: ';' expected. - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.js b/tests/baselines/reference/S7.8.4_A1.2_T1.js deleted file mode 100644 index 5f1e2cf091954..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T1.js +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts] //// - -//// [S7.8.4_A1.2_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T1 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -''' - - -//// [S7.8.4_A1.2_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T1 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -''; -'; diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.symbols b/tests/baselines/reference/S7.8.4_A1.2_T1.symbols deleted file mode 100644 index f26c4e07c77bd..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T1.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts] //// - -=== S7.8.4_A1.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T1 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -''' - diff --git a/tests/baselines/reference/S7.8.4_A1.2_T1.types b/tests/baselines/reference/S7.8.4_A1.2_T1.types deleted file mode 100644 index 5456502a94046..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T1.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts] //// - -=== S7.8.4_A1.2_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T1 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -''' ->'' : "" ->' : "" - diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt b/tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt deleted file mode 100644 index 03109eb22c268..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T2.errors.txt +++ /dev/null @@ -1,28 +0,0 @@ -S7.8.4_A1.2_T2.ts(17,2): error TS1002: Unterminated string literal. -S7.8.4_A1.2_T2.ts(18,2): error TS1002: Unterminated string literal. - - -==== S7.8.4_A1.2_T2.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: 'SingleStringCharacters_opt'" - es5id: 7.8.4_A1.2_T2 - description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - ' - -!!! error TS1002: Unterminated string literal. - ' - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.js b/tests/baselines/reference/S7.8.4_A1.2_T2.js deleted file mode 100644 index 150236624a17d..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T2.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts] //// - -//// [S7.8.4_A1.2_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T2 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -' -' - - -//// [S7.8.4_A1.2_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T2 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -'; -'; diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.symbols b/tests/baselines/reference/S7.8.4_A1.2_T2.symbols deleted file mode 100644 index 5ae7def319b0f..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T2.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts] //// - -=== S7.8.4_A1.2_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T2 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -' -' - diff --git a/tests/baselines/reference/S7.8.4_A1.2_T2.types b/tests/baselines/reference/S7.8.4_A1.2_T2.types deleted file mode 100644 index e268c73f8a405..0000000000000 --- a/tests/baselines/reference/S7.8.4_A1.2_T2.types +++ /dev/null @@ -1,25 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts] //// - -=== S7.8.4_A1.2_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T2 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -' ->' : "" - -' ->' : "" - diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt b/tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt deleted file mode 100644 index c56a6869dd335..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T1.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A3.1_T1.ts(15,4): error TS1002: Unterminated string literal. - - -==== S7.8.4_A3.1_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: \"\\\" or '\\' is not correct" - es5id: 7.8.4_A3.1_T1 - description: Checking if execution of "\" fails - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\" - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.js b/tests/baselines/reference/S7.8.4_A3.1_T1.js deleted file mode 100644 index 1ac39c4909010..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T1.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts] //// - -//// [S7.8.4_A3.1_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T1 -description: Checking if execution of "\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\" - - -//// [S7.8.4_A3.1_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T1 -description: Checking if execution of "\" fails -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\"; diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.symbols b/tests/baselines/reference/S7.8.4_A3.1_T1.symbols deleted file mode 100644 index b1d345b2d72e3..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T1.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts] //// - -=== S7.8.4_A3.1_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T1 -description: Checking if execution of "\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\" - diff --git a/tests/baselines/reference/S7.8.4_A3.1_T1.types b/tests/baselines/reference/S7.8.4_A3.1_T1.types deleted file mode 100644 index 8244f6656672c..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T1.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts] //// - -=== S7.8.4_A3.1_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T1 -description: Checking if execution of "\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\" ->"\" : "\"" - diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt b/tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt deleted file mode 100644 index b3474f786086f..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T2.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A3.1_T2.ts(15,4): error TS1002: Unterminated string literal. - - -==== S7.8.4_A3.1_T2.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: \"\\\" or '\\' is not correct" - es5id: 7.8.4_A3.1_T2 - description: Checking if execution of "'\'" fails - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - '\' - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.js b/tests/baselines/reference/S7.8.4_A3.1_T2.js deleted file mode 100644 index e44f2d17870b6..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T2.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts] //// - -//// [S7.8.4_A3.1_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T2 -description: Checking if execution of "'\'" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\' - - -//// [S7.8.4_A3.1_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T2 -description: Checking if execution of "'\'" fails -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -'\'; diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.symbols b/tests/baselines/reference/S7.8.4_A3.1_T2.symbols deleted file mode 100644 index 805fc1c3512ab..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T2.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts] //// - -=== S7.8.4_A3.1_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T2 -description: Checking if execution of "'\'" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\' - diff --git a/tests/baselines/reference/S7.8.4_A3.1_T2.types b/tests/baselines/reference/S7.8.4_A3.1_T2.types deleted file mode 100644 index 4d4c2c64b0854..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.1_T2.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts] //// - -=== S7.8.4_A3.1_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T2 -description: Checking if execution of "'\'" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\' ->'\' : "'" - diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt b/tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt deleted file mode 100644 index ba821b67610c1..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T1.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A3.2_T1.ts(15,6): error TS1002: Unterminated string literal. - - -==== S7.8.4_A3.2_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" - es5id: 7.8.4_A3.2_T1 - description: Checking if execution of "\\\" fails - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\\\" - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.js b/tests/baselines/reference/S7.8.4_A3.2_T1.js deleted file mode 100644 index 9c4b8200a80b1..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T1.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts] //// - -//// [S7.8.4_A3.2_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T1 -description: Checking if execution of "\\\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\\\" - - -//// [S7.8.4_A3.2_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T1 -description: Checking if execution of "\\\" fails -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\\\"; diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.symbols b/tests/baselines/reference/S7.8.4_A3.2_T1.symbols deleted file mode 100644 index 9c447033297f3..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T1.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts] //// - -=== S7.8.4_A3.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T1 -description: Checking if execution of "\\\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\\\" - diff --git a/tests/baselines/reference/S7.8.4_A3.2_T1.types b/tests/baselines/reference/S7.8.4_A3.2_T1.types deleted file mode 100644 index a0ed040d3c498..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T1.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts] //// - -=== S7.8.4_A3.2_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T1 -description: Checking if execution of "\\\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\\\" ->"\\\" : "\\\"" - diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt b/tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt deleted file mode 100644 index 1927cbe4b778e..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T2.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A3.2_T2.ts(15,6): error TS1002: Unterminated string literal. - - -==== S7.8.4_A3.2_T2.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" - es5id: 7.8.4_A3.2_T2 - description: Checking if execution of '\\\' fails - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - '\\\' - -!!! error TS1002: Unterminated string literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.js b/tests/baselines/reference/S7.8.4_A3.2_T2.js deleted file mode 100644 index ecbb41c705f26..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T2.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts] //// - -//// [S7.8.4_A3.2_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T2 -description: Checking if execution of '\\\' fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\\\' - - -//// [S7.8.4_A3.2_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T2 -description: Checking if execution of '\\\' fails -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -'\\\'; diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.symbols b/tests/baselines/reference/S7.8.4_A3.2_T2.symbols deleted file mode 100644 index 3052cd76a5c59..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T2.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts] //// - -=== S7.8.4_A3.2_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T2 -description: Checking if execution of '\\\' fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\\\' - diff --git a/tests/baselines/reference/S7.8.4_A3.2_T2.types b/tests/baselines/reference/S7.8.4_A3.2_T2.types deleted file mode 100644 index d5eacae9de9b9..0000000000000 --- a/tests/baselines/reference/S7.8.4_A3.2_T2.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts] //// - -=== S7.8.4_A3.2_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T2 -description: Checking if execution of '\\\' fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\\\' ->'\\\' : "\\'" - diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt b/tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt deleted file mode 100644 index 8ae29e946e26a..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T1.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A4.3_T1.ts(15,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - - -==== S7.8.4_A4.3_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: NonEscapeSequence is not EscapeCharacter - es5id: 7.8.4_A4.3_T1 - description: "EscapeCharacter :: DecimalDigits :: 1" - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - "\1" - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.js b/tests/baselines/reference/S7.8.4_A4.3_T1.js deleted file mode 100644 index caabb26390afc..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T1.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts] //// - -//// [S7.8.4_A4.3_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T1 -description: "EscapeCharacter :: DecimalDigits :: 1" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\1" - - -//// [S7.8.4_A4.3_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T1 -description: "EscapeCharacter :: DecimalDigits :: 1" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -"\1"; diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.symbols b/tests/baselines/reference/S7.8.4_A4.3_T1.symbols deleted file mode 100644 index 702f8989ffd79..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T1.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts] //// - -=== S7.8.4_A4.3_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T1 -description: "EscapeCharacter :: DecimalDigits :: 1" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\1" - diff --git a/tests/baselines/reference/S7.8.4_A4.3_T1.types b/tests/baselines/reference/S7.8.4_A4.3_T1.types deleted file mode 100644 index 71f24986703d5..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T1.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts] //// - -=== S7.8.4_A4.3_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T1 -description: "EscapeCharacter :: DecimalDigits :: 1" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\1" ->"\1" : "\u0001" - diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt b/tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt deleted file mode 100644 index 579fff15d68b2..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T2.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A4.3_T2.ts(15,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. - - -==== S7.8.4_A4.3_T2.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: NonEscapeSequence is not EscapeCharacter - es5id: 7.8.4_A4.3_T2 - description: "EscapeCharacter :: DecimalDigits :: 7" - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - "\7" - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.js b/tests/baselines/reference/S7.8.4_A4.3_T2.js deleted file mode 100644 index f99e981264d0c..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T2.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts] //// - -//// [S7.8.4_A4.3_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T2 -description: "EscapeCharacter :: DecimalDigits :: 7" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\7" - - -//// [S7.8.4_A4.3_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T2 -description: "EscapeCharacter :: DecimalDigits :: 7" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -"\7"; diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.symbols b/tests/baselines/reference/S7.8.4_A4.3_T2.symbols deleted file mode 100644 index cbf4e16f47c93..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T2.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts] //// - -=== S7.8.4_A4.3_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T2 -description: "EscapeCharacter :: DecimalDigits :: 7" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\7" - diff --git a/tests/baselines/reference/S7.8.4_A4.3_T2.types b/tests/baselines/reference/S7.8.4_A4.3_T2.types deleted file mode 100644 index cd3ea86d7ae4f..0000000000000 --- a/tests/baselines/reference/S7.8.4_A4.3_T2.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts] //// - -=== S7.8.4_A4.3_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T2 -description: "EscapeCharacter :: DecimalDigits :: 7" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\7" ->"\7" : "\u0007" - diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt b/tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt deleted file mode 100644 index 22072b5fabe46..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.1_T4.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -S7.8.4_A7.1_T4.ts(17,7): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.1_T4.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: | - EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit - HexDigit - es5id: 7.8.4_A7.1_T4 - description: "UnicodeEscapeSequence :: u000G is incorrect" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK# - "\u000G" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.js b/tests/baselines/reference/S7.8.4_A7.1_T4.js deleted file mode 100644 index e2fb4baa600dd..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.1_T4.js +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts] //// - -//// [S7.8.4_A7.1_T4.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: | - EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit - HexDigit -es5id: 7.8.4_A7.1_T4 -description: "UnicodeEscapeSequence :: u000G is incorrect" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK# -"\u000G" - - -//// [S7.8.4_A7.1_T4.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: | - EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit - HexDigit -es5id: 7.8.4_A7.1_T4 -description: "UnicodeEscapeSequence :: u000G is incorrect" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK# -"\u000G"; diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.symbols b/tests/baselines/reference/S7.8.4_A7.1_T4.symbols deleted file mode 100644 index 7717635f34cd1..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.1_T4.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts] //// - -=== S7.8.4_A7.1_T4.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: | - EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit - HexDigit -es5id: 7.8.4_A7.1_T4 -description: "UnicodeEscapeSequence :: u000G is incorrect" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK# -"\u000G" - diff --git a/tests/baselines/reference/S7.8.4_A7.1_T4.types b/tests/baselines/reference/S7.8.4_A7.1_T4.types deleted file mode 100644 index b5cf529a9c407..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.1_T4.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts] //// - -=== S7.8.4_A7.1_T4.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: | - EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit - HexDigit -es5id: 7.8.4_A7.1_T4 -description: "UnicodeEscapeSequence :: u000G is incorrect" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK# -"\u000G" ->"\u000G" : "\\u000G" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt deleted file mode 100644 index 9d178547ff940..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T1.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A7.2_T1.ts(15,5): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.2_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" - es5id: 7.8.4_A7.2_T1 - description: ":: HexDigit :: 1" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\u1" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.js b/tests/baselines/reference/S7.8.4_A7.2_T1.js deleted file mode 100644 index b5ca06471b5fc..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T1.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts] //// - -//// [S7.8.4_A7.2_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T1 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u1" - - -//// [S7.8.4_A7.2_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T1 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\u1"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.symbols b/tests/baselines/reference/S7.8.4_A7.2_T1.symbols deleted file mode 100644 index bc9a934c07248..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T1.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts] //// - -=== S7.8.4_A7.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T1 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u1" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T1.types b/tests/baselines/reference/S7.8.4_A7.2_T1.types deleted file mode 100644 index 104426a343320..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T1.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts] //// - -=== S7.8.4_A7.2_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T1 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u1" ->"\u1" : "\\u1" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt deleted file mode 100644 index cd634fb978a47..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T2.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A7.2_T2.ts(15,5): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.2_T2.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" - es5id: 7.8.4_A7.2_T2 - description: ":: HexDigit :: A" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\uA" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.js b/tests/baselines/reference/S7.8.4_A7.2_T2.js deleted file mode 100644 index 1a535979ec71c..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T2.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts] //// - -//// [S7.8.4_A7.2_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T2 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uA" - - -//// [S7.8.4_A7.2_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T2 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\uA"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.symbols b/tests/baselines/reference/S7.8.4_A7.2_T2.symbols deleted file mode 100644 index 580ae62cf8c96..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T2.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts] //// - -=== S7.8.4_A7.2_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T2 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uA" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T2.types b/tests/baselines/reference/S7.8.4_A7.2_T2.types deleted file mode 100644 index aa1b6547d037a..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T2.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts] //// - -=== S7.8.4_A7.2_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T2 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uA" ->"\uA" : "\\uA" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt deleted file mode 100644 index b7ce42ffe0881..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T3.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A7.2_T3.ts(15,6): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.2_T3.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" - es5id: 7.8.4_A7.2_T3 - description: ":: HexDigit :: 1" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\u11" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.js b/tests/baselines/reference/S7.8.4_A7.2_T3.js deleted file mode 100644 index 07ad67d3146d9..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T3.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts] //// - -//// [S7.8.4_A7.2_T3.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T3 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u11" - - -//// [S7.8.4_A7.2_T3.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T3 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\u11"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.symbols b/tests/baselines/reference/S7.8.4_A7.2_T3.symbols deleted file mode 100644 index 43ce0a3b3391e..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T3.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts] //// - -=== S7.8.4_A7.2_T3.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T3 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u11" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T3.types b/tests/baselines/reference/S7.8.4_A7.2_T3.types deleted file mode 100644 index 4323dfcdffd34..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T3.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts] //// - -=== S7.8.4_A7.2_T3.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T3 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u11" ->"\u11" : "\\u11" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt deleted file mode 100644 index af6b1a9f71a40..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T4.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A7.2_T4.ts(15,6): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.2_T4.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" - es5id: 7.8.4_A7.2_T4 - description: ":: HexDigit :: A" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\uAA" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.js b/tests/baselines/reference/S7.8.4_A7.2_T4.js deleted file mode 100644 index 17e56673f6bea..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T4.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts] //// - -//// [S7.8.4_A7.2_T4.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T4 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAA" - - -//// [S7.8.4_A7.2_T4.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T4 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\uAA"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.symbols b/tests/baselines/reference/S7.8.4_A7.2_T4.symbols deleted file mode 100644 index eb7b77f4e30c2..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T4.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts] //// - -=== S7.8.4_A7.2_T4.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T4 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAA" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T4.types b/tests/baselines/reference/S7.8.4_A7.2_T4.types deleted file mode 100644 index 09682aadbce67..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T4.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts] //// - -=== S7.8.4_A7.2_T4.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T4 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAA" ->"\uAA" : "\\uAA" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt deleted file mode 100644 index 21cc068d28d1b..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T5.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A7.2_T5.ts(15,7): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.2_T5.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" - es5id: 7.8.4_A7.2_T5 - description: ":: HexDigit :: 1" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\u111" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.js b/tests/baselines/reference/S7.8.4_A7.2_T5.js deleted file mode 100644 index 91023852ca5af..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T5.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts] //// - -//// [S7.8.4_A7.2_T5.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T5 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u111" - - -//// [S7.8.4_A7.2_T5.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T5 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\u111"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.symbols b/tests/baselines/reference/S7.8.4_A7.2_T5.symbols deleted file mode 100644 index 933ca679de3c4..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T5.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts] //// - -=== S7.8.4_A7.2_T5.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T5 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u111" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T5.types b/tests/baselines/reference/S7.8.4_A7.2_T5.types deleted file mode 100644 index b4d6cc7733361..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T5.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts] //// - -=== S7.8.4_A7.2_T5.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T5 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u111" ->"\u111" : "\\u111" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt b/tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt deleted file mode 100644 index 8823be5401043..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T6.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -S7.8.4_A7.2_T6.ts(15,7): error TS1125: Hexadecimal digit expected. - - -==== S7.8.4_A7.2_T6.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" - es5id: 7.8.4_A7.2_T6 - description: ":: HexDigit :: A" - negative: - phase: parse - type: SyntaxError - ---*/ - - - //CHECK#1 - "\uAAA" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.js b/tests/baselines/reference/S7.8.4_A7.2_T6.js deleted file mode 100644 index 710fcda0c7554..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T6.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts] //// - -//// [S7.8.4_A7.2_T6.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T6 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAAA" - - -//// [S7.8.4_A7.2_T6.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T6 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ -//CHECK#1 -"\uAAA"; diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.symbols b/tests/baselines/reference/S7.8.4_A7.2_T6.symbols deleted file mode 100644 index ca9d2c149442e..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T6.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts] //// - -=== S7.8.4_A7.2_T6.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T6 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAAA" - diff --git a/tests/baselines/reference/S7.8.4_A7.2_T6.types b/tests/baselines/reference/S7.8.4_A7.2_T6.types deleted file mode 100644 index 39465047c93b6..0000000000000 --- a/tests/baselines/reference/S7.8.4_A7.2_T6.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts] //// - -=== S7.8.4_A7.2_T6.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T6 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAAA" ->"\uAAA" : "\\uAAA" - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt deleted file mode 100644 index 497fe1fdbcd8e..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T1.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -S7.8.5_A1.2_T1.ts(23,1): error TS1010: '*/' expected. - - -==== S7.8.5_A1.2_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionFirstChar - info: | - RegularExpressionChars :: - [empty] - RegularExpressionCharsRegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - description: > - The first character of a regular expression may not be "*" - negative: - phase: parse - type: SyntaxError - ---*/ - - - /*/ - - -!!! error TS1010: '*/' expected. \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.js b/tests/baselines/reference/S7.8.5_A1.2_T1.js deleted file mode 100644 index da5f7842ae0e0..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T1.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts] //// - -//// [S7.8.5_A1.2_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionFirstChar -info: | - RegularExpressionChars :: - [empty] - RegularExpressionCharsRegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "*" -negative: - phase: parse - type: SyntaxError ----*/ - - -/*/ - - -//// [S7.8.5_A1.2_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionFirstChar -info: | - RegularExpressionChars :: - [empty] - RegularExpressionCharsRegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "*" -negative: - phase: parse - type: SyntaxError ----*/ -/*/ - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.symbols b/tests/baselines/reference/S7.8.5_A1.2_T1.symbols deleted file mode 100644 index 2bfa8c5b9d3ee..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T1.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts] //// - -=== S7.8.5_A1.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionFirstChar -info: | - RegularExpressionChars :: - [empty] - RegularExpressionCharsRegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "*" -negative: - phase: parse - type: SyntaxError ----*/ - - -/*/ - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T1.types b/tests/baselines/reference/S7.8.5_A1.2_T1.types deleted file mode 100644 index 2bfa8c5b9d3ee..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T1.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts] //// - -=== S7.8.5_A1.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionFirstChar -info: | - RegularExpressionChars :: - [empty] - RegularExpressionCharsRegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "*" -negative: - phase: parse - type: SyntaxError ----*/ - - -/*/ - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt deleted file mode 100644 index dc0303ddb2484..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T2.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -S7.8.5_A1.2_T2.ts(25,2): error TS1161: Unterminated regular expression literal. - - -==== S7.8.5_A1.2_T2.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-literals-regular-expression-literals - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - description: > - The first character of a regular expression may not be "\" - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\/ - -!!! error TS1161: Unterminated regular expression literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.js b/tests/baselines/reference/S7.8.5_A1.2_T2.js deleted file mode 100644 index 7d3b2cd9d7a8c..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T2.js +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts] //// - -//// [S7.8.5_A1.2_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "\" -negative: - phase: parse - type: SyntaxError ----*/ - - -/\/ - - -//// [S7.8.5_A1.2_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "\" -negative: - phase: parse - type: SyntaxError ----*/ -/\/; diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.symbols b/tests/baselines/reference/S7.8.5_A1.2_T2.symbols deleted file mode 100644 index 289ac964d37d1..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T2.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts] //// - -=== S7.8.5_A1.2_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "\" -negative: - phase: parse - type: SyntaxError ----*/ - - -/\/ - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T2.types b/tests/baselines/reference/S7.8.5_A1.2_T2.types deleted file mode 100644 index dee585d1fa1e2..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T2.types +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts] //// - -=== S7.8.5_A1.2_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "\" -negative: - phase: parse - type: SyntaxError ----*/ - - -/\/ ->/\/ : RegExp - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt deleted file mode 100644 index 17e666708893b..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T3.errors.txt +++ /dev/null @@ -1,36 +0,0 @@ -S7.8.5_A1.2_T3.ts(26,1): error TS1128: Declaration or statement expected. -S7.8.5_A1.2_T3.ts(26,2): error TS2304: Cannot find name 'source'. - - -==== S7.8.5_A1.2_T3.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-literals-regular-expression-literals - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - description: > - The first character of a regular expression may not be "/" - negative: - phase: parse - type: SyntaxError - ---*/ - - - /// - .source; - ~ -!!! error TS1128: Declaration or statement expected. - ~~~~~~ -!!! error TS2304: Cannot find name 'source'. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.js b/tests/baselines/reference/S7.8.5_A1.2_T3.js deleted file mode 100644 index 1f34ef6064366..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T3.js +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts] //// - -//// [S7.8.5_A1.2_T3.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "/" -negative: - phase: parse - type: SyntaxError ----*/ - - -/// -.source; - - -//// [S7.8.5_A1.2_T3.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -source; diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.symbols b/tests/baselines/reference/S7.8.5_A1.2_T3.symbols deleted file mode 100644 index 0c51b327dbaeb..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T3.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts] //// - -=== S7.8.5_A1.2_T3.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "/" -negative: - phase: parse - type: SyntaxError ----*/ - - -/// -.source; - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T3.types b/tests/baselines/reference/S7.8.5_A1.2_T3.types deleted file mode 100644 index 000bb270f2b27..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T3.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts] //// - -=== S7.8.5_A1.2_T3.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "/" -negative: - phase: parse - type: SyntaxError ----*/ - - -/// -.source; ->source : any - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt b/tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt deleted file mode 100644 index 2643ab228e4b5..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T4.errors.txt +++ /dev/null @@ -1,36 +0,0 @@ -S7.8.5_A1.2_T4.ts(26,1): error TS1128: Declaration or statement expected. -S7.8.5_A1.2_T4.ts(26,2): error TS2304: Cannot find name 'source'. - - -==== S7.8.5_A1.2_T4.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-literals-regular-expression-literals - info: | - RegularExpressionLiteral:: - / RegularExpressionBody / RegularExpressionFlags - - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars:: - [empty] - - MemberExpression . IdentifierName - - description: A regular expression may not be empty. - negative: - phase: parse - type: SyntaxError - ---*/ - - - // - .source; - ~ -!!! error TS1128: Declaration or statement expected. - ~~~~~~ -!!! error TS2304: Cannot find name 'source'. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.js b/tests/baselines/reference/S7.8.5_A1.2_T4.js deleted file mode 100644 index 31cc5d8373afa..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T4.js +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts] //// - -//// [S7.8.5_A1.2_T4.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionLiteral:: - / RegularExpressionBody / RegularExpressionFlags - - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars:: - [empty] - - MemberExpression . IdentifierName - -description: A regular expression may not be empty. -negative: - phase: parse - type: SyntaxError ----*/ - - -// -.source; - - -//// [S7.8.5_A1.2_T4.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -source; diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.symbols b/tests/baselines/reference/S7.8.5_A1.2_T4.symbols deleted file mode 100644 index 265708e6b84e9..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T4.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts] //// - -=== S7.8.5_A1.2_T4.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionLiteral:: - / RegularExpressionBody / RegularExpressionFlags - - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars:: - [empty] - - MemberExpression . IdentifierName - -description: A regular expression may not be empty. -negative: - phase: parse - type: SyntaxError ----*/ - - -// -.source; - diff --git a/tests/baselines/reference/S7.8.5_A1.2_T4.types b/tests/baselines/reference/S7.8.5_A1.2_T4.types deleted file mode 100644 index e492b8ef0b3ca..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.2_T4.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts] //// - -=== S7.8.5_A1.2_T4.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionLiteral:: - / RegularExpressionBody / RegularExpressionFlags - - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars:: - [empty] - - MemberExpression . IdentifierName - -description: A regular expression may not be empty. -negative: - phase: parse - type: SyntaxError ----*/ - - -// -.source; ->source : any - diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt b/tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt deleted file mode 100644 index e42b8cbbbeee2..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T1.errors.txt +++ /dev/null @@ -1,42 +0,0 @@ -S7.8.5_A1.3_T1.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A1.3_T1.ts(28,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A1.3_T1.ts(29,2): error TS1109: Expression expected. - - -==== S7.8.5_A1.3_T1.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionNonTerminator - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - The first character of a regular expression may not be a (\u000A) - negative: - phase: parse - type: SyntaxError - ---*/ - - - / - ~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.js b/tests/baselines/reference/S7.8.5_A1.3_T1.js deleted file mode 100644 index f7723e5a4ad8b..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T1.js +++ /dev/null @@ -1,62 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts] //// - -//// [S7.8.5_A1.3_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a (\u000A) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ - - -//// [S7.8.5_A1.3_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a (\u000A) -negative: - phase: parse - type: SyntaxError ----*/ -/ - / -; diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.symbols b/tests/baselines/reference/S7.8.5_A1.3_T1.symbols deleted file mode 100644 index a7e1ee7c913e6..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T1.symbols +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts] //// - -=== S7.8.5_A1.3_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a (\u000A) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ - diff --git a/tests/baselines/reference/S7.8.5_A1.3_T1.types b/tests/baselines/reference/S7.8.5_A1.3_T1.types deleted file mode 100644 index ac2dbc62ca52b..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T1.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts] //// - -=== S7.8.5_A1.3_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a (\u000A) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ ->// : number ->/ : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt b/tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt deleted file mode 100644 index 2cd0909b4f8ef..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T3.errors.txt +++ /dev/null @@ -1,42 +0,0 @@ -S7.8.5_A1.3_T3.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A1.3_T3.ts(28,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A1.3_T3.ts(29,2): error TS1109: Expression expected. - - -==== S7.8.5_A1.3_T3.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionNonTerminator - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - The first character of a regular expression may not be a , (\u000D) - negative: - phase: parse - type: SyntaxError - ---*/ - - - / - ~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.js b/tests/baselines/reference/S7.8.5_A1.3_T3.js deleted file mode 100644 index a07f6a961d9ad..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T3.js +++ /dev/null @@ -1,62 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts] //// - -//// [S7.8.5_A1.3_T3.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a , (\u000D) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ - - -//// [S7.8.5_A1.3_T3.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a , (\u000D) -negative: - phase: parse - type: SyntaxError ----*/ -/ - / -; diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.symbols b/tests/baselines/reference/S7.8.5_A1.3_T3.symbols deleted file mode 100644 index 7aec2bf7291c5..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T3.symbols +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts] //// - -=== S7.8.5_A1.3_T3.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a , (\u000D) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ - diff --git a/tests/baselines/reference/S7.8.5_A1.3_T3.types b/tests/baselines/reference/S7.8.5_A1.3_T3.types deleted file mode 100644 index 7729603905b83..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.3_T3.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts] //// - -=== S7.8.5_A1.3_T3.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a , (\u000D) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ ->// : number ->/ : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt b/tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt deleted file mode 100644 index 1865f5c9ccc22..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T1.errors.txt +++ /dev/null @@ -1,36 +0,0 @@ -S7.8.5_A1.5_T1.ts(22,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A1.5_T1.ts(22,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A1.5_T1.ts(23,2): error TS1109: Expression expected. - - -==== S7.8.5_A1.5_T1.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionBackslashSequence - info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - A RegularExpressionBackslashSequence may not contain a - - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\ - ~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.js b/tests/baselines/reference/S7.8.5_A1.5_T1.js deleted file mode 100644 index 5905267544711..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T1.js +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts] //// - -//// [S7.8.5_A1.5_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a - -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ -/ - - -//// [S7.8.5_A1.5_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a - -negative: - phase: parse - type: SyntaxError ----*/ -/\ - / -; diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.symbols b/tests/baselines/reference/S7.8.5_A1.5_T1.symbols deleted file mode 100644 index 0ef6d000cec57..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T1.symbols +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts] //// - -=== S7.8.5_A1.5_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a - -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ -/ - diff --git a/tests/baselines/reference/S7.8.5_A1.5_T1.types b/tests/baselines/reference/S7.8.5_A1.5_T1.types deleted file mode 100644 index ac5849acb0ffe..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T1.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts] //// - -=== S7.8.5_A1.5_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a - -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ ->/\/ : number ->/\ : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt b/tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt deleted file mode 100644 index 17c3e500de12c..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T3.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -S7.8.5_A1.5_T3.ts(21,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A1.5_T3.ts(21,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A1.5_T3.ts(22,2): error TS1109: Expression expected. - - -==== S7.8.5_A1.5_T3.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionBackslashSequence - info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - A RegularExpressionBackslashSequence may not contain a - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\ - ~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.js b/tests/baselines/reference/S7.8.5_A1.5_T3.js deleted file mode 100644 index afe8ba738b13c..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T3.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts] //// - -//// [S7.8.5_A1.5_T3.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ -/ - - -//// [S7.8.5_A1.5_T3.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a -negative: - phase: parse - type: SyntaxError ----*/ -/\ - / -; diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.symbols b/tests/baselines/reference/S7.8.5_A1.5_T3.symbols deleted file mode 100644 index 45ec2119d0865..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T3.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts] //// - -=== S7.8.5_A1.5_T3.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ -/ - diff --git a/tests/baselines/reference/S7.8.5_A1.5_T3.types b/tests/baselines/reference/S7.8.5_A1.5_T3.types deleted file mode 100644 index f5c024fa1f547..0000000000000 --- a/tests/baselines/reference/S7.8.5_A1.5_T3.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts] //// - -=== S7.8.5_A1.5_T3.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ ->/\/ : number ->/\ : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt b/tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt deleted file mode 100644 index 81377d5f9a423..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T1.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -S7.8.5_A2.2_T1.ts(22,2): error TS1161: Unterminated regular expression literal. - - -==== S7.8.5_A2.2_T1.ts (1 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionChar - info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - A regular express may not contain a "\" as a SourceCharacter - - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a\/ - -!!! error TS1161: Unterminated regular expression literal. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.js b/tests/baselines/reference/S7.8.5_A2.2_T1.js deleted file mode 100644 index fb687bed32464..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T1.js +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts] //// - -//// [S7.8.5_A2.2_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular express may not contain a "\" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\/ - - -//// [S7.8.5_A2.2_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular express may not contain a "\" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ -/a\/; diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.symbols b/tests/baselines/reference/S7.8.5_A2.2_T1.symbols deleted file mode 100644 index 885be77962ff5..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T1.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts] //// - -=== S7.8.5_A2.2_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular express may not contain a "\" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\/ - diff --git a/tests/baselines/reference/S7.8.5_A2.2_T1.types b/tests/baselines/reference/S7.8.5_A2.2_T1.types deleted file mode 100644 index 4b2427c3247a3..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T1.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts] //// - -=== S7.8.5_A2.2_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular express may not contain a "\" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\/ ->/a\/ : RegExp - diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt b/tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt deleted file mode 100644 index 4894bccbf95f0..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T2.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -S7.8.5_A2.2_T2.ts(22,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A2.2_T2.ts(22,5): error TS1109: Expression expected. - - -==== S7.8.5_A2.2_T2.ts (2 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionChar - info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - A regular expression may not contain a "/" as a SourceCharacter - - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a//.source; - ~~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - ~ -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.js b/tests/baselines/reference/S7.8.5_A2.2_T2.js deleted file mode 100644 index 7a23f7f67d3d9..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T2.js +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts] //// - -//// [S7.8.5_A2.2_T2.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a "/" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a//.source; - - -//// [S7.8.5_A2.2_T2.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a "/" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ -/a/ / .source; diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.symbols b/tests/baselines/reference/S7.8.5_A2.2_T2.symbols deleted file mode 100644 index ee47efb678a3b..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T2.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts] //// - -=== S7.8.5_A2.2_T2.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a "/" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a//.source; - diff --git a/tests/baselines/reference/S7.8.5_A2.2_T2.types b/tests/baselines/reference/S7.8.5_A2.2_T2.types deleted file mode 100644 index d3f12b08226bb..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.2_T2.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts] //// - -=== S7.8.5_A2.2_T2.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a "/" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a//.source; ->/a//.source : number ->/a/ : RegExp ->.source : any -> : any ->source : any - diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt b/tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt deleted file mode 100644 index 5d608d426c27e..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T1.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -S7.8.5_A2.3_T1.ts(31,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A2.3_T1.ts(31,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A2.3_T1.ts(32,2): error TS1109: Expression expected. - - -==== S7.8.5_A2.3_T1.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-literals-regular-expression-literals - info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - - description: > - A regular expression may not contain a as a SourceCharacter - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a - ~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.js b/tests/baselines/reference/S7.8.5_A2.3_T1.js deleted file mode 100644 index bcca9a1e7ed00..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T1.js +++ /dev/null @@ -1,68 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts] //// - -//// [S7.8.5_A2.3_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a -/ - - -//// [S7.8.5_A2.3_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ -/a - / -; diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.symbols b/tests/baselines/reference/S7.8.5_A2.3_T1.symbols deleted file mode 100644 index ebb4641d2f9c1..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T1.symbols +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts] //// - -=== S7.8.5_A2.3_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a -/ - diff --git a/tests/baselines/reference/S7.8.5_A2.3_T1.types b/tests/baselines/reference/S7.8.5_A2.3_T1.types deleted file mode 100644 index a37c32309b0e7..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T1.types +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts] //// - -=== S7.8.5_A2.3_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a ->/a/ : number ->/a : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt b/tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt deleted file mode 100644 index a913504bb96dd..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T3.errors.txt +++ /dev/null @@ -1,46 +0,0 @@ -S7.8.5_A2.3_T3.ts(32,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A2.3_T3.ts(32,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A2.3_T3.ts(33,2): error TS1109: Expression expected. - - -==== S7.8.5_A2.3_T3.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-literals-regular-expression-literals - info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - - description: > - A regular expression may not contain a as a SourceCharacter - - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a - ~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.js b/tests/baselines/reference/S7.8.5_A2.3_T3.js deleted file mode 100644 index e211a40f224cf..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T3.js +++ /dev/null @@ -1,70 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts] //// - -//// [S7.8.5_A2.3_T3.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a -/ - - -//// [S7.8.5_A2.3_T3.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ -/a - / -; diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.symbols b/tests/baselines/reference/S7.8.5_A2.3_T3.symbols deleted file mode 100644 index 77f0685414979..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T3.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts] //// - -=== S7.8.5_A2.3_T3.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a -/ - diff --git a/tests/baselines/reference/S7.8.5_A2.3_T3.types b/tests/baselines/reference/S7.8.5_A2.3_T3.types deleted file mode 100644 index be6d681c633c6..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.3_T3.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts] //// - -=== S7.8.5_A2.3_T3.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a ->/a/ : number ->/a : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt b/tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt deleted file mode 100644 index acc57dbe8e986..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T1.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -S7.8.5_A2.5_T1.ts(27,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A2.5_T1.ts(27,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A2.5_T1.ts(27,3): error TS1511: Undetermined character escape. -S7.8.5_A2.5_T1.ts(28,2): error TS1109: Expression expected. - - -==== S7.8.5_A2.5_T1.ts (4 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionBackslashSequence - info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - - description: > - A regular expression may not contain a as a SourceCharacter - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a\ - ~~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - ~ -!!! error TS1511: Undetermined character escape. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.js b/tests/baselines/reference/S7.8.5_A2.5_T1.js deleted file mode 100644 index b963924614e59..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T1.js +++ /dev/null @@ -1,60 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts] //// - -//// [S7.8.5_A2.5_T1.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ -/ - - -//// [S7.8.5_A2.5_T1.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ -/a\ - / -; diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.symbols b/tests/baselines/reference/S7.8.5_A2.5_T1.symbols deleted file mode 100644 index 8d73f277d5807..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T1.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts] //// - -=== S7.8.5_A2.5_T1.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ -/ - diff --git a/tests/baselines/reference/S7.8.5_A2.5_T1.types b/tests/baselines/reference/S7.8.5_A2.5_T1.types deleted file mode 100644 index 40e9994b74f7c..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T1.types +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts] //// - -=== S7.8.5_A2.5_T1.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ ->/a\/ : number ->/a\ : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt b/tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt deleted file mode 100644 index d9443f092c6b0..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T3.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -S7.8.5_A2.5_T3.ts(27,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -S7.8.5_A2.5_T3.ts(27,2): error TS1161: Unterminated regular expression literal. -S7.8.5_A2.5_T3.ts(27,3): error TS1511: Undetermined character escape. -S7.8.5_A2.5_T3.ts(28,2): error TS1109: Expression expected. - - -==== S7.8.5_A2.5_T3.ts (4 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionBackslashSequence - info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - - description: > - A regular expression may not contain a as a SourceCharacter - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a\ - ~~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - ~ -!!! error TS1511: Undetermined character escape. - / - -!!! error TS1109: Expression expected. - \ No newline at end of file diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.js b/tests/baselines/reference/S7.8.5_A2.5_T3.js deleted file mode 100644 index ae283c03ea11e..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T3.js +++ /dev/null @@ -1,60 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts] //// - -//// [S7.8.5_A2.5_T3.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ -/ - - -//// [S7.8.5_A2.5_T3.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ -/a\ - / -; diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.symbols b/tests/baselines/reference/S7.8.5_A2.5_T3.symbols deleted file mode 100644 index a2e9a3b10e1d7..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T3.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts] //// - -=== S7.8.5_A2.5_T3.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ -/ - diff --git a/tests/baselines/reference/S7.8.5_A2.5_T3.types b/tests/baselines/reference/S7.8.5_A2.5_T3.types deleted file mode 100644 index f71dfe346e031..0000000000000 --- a/tests/baselines/reference/S7.8.5_A2.5_T3.types +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts] //// - -=== S7.8.5_A2.5_T3.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ ->/a\/ : number ->/a\ : RegExp - -/ - -> : any - diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.errors.txt b/tests/baselines/reference/bigint-binary-invalid-digit.errors.txt deleted file mode 100644 index 564d0fe3a60da..0000000000000 --- a/tests/baselines/reference/bigint-binary-invalid-digit.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -bigint-binary-invalid-digit.ts(25,3): error TS1177: Binary digit expected. - - -==== bigint-binary-invalid-digit.ts (1 errors) ==== - // Copyright (C) 2017 Robin Templeton. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Binary BigInt literal containing an invalid digit - esid: prod-NumericLiteral - info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n - negative: - phase: parse - type: SyntaxError - features: [BigInt] - ---*/ - - - 0b2n; - -!!! error TS1177: Binary digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.js b/tests/baselines/reference/bigint-binary-invalid-digit.js deleted file mode 100644 index a579123caeade..0000000000000 --- a/tests/baselines/reference/bigint-binary-invalid-digit.js +++ /dev/null @@ -1,54 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts] //// - -//// [bigint-binary-invalid-digit.ts] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Binary BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0b2n; - - -//// [bigint-binary-invalid-digit.js] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Binary BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ -0; -2n; diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.symbols b/tests/baselines/reference/bigint-binary-invalid-digit.symbols deleted file mode 100644 index d3c0dc01a205c..0000000000000 --- a/tests/baselines/reference/bigint-binary-invalid-digit.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts] //// - -=== bigint-binary-invalid-digit.ts === - -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Binary BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0b2n; - diff --git a/tests/baselines/reference/bigint-binary-invalid-digit.types b/tests/baselines/reference/bigint-binary-invalid-digit.types deleted file mode 100644 index b0bee55196d42..0000000000000 --- a/tests/baselines/reference/bigint-binary-invalid-digit.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts] //// - -=== bigint-binary-invalid-digit.ts === -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Binary BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0b2n; ->0b : 0 ->2n : 2n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt deleted file mode 100644 index f3eeb0d30d0c8..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts(43,3): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0b_1n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js deleted file mode 100644 index eba7e68778925..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// - -//// [bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b_1n; - - -//// [bigint-numeric-separator-literal-bil-bd-nsl-bd-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols deleted file mode 100644 index bc765cbfbaa7c..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// - -=== bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b_1n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types deleted file mode 100644 index 2dd9cf7b261ce..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// - -=== bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b_1n; ->0b_1n : 1n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt deleted file mode 100644 index ef1381bc7cf73..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts(43,5): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0b0__0n; - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js deleted file mode 100644 index 4753596bca841..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// - -//// [bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0__0n; - - -//// [bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols deleted file mode 100644 index 8f66dc0e9d134..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0__0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types deleted file mode 100644 index 5aff521191af7..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0__0n; ->0b0__0n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt deleted file mode 100644 index 7652dc1380d41..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.errors.txt +++ /dev/null @@ -1,49 +0,0 @@ -bigint-numeric-separator-literal-bil-nsl-bd-err.ts(42,4): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-bil-nsl-bd-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral (before n) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0b0_n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js deleted file mode 100644 index 996f3ab202ce4..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.js +++ /dev/null @@ -1,87 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts] //// - -//// [bigint-numeric-separator-literal-bil-nsl-bd-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral (before n) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0_n; - - -//// [bigint-numeric-separator-literal-bil-nsl-bd-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral (before n) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols deleted file mode 100644 index 3a822cc0fd77f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.symbols +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts] //// - -=== bigint-numeric-separator-literal-bil-nsl-bd-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral (before n) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0_n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types deleted file mode 100644 index 2bb3dc224da3c..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-bil-nsl-bd-err.types +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts] //// - -=== bigint-numeric-separator-literal-bil-nsl-bd-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral (before n) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0_n; ->0b0_n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt deleted file mode 100644 index 475387690d5eb..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt +++ /dev/null @@ -1,42 +0,0 @@ -bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts(35,3): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 1__0123456789n; - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js deleted file mode 100644 index 7c751302da27e..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js +++ /dev/null @@ -1,73 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// - -//// [bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1__0123456789n; - - -//// [bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -10123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols deleted file mode 100644 index 4ccc44a363a6f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.symbols +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1__0123456789n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types deleted file mode 100644 index 2ec58a3b2cabf..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.types +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1__0123456789n; ->1__0123456789n : 10123456789n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt deleted file mode 100644 index aecd082daeb83..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -bigint-numeric-separator-literal-dd-nsl-err.ts(37,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-dd-nsl-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 1_n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js deleted file mode 100644 index 4ea1384bb3536..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.js +++ /dev/null @@ -1,77 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts] //// - -//// [bigint-numeric-separator-literal-dd-nsl-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1_n; - - -//// [bigint-numeric-separator-literal-dd-nsl-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols deleted file mode 100644 index 845fa4238632e..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts] //// - -=== bigint-numeric-separator-literal-dd-nsl-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1_n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types deleted file mode 100644 index a00c3a3119361..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dd-nsl-err.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts] //// - -=== bigint-numeric-separator-literal-dd-nsl-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1_n; ->1_n : 1n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt deleted file mode 100644 index b34cb831b69ee..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt +++ /dev/null @@ -1,42 +0,0 @@ -bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts(35,4): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 10__0123456789n; - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js deleted file mode 100644 index 19fbad39f9b3a..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js +++ /dev/null @@ -1,73 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// - -//// [bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10__0123456789n; - - -//// [bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -100123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols deleted file mode 100644 index 91d70465d61e8..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.symbols +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10__0123456789n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types deleted file mode 100644 index ce21b07b68faf..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.types +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10__0123456789n; ->10__0123456789n : 100123456789n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt deleted file mode 100644 index 330eccb5bbd41..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -bigint-numeric-separator-literal-dds-nsl-err.ts(38,3): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-dds-nsl-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 10_n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js deleted file mode 100644 index 1e926a7e08224..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.js +++ /dev/null @@ -1,79 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts] //// - -//// [bigint-numeric-separator-literal-dds-nsl-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10_n; - - -//// [bigint-numeric-separator-literal-dds-nsl-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -10n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols deleted file mode 100644 index db398bfba576e..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.symbols +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts] //// - -=== bigint-numeric-separator-literal-dds-nsl-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10_n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types deleted file mode 100644 index d171fd4f10a7a..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-dds-nsl-err.types +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts] //// - -=== bigint-numeric-separator-literal-dds-nsl-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10_n; ->10_n : 10n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt deleted file mode 100644 index 3faf8a313f6a6..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts(43,3): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0x_1n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js deleted file mode 100644 index 6e2df228ad23e..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// - -//// [bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x_1n; - - -//// [bigint-numeric-separator-literal-hil-hd-nsl-hd-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0x1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols deleted file mode 100644 index 1e6b9cb2f1e8f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// - -=== bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x_1n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types deleted file mode 100644 index 87391bc8a4e17..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// - -=== bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x_1n; ->0x_1n : 1n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt deleted file mode 100644 index 2e8504102e188..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts(43,5): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0x0__0n; - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js deleted file mode 100644 index c94dcd21e9cc9..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// - -//// [bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0__0n; - - -//// [bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0x00n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols deleted file mode 100644 index 95c643d5e7f67..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0__0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types deleted file mode 100644 index 02760f5349401..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0__0n; ->0x0__0n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt deleted file mode 100644 index c1df168d4bab5..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-hil-nsl-hd-err.ts(43,4): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-hil-nsl-hd-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0x0_n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js deleted file mode 100644 index c07bdee531502..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts] //// - -//// [bigint-numeric-separator-literal-hil-nsl-hd-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0_n; - - -//// [bigint-numeric-separator-literal-hil-nsl-hd-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0x0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols deleted file mode 100644 index 57a85a88e9653..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts] //// - -=== bigint-numeric-separator-literal-hil-nsl-hd-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0_n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types deleted file mode 100644 index 69f5ba9a4a6d2..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-hil-nsl-hd-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts] //// - -=== bigint-numeric-separator-literal-hil-nsl-hd-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0_n; ->0x0_n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt deleted file mode 100644 index f1f6fbcb7dadf..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.errors.txt +++ /dev/null @@ -1,64 +0,0 @@ -bigint-numeric-separator-literal-lol-00-err.ts(51,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. -bigint-numeric-separator-literal-lol-00-err.ts(51,3): error TS1005: ';' expected. -bigint-numeric-separator-literal-lol-00-err.ts(51,3): error TS2304: Cannot find name '_0n'. - - -==== bigint-numeric-separator-literal-lol-00-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 00_0n; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - ~~~ -!!! error TS1005: ';' expected. - ~~~ -!!! error TS2304: Cannot find name '_0n'. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js deleted file mode 100644 index 007821b1040e9..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.js +++ /dev/null @@ -1,106 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts] //// - -//// [bigint-numeric-separator-literal-lol-00-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -00_0n; - - -//// [bigint-numeric-separator-literal-lol-00-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0; -_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols deleted file mode 100644 index 3b6b7b4c729a9..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.symbols +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts] //// - -=== bigint-numeric-separator-literal-lol-00-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -00_0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types deleted file mode 100644 index ea393ed6d2fb0..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-00-err.types +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts] //// - -=== bigint-numeric-separator-literal-lol-00-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -00_0n; ->00 : 0 ->_0n : any - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt deleted file mode 100644 index 0936d73f3fc6d..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.errors.txt +++ /dev/null @@ -1,64 +0,0 @@ -bigint-numeric-separator-literal-lol-01-err.ts(51,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. -bigint-numeric-separator-literal-lol-01-err.ts(51,3): error TS1005: ';' expected. -bigint-numeric-separator-literal-lol-01-err.ts(51,3): error TS2304: Cannot find name '_0n'. - - -==== bigint-numeric-separator-literal-lol-01-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 01_0n; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - ~~~ -!!! error TS1005: ';' expected. - ~~~ -!!! error TS2304: Cannot find name '_0n'. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js deleted file mode 100644 index 0ceedc86820b8..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.js +++ /dev/null @@ -1,106 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts] //// - -//// [bigint-numeric-separator-literal-lol-01-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -01_0n; - - -//// [bigint-numeric-separator-literal-lol-01-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -1; -_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols deleted file mode 100644 index 1f86bbac174b8..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.symbols +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts] //// - -=== bigint-numeric-separator-literal-lol-01-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -01_0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types deleted file mode 100644 index 7634a4a0d0b67..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-01-err.types +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts] //// - -=== bigint-numeric-separator-literal-lol-01-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -01_0n; ->01 : 1 ->_0n : any - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt deleted file mode 100644 index a4c9e02460126..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.errors.txt +++ /dev/null @@ -1,66 +0,0 @@ -bigint-numeric-separator-literal-lol-07-err.ts(53,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. -bigint-numeric-separator-literal-lol-07-err.ts(53,3): error TS1005: ';' expected. -bigint-numeric-separator-literal-lol-07-err.ts(53,3): error TS2304: Cannot find name '_0n'. - - -==== bigint-numeric-separator-literal-lol-07-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 07_0n; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. - ~~~ -!!! error TS1005: ';' expected. - ~~~ -!!! error TS2304: Cannot find name '_0n'. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js deleted file mode 100644 index c079c4f1e6274..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.js +++ /dev/null @@ -1,110 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts] //// - -//// [bigint-numeric-separator-literal-lol-07-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -07_0n; - - -//// [bigint-numeric-separator-literal-lol-07-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -7; -_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols deleted file mode 100644 index 979cc1c532e2f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.symbols +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts] //// - -=== bigint-numeric-separator-literal-lol-07-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -07_0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types deleted file mode 100644 index d3d2d41acc9c3..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-07-err.types +++ /dev/null @@ -1,59 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts] //// - -=== bigint-numeric-separator-literal-lol-07-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -07_0n; ->07 : 7 ->_0n : any - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt deleted file mode 100644 index 63513b8606374..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.errors.txt +++ /dev/null @@ -1,58 +0,0 @@ -bigint-numeric-separator-literal-lol-0_0-err.ts(51,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-lol-0_0-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0_0n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js deleted file mode 100644 index 5e5b19170b102..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.js +++ /dev/null @@ -1,105 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts] //// - -//// [bigint-numeric-separator-literal-lol-0_0-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0n; - - -//// [bigint-numeric-separator-literal-lol-0_0-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -00n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols deleted file mode 100644 index d676c577e207b..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.symbols +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts] //// - -=== bigint-numeric-separator-literal-lol-0_0-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types deleted file mode 100644 index d8cec5628de4e..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_0-err.types +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts] //// - -=== bigint-numeric-separator-literal-lol-0_0-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0n; ->0_0n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt deleted file mode 100644 index dc868f911cda1..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.errors.txt +++ /dev/null @@ -1,58 +0,0 @@ -bigint-numeric-separator-literal-lol-0_1-err.ts(51,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-lol-0_1-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0_1n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js deleted file mode 100644 index 0a90ea715f385..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.js +++ /dev/null @@ -1,105 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts] //// - -//// [bigint-numeric-separator-literal-lol-0_1-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_1n; - - -//// [bigint-numeric-separator-literal-lol-0_1-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -01n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols deleted file mode 100644 index 9dcb2fb6924c3..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.symbols +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts] //// - -=== bigint-numeric-separator-literal-lol-0_1-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_1n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types deleted file mode 100644 index fd8c20315218a..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_1-err.types +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts] //// - -=== bigint-numeric-separator-literal-lol-0_1-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_1n; ->0_1n : 1n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt deleted file mode 100644 index 6d3ff45d1c81c..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.errors.txt +++ /dev/null @@ -1,59 +0,0 @@ -bigint-numeric-separator-literal-lol-0_7-err.ts(52,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-lol-0_7-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0_7n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js deleted file mode 100644 index 30ac15e3133df..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.js +++ /dev/null @@ -1,107 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts] //// - -//// [bigint-numeric-separator-literal-lol-0_7-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_7n; - - -//// [bigint-numeric-separator-literal-lol-0_7-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -07n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols deleted file mode 100644 index 8fbb0c979d202..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.symbols +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts] //// - -=== bigint-numeric-separator-literal-lol-0_7-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_7n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types deleted file mode 100644 index a44c6f04bfca7..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-lol-0_7-err.types +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts] //// - -=== bigint-numeric-separator-literal-lol-0_7-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_7n; ->0_7n : 7n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt deleted file mode 100644 index 921578187344a..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.errors.txt +++ /dev/null @@ -1,61 +0,0 @@ -bigint-numeric-separator-literal-nonoctal-08-err.ts(48,1): error TS1489: Decimals with leading zeros are not allowed. -bigint-numeric-separator-literal-nonoctal-08-err.ts(48,3): error TS1005: ';' expected. -bigint-numeric-separator-literal-nonoctal-08-err.ts(48,3): error TS2304: Cannot find name '_0n'. - - -==== bigint-numeric-separator-literal-nonoctal-08-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 08_0n; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~~~ -!!! error TS1005: ';' expected. - ~~~ -!!! error TS2304: Cannot find name '_0n'. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js deleted file mode 100644 index cddb3c39381b9..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.js +++ /dev/null @@ -1,100 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts] //// - -//// [bigint-numeric-separator-literal-nonoctal-08-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -08_0n; - - -//// [bigint-numeric-separator-literal-nonoctal-08-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -8; -_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols deleted file mode 100644 index 0fdb21cfb0a6f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-08-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -08_0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types deleted file mode 100644 index 3f80cf97c4f2c..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-08-err.types +++ /dev/null @@ -1,54 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-08-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -08_0n; ->08 : 8 ->_0n : any - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt deleted file mode 100644 index 6aa14f6c8d164..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.errors.txt +++ /dev/null @@ -1,61 +0,0 @@ -bigint-numeric-separator-literal-nonoctal-09-err.ts(48,1): error TS1489: Decimals with leading zeros are not allowed. -bigint-numeric-separator-literal-nonoctal-09-err.ts(48,3): error TS1005: ';' expected. -bigint-numeric-separator-literal-nonoctal-09-err.ts(48,3): error TS2304: Cannot find name '_0n'. - - -==== bigint-numeric-separator-literal-nonoctal-09-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 09_0n; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~~~ -!!! error TS1005: ';' expected. - ~~~ -!!! error TS2304: Cannot find name '_0n'. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js deleted file mode 100644 index a882a8c989fcf..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.js +++ /dev/null @@ -1,100 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts] //// - -//// [bigint-numeric-separator-literal-nonoctal-09-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -09_0n; - - -//// [bigint-numeric-separator-literal-nonoctal-09-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -9; -_0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols deleted file mode 100644 index 584e2e27cedde..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-09-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -09_0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types deleted file mode 100644 index 8ec633fbf4501..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-09-err.types +++ /dev/null @@ -1,54 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-09-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -09_0n; ->09 : 9 ->_0n : any - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt deleted file mode 100644 index 235901c5b0bf2..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.errors.txt +++ /dev/null @@ -1,55 +0,0 @@ -bigint-numeric-separator-literal-nonoctal-0_8-err.ts(48,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-nonoctal-0_8-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0_8n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js deleted file mode 100644 index 03d3c12b4fc29..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.js +++ /dev/null @@ -1,99 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts] //// - -//// [bigint-numeric-separator-literal-nonoctal-0_8-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_8n; - - -//// [bigint-numeric-separator-literal-nonoctal-0_8-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -08n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols deleted file mode 100644 index 30a323a9630cb..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-0_8-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_8n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types deleted file mode 100644 index 93616f237fb70..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_8-err.types +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-0_8-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_8n; ->0_8n : 8n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt deleted file mode 100644 index f1b63925272fb..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.errors.txt +++ /dev/null @@ -1,55 +0,0 @@ -bigint-numeric-separator-literal-nonoctal-0_9-err.ts(48,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-nonoctal-0_9-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0_9n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js deleted file mode 100644 index 6bf666957986c..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.js +++ /dev/null @@ -1,99 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts] //// - -//// [bigint-numeric-separator-literal-nonoctal-0_9-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_9n; - - -//// [bigint-numeric-separator-literal-nonoctal-0_9-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -09n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols deleted file mode 100644 index 5417cea7d04c7..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-0_9-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_9n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types deleted file mode 100644 index 1958972d6df5c..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nonoctal-0_9-err.types +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts] //// - -=== bigint-numeric-separator-literal-nonoctal-0_9-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_9n; ->0_9n : 9n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt deleted file mode 100644 index bed2e0a756f6f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt +++ /dev/null @@ -1,48 +0,0 @@ -bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(38,2): error TS6188: Numeric separators are not allowed here. -bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(38,3): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts (2 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0__0123456789n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js deleted file mode 100644 index fc5a71c481399..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js +++ /dev/null @@ -1,79 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// - -//// [bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0__0123456789n; - - -//// [bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -00123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols deleted file mode 100644 index 51b9219962c89..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0__0123456789n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types deleted file mode 100644 index 4ebebd6f0d04b..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.types +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0__0123456789n; ->0__0123456789n : 123456789n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt deleted file mode 100644 index c5c058f9bfdc6..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt +++ /dev/null @@ -1,43 +0,0 @@ -bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts(36,2): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: NonZeroDigit NumericLiteralSeparator DecimalDigits - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0_0123456789n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js deleted file mode 100644 index df3027a127b43..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js +++ /dev/null @@ -1,75 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// - -//// [bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0123456789n; - - -//// [bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -00123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols deleted file mode 100644 index 1c6b4fd04035e..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// - -=== bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0123456789n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types deleted file mode 100644 index 4695c52c48811..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// - -=== bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0123456789n; ->0_0123456789n : 123456789n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt deleted file mode 100644 index 72b244e362cbd..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts(43,5): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0o0__0n; - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js deleted file mode 100644 index ef8ae6e62925a..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// - -//// [bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0__0n; - - -//// [bigint-numeric-separator-literal-oil-nsl-od-dunder-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols deleted file mode 100644 index 6fe5b33c5413f..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0__0n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types deleted file mode 100644 index ad8e1fc95ab00..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// - -=== bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0__0n; ->0o0__0n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt deleted file mode 100644 index a1112c26c441a..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-oil-nsl-od-err.ts(43,4): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-oil-nsl-od-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0o0_n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js deleted file mode 100644 index 2f9b79601fc94..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts] //// - -//// [bigint-numeric-separator-literal-oil-nsl-od-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0_n; - - -//// [bigint-numeric-separator-literal-oil-nsl-od-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -0n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols deleted file mode 100644 index 80587e9ba3309..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts] //// - -=== bigint-numeric-separator-literal-oil-nsl-od-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0_n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types deleted file mode 100644 index 24e41df7d8bd1..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-nsl-od-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts] //// - -=== bigint-numeric-separator-literal-oil-nsl-od-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0_n; ->0o0_n : 0n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt deleted file mode 100644 index 639cb2bd0b594..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -bigint-numeric-separator-literal-oil-od-nsl-od-err.ts(43,3): error TS6188: Numeric separators are not allowed here. - - -==== bigint-numeric-separator-literal-oil-od-nsl-od-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 0o_1n; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js deleted file mode 100644 index 45fabd8264205..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.js +++ /dev/null @@ -1,89 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] //// - -//// [bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o_1n; - - -//// [bigint-numeric-separator-literal-oil-od-nsl-od-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -1n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols deleted file mode 100644 index 8668fe6b18904..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.symbols +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] //// - -=== bigint-numeric-separator-literal-oil-od-nsl-od-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o_1n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types deleted file mode 100644 index 12c9fb5814645..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-oil-od-nsl-od-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts] //// - -=== bigint-numeric-separator-literal-oil-od-nsl-od-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o_1n; ->0o_1n : 1n - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt deleted file mode 100644 index 434120cdc3caa..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -bigint-numeric-separator-literal-unicode-err.ts(35,2): error TS1005: ';' expected. -bigint-numeric-separator-literal-unicode-err.ts(35,2): error TS2304: Cannot find name '\u005F0123456789n'. - - -==== bigint-numeric-separator-literal-unicode-err.ts (2 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - negative: - phase: parse - type: SyntaxError - features: [BigInt, numeric-separator-literal] - ---*/ - - - 1\u005F0123456789n; - ~~~~~~~~~~~~~~~~~ -!!! error TS1005: ';' expected. - ~~~~~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name '\u005F0123456789n'. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js deleted file mode 100644 index 18b9f55b74f5b..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.js +++ /dev/null @@ -1,74 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts] //// - -//// [bigint-numeric-separator-literal-unicode-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1\u005F0123456789n; - - -//// [bigint-numeric-separator-literal-unicode-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ -1; -\u005F0123456789n; diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols deleted file mode 100644 index 38de34eeaf2e8..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.symbols +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts] //// - -=== bigint-numeric-separator-literal-unicode-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1\u005F0123456789n; - diff --git a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types b/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types deleted file mode 100644 index 45970ff4c1c38..0000000000000 --- a/tests/baselines/reference/bigint-numeric-separator-literal-unicode-err.types +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts] //// - -=== bigint-numeric-separator-literal-unicode-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1\u005F0123456789n; ->1 : 1 ->\u005F0123456789n : any - diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.errors.txt b/tests/baselines/reference/bigint-octal-invalid-digit.errors.txt deleted file mode 100644 index 85f6eabf0ed85..0000000000000 --- a/tests/baselines/reference/bigint-octal-invalid-digit.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -bigint-octal-invalid-digit.ts(25,3): error TS1178: Octal digit expected. - - -==== bigint-octal-invalid-digit.ts (1 errors) ==== - // Copyright (C) 2017 Robin Templeton. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Octal BigInt literal containing an invalid digit - esid: prod-NumericLiteral - info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n - negative: - phase: parse - type: SyntaxError - features: [BigInt] - ---*/ - - - 0o9n; - -!!! error TS1178: Octal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.js b/tests/baselines/reference/bigint-octal-invalid-digit.js deleted file mode 100644 index 5a7afd2367e4e..0000000000000 --- a/tests/baselines/reference/bigint-octal-invalid-digit.js +++ /dev/null @@ -1,54 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts] //// - -//// [bigint-octal-invalid-digit.ts] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Octal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0o9n; - - -//// [bigint-octal-invalid-digit.js] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Octal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ -0; -9n; diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.symbols b/tests/baselines/reference/bigint-octal-invalid-digit.symbols deleted file mode 100644 index 8db9b2826b239..0000000000000 --- a/tests/baselines/reference/bigint-octal-invalid-digit.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts] //// - -=== bigint-octal-invalid-digit.ts === - -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Octal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0o9n; - diff --git a/tests/baselines/reference/bigint-octal-invalid-digit.types b/tests/baselines/reference/bigint-octal-invalid-digit.types deleted file mode 100644 index 979ad4cc1bad5..0000000000000 --- a/tests/baselines/reference/bigint-octal-invalid-digit.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts] //// - -=== bigint-octal-invalid-digit.ts === -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Octal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0o9n; ->0o : 0 ->9n : 9n - diff --git a/tests/baselines/reference/binary-invalid-digit.errors.txt b/tests/baselines/reference/binary-invalid-digit.errors.txt deleted file mode 100644 index a9ce752086c3b..0000000000000 --- a/tests/baselines/reference/binary-invalid-digit.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -binary-invalid-digit.ts(22,3): error TS1177: Binary digit expected. - - -==== binary-invalid-digit.ts (1 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Binary-integer-literal-like sequence containing an invalid digit - info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0b2; - -!!! error TS1177: Binary digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-digit.js b/tests/baselines/reference/binary-invalid-digit.js deleted file mode 100644 index bd469545003e6..0000000000000 --- a/tests/baselines/reference/binary-invalid-digit.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts] //// - -//// [binary-invalid-digit.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence containing an invalid digit -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b2; - - -//// [binary-invalid-digit.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence containing an invalid digit -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ -0; -2; diff --git a/tests/baselines/reference/binary-invalid-digit.symbols b/tests/baselines/reference/binary-invalid-digit.symbols deleted file mode 100644 index f86f27d6d7770..0000000000000 --- a/tests/baselines/reference/binary-invalid-digit.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts] //// - -=== binary-invalid-digit.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence containing an invalid digit -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b2; - diff --git a/tests/baselines/reference/binary-invalid-digit.types b/tests/baselines/reference/binary-invalid-digit.types deleted file mode 100644 index 125a32c1fecef..0000000000000 --- a/tests/baselines/reference/binary-invalid-digit.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts] //// - -=== binary-invalid-digit.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence containing an invalid digit -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b2; ->0b : 0 ->2 : 2 - diff --git a/tests/baselines/reference/binary-invalid-leading.errors.txt b/tests/baselines/reference/binary-invalid-leading.errors.txt deleted file mode 100644 index ad14657e4e06d..0000000000000 --- a/tests/baselines/reference/binary-invalid-leading.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -binary-invalid-leading.ts(22,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. -binary-invalid-leading.ts(22,3): error TS1005: ';' expected. -binary-invalid-leading.ts(22,3): error TS2304: Cannot find name 'b0'. - - -==== binary-invalid-leading.ts (3 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Binary-integer-literal-like sequence with a leading 0 - info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 00b0; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name 'b0'. - \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-leading.js b/tests/baselines/reference/binary-invalid-leading.js deleted file mode 100644 index 7ec341e422af9..0000000000000 --- a/tests/baselines/reference/binary-invalid-leading.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts] //// - -//// [binary-invalid-leading.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence with a leading 0 -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -00b0; - - -//// [binary-invalid-leading.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence with a leading 0 -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ -0; -b0; diff --git a/tests/baselines/reference/binary-invalid-leading.symbols b/tests/baselines/reference/binary-invalid-leading.symbols deleted file mode 100644 index 82f02d7b79fba..0000000000000 --- a/tests/baselines/reference/binary-invalid-leading.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts] //// - -=== binary-invalid-leading.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence with a leading 0 -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -00b0; - diff --git a/tests/baselines/reference/binary-invalid-leading.types b/tests/baselines/reference/binary-invalid-leading.types deleted file mode 100644 index 942e531c5ea1f..0000000000000 --- a/tests/baselines/reference/binary-invalid-leading.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts] //// - -=== binary-invalid-leading.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence with a leading 0 -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -00b0; ->00 : 0 ->b0 : any - diff --git a/tests/baselines/reference/binary-invalid-truncated.errors.txt b/tests/baselines/reference/binary-invalid-truncated.errors.txt deleted file mode 100644 index ec258c4ebef54..0000000000000 --- a/tests/baselines/reference/binary-invalid-truncated.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -binary-invalid-truncated.ts(22,3): error TS1177: Binary digit expected. - - -==== binary-invalid-truncated.ts (1 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Binary-integer-literal-like sequence without any digits - info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0b; - -!!! error TS1177: Binary digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-truncated.js b/tests/baselines/reference/binary-invalid-truncated.js deleted file mode 100644 index 81bf5d0f86ff9..0000000000000 --- a/tests/baselines/reference/binary-invalid-truncated.js +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts] //// - -//// [binary-invalid-truncated.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence without any digits -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b; - - -//// [binary-invalid-truncated.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence without any digits -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ -0; diff --git a/tests/baselines/reference/binary-invalid-truncated.symbols b/tests/baselines/reference/binary-invalid-truncated.symbols deleted file mode 100644 index 5fa42a7e52b39..0000000000000 --- a/tests/baselines/reference/binary-invalid-truncated.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts] //// - -=== binary-invalid-truncated.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence without any digits -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b; - diff --git a/tests/baselines/reference/binary-invalid-truncated.types b/tests/baselines/reference/binary-invalid-truncated.types deleted file mode 100644 index 6fa4002ed9559..0000000000000 --- a/tests/baselines/reference/binary-invalid-truncated.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts] //// - -=== binary-invalid-truncated.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence without any digits -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b; ->0b : 0 - diff --git a/tests/baselines/reference/binary-invalid-unicode.errors.txt b/tests/baselines/reference/binary-invalid-unicode.errors.txt deleted file mode 100644 index e1fcb155bce53..0000000000000 --- a/tests/baselines/reference/binary-invalid-unicode.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -binary-invalid-unicode.ts(22,2): error TS1005: ';' expected. -binary-invalid-unicode.ts(22,2): error TS2304: Cannot find name '\u00620'. - - -==== binary-invalid-unicode.ts (2 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Binary-integer-literal-like sequence expressed with unicode escape sequence - info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0\u00620; - ~~~~~~~ -!!! error TS1005: ';' expected. - ~~~~~~~ -!!! error TS2304: Cannot find name '\u00620'. - \ No newline at end of file diff --git a/tests/baselines/reference/binary-invalid-unicode.js b/tests/baselines/reference/binary-invalid-unicode.js deleted file mode 100644 index 0c96567eb1961..0000000000000 --- a/tests/baselines/reference/binary-invalid-unicode.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts] //// - -//// [binary-invalid-unicode.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence expressed with unicode escape sequence -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u00620; - - -//// [binary-invalid-unicode.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence expressed with unicode escape sequence -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ -0; -\u00620; diff --git a/tests/baselines/reference/binary-invalid-unicode.symbols b/tests/baselines/reference/binary-invalid-unicode.symbols deleted file mode 100644 index 08fdbb9cb78f3..0000000000000 --- a/tests/baselines/reference/binary-invalid-unicode.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts] //// - -=== binary-invalid-unicode.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence expressed with unicode escape sequence -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u00620; - diff --git a/tests/baselines/reference/binary-invalid-unicode.types b/tests/baselines/reference/binary-invalid-unicode.types deleted file mode 100644 index 0cd4cf12dd077..0000000000000 --- a/tests/baselines/reference/binary-invalid-unicode.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts] //// - -=== binary-invalid-unicode.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence expressed with unicode escape sequence -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u00620; ->0 : 0 ->\u00620 : any - diff --git a/tests/baselines/reference/early-err-bad-flag.errors.txt b/tests/baselines/reference/early-err-bad-flag.errors.txt deleted file mode 100644 index d73ad0c7348bf..0000000000000 --- a/tests/baselines/reference/early-err-bad-flag.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -early-err-bad-flag.ts(17,4): error TS1497: Unknown regular expression flag. - - -==== early-err-bad-flag.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors - info: | - PrimaryExpression : RegularExpressionLiteral - - description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... - - negative: - phase: parse - type: SyntaxError - ---*/ - - - /./G; - ~ -!!! error TS1497: Unknown regular expression flag. - \ No newline at end of file diff --git a/tests/baselines/reference/early-err-bad-flag.js b/tests/baselines/reference/early-err-bad-flag.js deleted file mode 100644 index a5e65e14f17ee..0000000000000 --- a/tests/baselines/reference/early-err-bad-flag.js +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts] //// - -//// [early-err-bad-flag.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./G; - - -//// [early-err-bad-flag.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... - -negative: - phase: parse - type: SyntaxError ----*/ -/./G; diff --git a/tests/baselines/reference/early-err-bad-flag.symbols b/tests/baselines/reference/early-err-bad-flag.symbols deleted file mode 100644 index c12d73678557f..0000000000000 --- a/tests/baselines/reference/early-err-bad-flag.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts] //// - -=== early-err-bad-flag.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./G; - diff --git a/tests/baselines/reference/early-err-bad-flag.types b/tests/baselines/reference/early-err-bad-flag.types deleted file mode 100644 index e8502efa8f16f..0000000000000 --- a/tests/baselines/reference/early-err-bad-flag.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts] //// - -=== early-err-bad-flag.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./G; ->/./G : RegExp - diff --git a/tests/baselines/reference/early-err-dup-flag.errors.txt b/tests/baselines/reference/early-err-dup-flag.errors.txt deleted file mode 100644 index 5f1bbbe369054..0000000000000 --- a/tests/baselines/reference/early-err-dup-flag.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -early-err-dup-flag.ts(17,6): error TS1498: Duplicate regular expression flag. - - -==== early-err-dup-flag.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors - info: | - PrimaryExpression : RegularExpressionLiteral - - description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. - - negative: - phase: parse - type: SyntaxError - ---*/ - - - /./gig; - ~ -!!! error TS1498: Duplicate regular expression flag. - \ No newline at end of file diff --git a/tests/baselines/reference/early-err-dup-flag.js b/tests/baselines/reference/early-err-dup-flag.js deleted file mode 100644 index 3f63ea1ceb231..0000000000000 --- a/tests/baselines/reference/early-err-dup-flag.js +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts] //// - -//// [early-err-dup-flag.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./gig; - - -//// [early-err-dup-flag.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. - -negative: - phase: parse - type: SyntaxError ----*/ -/./gig; diff --git a/tests/baselines/reference/early-err-dup-flag.symbols b/tests/baselines/reference/early-err-dup-flag.symbols deleted file mode 100644 index bfc3e0ba1e289..0000000000000 --- a/tests/baselines/reference/early-err-dup-flag.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts] //// - -=== early-err-dup-flag.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./gig; - diff --git a/tests/baselines/reference/early-err-dup-flag.types b/tests/baselines/reference/early-err-dup-flag.types deleted file mode 100644 index c26159373510f..0000000000000 --- a/tests/baselines/reference/early-err-dup-flag.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts] //// - -=== early-err-dup-flag.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./gig; ->/./gig : RegExp - diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.errors.txt b/tests/baselines/reference/early-err-flags-unicode-escape.errors.txt deleted file mode 100644 index e9d42a00fd625..0000000000000 --- a/tests/baselines/reference/early-err-flags-unicode-escape.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -early-err-flags-unicode-escape.ts(17,4): error TS1005: ';' expected. -early-err-flags-unicode-escape.ts(17,4): error TS2304: Cannot find name '\u0067'. - - -==== early-err-flags-unicode-escape.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-regular-expression-literals-static-semantics-early-errors - info: | - RegularExpressionFlags :: - RegularExpressionFlags IdentifierPart - - description: > - It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /./\u0067; - ~~~~~~ -!!! error TS1005: ';' expected. - ~~~~~~ -!!! error TS2304: Cannot find name '\u0067'. - \ No newline at end of file diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.js b/tests/baselines/reference/early-err-flags-unicode-escape.js deleted file mode 100644 index 6c7ad052ba75b..0000000000000 --- a/tests/baselines/reference/early-err-flags-unicode-escape.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts] //// - -//// [early-err-flags-unicode-escape.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals-static-semantics-early-errors -info: | - RegularExpressionFlags :: - RegularExpressionFlags IdentifierPart - -description: > - It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. -negative: - phase: parse - type: SyntaxError ----*/ - - -/./\u0067; - - -//// [early-err-flags-unicode-escape.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals-static-semantics-early-errors -info: | - RegularExpressionFlags :: - RegularExpressionFlags IdentifierPart - -description: > - It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. -negative: - phase: parse - type: SyntaxError ----*/ -/./; -\u0067; diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.symbols b/tests/baselines/reference/early-err-flags-unicode-escape.symbols deleted file mode 100644 index fff5120586eb8..0000000000000 --- a/tests/baselines/reference/early-err-flags-unicode-escape.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts] //// - -=== early-err-flags-unicode-escape.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals-static-semantics-early-errors -info: | - RegularExpressionFlags :: - RegularExpressionFlags IdentifierPart - -description: > - It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. -negative: - phase: parse - type: SyntaxError ----*/ - - -/./\u0067; - diff --git a/tests/baselines/reference/early-err-flags-unicode-escape.types b/tests/baselines/reference/early-err-flags-unicode-escape.types deleted file mode 100644 index 621906d55be9b..0000000000000 --- a/tests/baselines/reference/early-err-flags-unicode-escape.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts] //// - -=== early-err-flags-unicode-escape.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals-static-semantics-early-errors -info: | - RegularExpressionFlags :: - RegularExpressionFlags IdentifierPart - -description: > - It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. -negative: - phase: parse - type: SyntaxError ----*/ - - -/./\u0067; ->/./ : RegExp ->\u0067 : any - diff --git a/tests/baselines/reference/early-err-pattern.errors.txt b/tests/baselines/reference/early-err-pattern.errors.txt deleted file mode 100644 index efcf12eb3b99d..0000000000000 --- a/tests/baselines/reference/early-err-pattern.errors.txt +++ /dev/null @@ -1,23 +0,0 @@ -early-err-pattern.ts(16,2): error TS1505: There is nothing available for repetition. - - -==== early-err-pattern.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors - info: | - PrimaryExpression : RegularExpressionLiteral - - description: > - It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /?/; - ~ -!!! error TS1505: There is nothing available for repetition. - \ No newline at end of file diff --git a/tests/baselines/reference/early-err-pattern.js b/tests/baselines/reference/early-err-pattern.js deleted file mode 100644 index 11a25bc0e68ef..0000000000000 --- a/tests/baselines/reference/early-err-pattern.js +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts] //// - -//// [early-err-pattern.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. -negative: - phase: parse - type: SyntaxError ----*/ - - -/?/; - - -//// [early-err-pattern.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. -negative: - phase: parse - type: SyntaxError ----*/ -/?/; diff --git a/tests/baselines/reference/early-err-pattern.symbols b/tests/baselines/reference/early-err-pattern.symbols deleted file mode 100644 index 85bf83ff9810b..0000000000000 --- a/tests/baselines/reference/early-err-pattern.symbols +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts] //// - -=== early-err-pattern.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. -negative: - phase: parse - type: SyntaxError ----*/ - - -/?/; - diff --git a/tests/baselines/reference/early-err-pattern.types b/tests/baselines/reference/early-err-pattern.types deleted file mode 100644 index de5ae3458c90e..0000000000000 --- a/tests/baselines/reference/early-err-pattern.types +++ /dev/null @@ -1,21 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts] //// - -=== early-err-pattern.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. -negative: - phase: parse - type: SyntaxError ----*/ - - -/?/; ->/?/ : RegExp - diff --git a/tests/baselines/reference/exponent-part.errors.txt b/tests/baselines/reference/exponent-part.errors.txt deleted file mode 100644 index b79cd99e6351a..0000000000000 --- a/tests/baselines/reference/exponent-part.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -exponent-part.ts(15,1): error TS1352: A bigint literal cannot use exponential notation. - - -==== exponent-part.ts (1 errors) ==== - // Copyright (C) 2017 Robin Templeton. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: > - It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. - esid: sec-numeric-literal-static-semantics-early-errors - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0e0n; - ~~~~ -!!! error TS1352: A bigint literal cannot use exponential notation. - \ No newline at end of file diff --git a/tests/baselines/reference/exponent-part.js b/tests/baselines/reference/exponent-part.js deleted file mode 100644 index 05651303a033c..0000000000000 --- a/tests/baselines/reference/exponent-part.js +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts] //// - -//// [exponent-part.ts] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. -esid: sec-numeric-literal-static-semantics-early-errors -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0e0n; - - -//// [exponent-part.js] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: > - It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. -esid: sec-numeric-literal-static-semantics-early-errors -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -0e0n; diff --git a/tests/baselines/reference/exponent-part.symbols b/tests/baselines/reference/exponent-part.symbols deleted file mode 100644 index 94281fe6109a9..0000000000000 --- a/tests/baselines/reference/exponent-part.symbols +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts] //// - -=== exponent-part.ts === - -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. -esid: sec-numeric-literal-static-semantics-early-errors -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0e0n; - diff --git a/tests/baselines/reference/exponent-part.types b/tests/baselines/reference/exponent-part.types deleted file mode 100644 index 42a0251a064ec..0000000000000 --- a/tests/baselines/reference/exponent-part.types +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts] //// - -=== exponent-part.ts === -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. -esid: sec-numeric-literal-static-semantics-early-errors -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0e0n; ->0e0n : 0 - diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.errors.txt b/tests/baselines/reference/hexadecimal-invalid-digit.errors.txt deleted file mode 100644 index 7e0721396d9c2..0000000000000 --- a/tests/baselines/reference/hexadecimal-invalid-digit.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -hexadecimal-invalid-digit.ts(25,3): error TS1125: Hexadecimal digit expected. -hexadecimal-invalid-digit.ts(25,3): error TS2304: Cannot find name 'gn'. - - -==== hexadecimal-invalid-digit.ts (2 errors) ==== - // Copyright (C) 2017 Robin Templeton. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Hexadecimal BigInt literal containing an invalid digit - esid: prod-NumericLiteral - info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n - negative: - phase: parse - type: SyntaxError - features: [BigInt] - ---*/ - - - 0xgn; - -!!! error TS1125: Hexadecimal digit expected. - ~~ -!!! error TS2304: Cannot find name 'gn'. - \ No newline at end of file diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.js b/tests/baselines/reference/hexadecimal-invalid-digit.js deleted file mode 100644 index 6229bc614080f..0000000000000 --- a/tests/baselines/reference/hexadecimal-invalid-digit.js +++ /dev/null @@ -1,54 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts] //// - -//// [hexadecimal-invalid-digit.ts] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Hexadecimal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0xgn; - - -//// [hexadecimal-invalid-digit.js] -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Hexadecimal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ -0x; -gn; diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.symbols b/tests/baselines/reference/hexadecimal-invalid-digit.symbols deleted file mode 100644 index 520b45c9cbc4f..0000000000000 --- a/tests/baselines/reference/hexadecimal-invalid-digit.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts] //// - -=== hexadecimal-invalid-digit.ts === - -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Hexadecimal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0xgn; - diff --git a/tests/baselines/reference/hexadecimal-invalid-digit.types b/tests/baselines/reference/hexadecimal-invalid-digit.types deleted file mode 100644 index 9585dc4bed29b..0000000000000 --- a/tests/baselines/reference/hexadecimal-invalid-digit.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts] //// - -=== hexadecimal-invalid-digit.ts === -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Hexadecimal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0xgn; ->0x : 0 ->gn : any - diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt b/tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt deleted file mode 100644 index 9d027b21f30a9..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-exact.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -invalid-braced-quantifier-exact.ts(24,2): error TS1505: There is nothing available for repetition. - - -==== invalid-braced-quantifier-exact.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: Braced quantifier in an Atom position (exact count) - info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /{2}/; - ~~~ -!!! error TS1505: There is nothing available for repetition. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.js b/tests/baselines/reference/invalid-braced-quantifier-exact.js deleted file mode 100644 index 265fccb9aca83..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-exact.js +++ /dev/null @@ -1,52 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts] //// - -//// [invalid-braced-quantifier-exact.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (exact count) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2}/; - - -//// [invalid-braced-quantifier-exact.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (exact count) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ -/{2}/; diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.symbols b/tests/baselines/reference/invalid-braced-quantifier-exact.symbols deleted file mode 100644 index 39565f5f2530c..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-exact.symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts] //// - -=== invalid-braced-quantifier-exact.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (exact count) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2}/; - diff --git a/tests/baselines/reference/invalid-braced-quantifier-exact.types b/tests/baselines/reference/invalid-braced-quantifier-exact.types deleted file mode 100644 index aff262c0136c8..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-exact.types +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts] //// - -=== invalid-braced-quantifier-exact.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (exact count) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2}/; ->/{2}/ : RegExp - diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt b/tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt deleted file mode 100644 index f0966a10dcee8..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-lower.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -invalid-braced-quantifier-lower.ts(24,2): error TS1505: There is nothing available for repetition. - - -==== invalid-braced-quantifier-lower.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: Braced quantifier in an Atom position (lower-bounds) - info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /{2,}/; - ~~~~ -!!! error TS1505: There is nothing available for repetition. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.js b/tests/baselines/reference/invalid-braced-quantifier-lower.js deleted file mode 100644 index ac958f7a0bab4..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-lower.js +++ /dev/null @@ -1,52 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts] //// - -//// [invalid-braced-quantifier-lower.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (lower-bounds) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,}/; - - -//// [invalid-braced-quantifier-lower.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (lower-bounds) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ -/{2,}/; diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.symbols b/tests/baselines/reference/invalid-braced-quantifier-lower.symbols deleted file mode 100644 index 333950e31ac21..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-lower.symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts] //// - -=== invalid-braced-quantifier-lower.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (lower-bounds) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,}/; - diff --git a/tests/baselines/reference/invalid-braced-quantifier-lower.types b/tests/baselines/reference/invalid-braced-quantifier-lower.types deleted file mode 100644 index 1bf12436f232b..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-lower.types +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts] //// - -=== invalid-braced-quantifier-lower.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (lower-bounds) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,}/; ->/{2,}/ : RegExp - diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.errors.txt b/tests/baselines/reference/invalid-braced-quantifier-range.errors.txt deleted file mode 100644 index a0687e6cebfce..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-range.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -invalid-braced-quantifier-range.ts(24,2): error TS1505: There is nothing available for repetition. - - -==== invalid-braced-quantifier-range.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: Braced quantifier in an Atom position (range) - info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /{2,3}/; - ~~~~~ -!!! error TS1505: There is nothing available for repetition. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.js b/tests/baselines/reference/invalid-braced-quantifier-range.js deleted file mode 100644 index 232e4d28486aa..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-range.js +++ /dev/null @@ -1,52 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts] //// - -//// [invalid-braced-quantifier-range.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (range) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,3}/; - - -//// [invalid-braced-quantifier-range.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (range) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ -/{2,3}/; diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.symbols b/tests/baselines/reference/invalid-braced-quantifier-range.symbols deleted file mode 100644 index d38c1c20b0480..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-range.symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts] //// - -=== invalid-braced-quantifier-range.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (range) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,3}/; - diff --git a/tests/baselines/reference/invalid-braced-quantifier-range.types b/tests/baselines/reference/invalid-braced-quantifier-range.types deleted file mode 100644 index c3c6b9fad6277..0000000000000 --- a/tests/baselines/reference/invalid-braced-quantifier-range.types +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts] //// - -=== invalid-braced-quantifier-range.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (range) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,3}/; ->/{2,3}/ : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt deleted file mode 100644 index b338c7591c846..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2-u.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -invalid-dangling-groupname-2-u.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname-2-u.ts(19,12): error TS1530: There is no capturing group named 'ab' in this regular expression. -invalid-dangling-groupname-2-u.ts(19,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-dangling-groupname-2-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)\k/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~ -!!! error TS1530: There is no capturing group named 'ab' in this regular expression. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.js b/tests/baselines/reference/invalid-dangling-groupname-2-u.js deleted file mode 100644 index a21106e3ee8cc..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2-u.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts] //// - -//// [invalid-dangling-groupname-2-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; - - -//// [invalid-dangling-groupname-2-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-2-u.symbols deleted file mode 100644 index 4bd55c2c73397..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2-u.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts] //// - -=== invalid-dangling-groupname-2-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-2-u.types b/tests/baselines/reference/invalid-dangling-groupname-2-u.types deleted file mode 100644 index c6427be9468ab..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2-u.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2-u.ts] //// - -=== invalid-dangling-groupname-2-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; ->/(?a)\k/u : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-2.errors.txt deleted file mode 100644 index 9b6a919c9c66c..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -invalid-dangling-groupname-2.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname-2.ts(19,12): error TS1530: There is no capturing group named 'ab' in this regular expression. - - -==== invalid-dangling-groupname-2.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)\k/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~ -!!! error TS1530: There is no capturing group named 'ab' in this regular expression. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.js b/tests/baselines/reference/invalid-dangling-groupname-2.js deleted file mode 100644 index acdc15d1eeb83..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts] //// - -//// [invalid-dangling-groupname-2.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; - - -//// [invalid-dangling-groupname-2.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)\k/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.symbols b/tests/baselines/reference/invalid-dangling-groupname-2.symbols deleted file mode 100644 index a80e770c230d9..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts] //// - -=== invalid-dangling-groupname-2.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-2.types b/tests/baselines/reference/invalid-dangling-groupname-2.types deleted file mode 100644 index 7664159dca23c..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-2.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts] //// - -=== invalid-dangling-groupname-2.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; ->/(?a)\k/ : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt deleted file mode 100644 index 296f001ecfcab..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3-u.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -invalid-dangling-groupname-3-u.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname-3-u.ts(19,13): error TS1530: There is no capturing group named 'a' in this regular expression. -invalid-dangling-groupname-3-u.ts(19,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-dangling-groupname-3-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)\k/u; - ~~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1530: There is no capturing group named 'a' in this regular expression. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.js b/tests/baselines/reference/invalid-dangling-groupname-3-u.js deleted file mode 100644 index c9535b749dc67..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3-u.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts] //// - -//// [invalid-dangling-groupname-3-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; - - -//// [invalid-dangling-groupname-3-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-3-u.symbols deleted file mode 100644 index 5af9d6866fcbe..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3-u.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts] //// - -=== invalid-dangling-groupname-3-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-3-u.types b/tests/baselines/reference/invalid-dangling-groupname-3-u.types deleted file mode 100644 index 8a658cc9dfefd..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3-u.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts] //// - -=== invalid-dangling-groupname-3-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; ->/(?a)\k/u : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-3.errors.txt deleted file mode 100644 index 35d418979bfc2..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -invalid-dangling-groupname-3.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname-3.ts(19,13): error TS1530: There is no capturing group named 'a' in this regular expression. - - -==== invalid-dangling-groupname-3.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)\k/; - ~~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1530: There is no capturing group named 'a' in this regular expression. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.js b/tests/baselines/reference/invalid-dangling-groupname-3.js deleted file mode 100644 index 2c2bf8b2070b3..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts] //// - -//// [invalid-dangling-groupname-3.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; - - -//// [invalid-dangling-groupname-3.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)\k/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.symbols b/tests/baselines/reference/invalid-dangling-groupname-3.symbols deleted file mode 100644 index 8288cd1269a00..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts] //// - -=== invalid-dangling-groupname-3.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-3.types b/tests/baselines/reference/invalid-dangling-groupname-3.types deleted file mode 100644 index d957bb699889c..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-3.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts] //// - -=== invalid-dangling-groupname-3.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; ->/(?a)\k/ : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt deleted file mode 100644 index 5b1848067f7b8..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4-u.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -invalid-dangling-groupname-4-u.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. -invalid-dangling-groupname-4-u.ts(19,9): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname-4-u.ts(19,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-dangling-groupname-4-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k(?a)/u; - ~ -!!! error TS1530: There is no capturing group named 'a' in this regular expression. - ~~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.js b/tests/baselines/reference/invalid-dangling-groupname-4-u.js deleted file mode 100644 index a948583ae59bc..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4-u.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts] //// - -//// [invalid-dangling-groupname-4-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/u; - - -//// [invalid-dangling-groupname-4-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k(?a)/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-4-u.symbols deleted file mode 100644 index bd4f83706bf61..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4-u.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts] //// - -=== invalid-dangling-groupname-4-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/u; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-4-u.types b/tests/baselines/reference/invalid-dangling-groupname-4-u.types deleted file mode 100644 index f7cefef260dad..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4-u.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts] //// - -=== invalid-dangling-groupname-4-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/u; ->/\k(?a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-4.errors.txt deleted file mode 100644 index 29fcb5375b566..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -invalid-dangling-groupname-4.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. -invalid-dangling-groupname-4.ts(19,9): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - - -==== invalid-dangling-groupname-4.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k(?a)/; - ~ -!!! error TS1530: There is no capturing group named 'a' in this regular expression. - ~~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.js b/tests/baselines/reference/invalid-dangling-groupname-4.js deleted file mode 100644 index 08778cf6acfa1..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts] //// - -//// [invalid-dangling-groupname-4.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/; - - -//// [invalid-dangling-groupname-4.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k(?a)/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.symbols b/tests/baselines/reference/invalid-dangling-groupname-4.symbols deleted file mode 100644 index e1d79c58d264b..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts] //// - -=== invalid-dangling-groupname-4.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-4.types b/tests/baselines/reference/invalid-dangling-groupname-4.types deleted file mode 100644 index 938ffceb18d56..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-4.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts] //// - -=== invalid-dangling-groupname-4.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/; ->/\k(?a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-5.errors.txt deleted file mode 100644 index 654b23df12cfb..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-5.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -invalid-dangling-groupname-5.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. -invalid-dangling-groupname-5.ts(19,9): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - - -==== invalid-dangling-groupname-5.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k(?x)/; - ~ -!!! error TS1530: There is no capturing group named 'a' in this regular expression. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.js b/tests/baselines/reference/invalid-dangling-groupname-5.js deleted file mode 100644 index 01d4c6140c89c..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-5.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts] //// - -//// [invalid-dangling-groupname-5.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?x)/; - - -//// [invalid-dangling-groupname-5.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k(?x)/; diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.symbols b/tests/baselines/reference/invalid-dangling-groupname-5.symbols deleted file mode 100644 index cabeea1531aeb..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-5.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts] //// - -=== invalid-dangling-groupname-5.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?x)/; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-5.types b/tests/baselines/reference/invalid-dangling-groupname-5.types deleted file mode 100644 index a9bcd58c6d9a2..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-5.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts] //// - -=== invalid-dangling-groupname-5.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?x)/; ->/\k(?x)/ : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-u.errors.txt deleted file mode 100644 index da11836807747..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-u.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -invalid-dangling-groupname-u.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname-u.ts(19,12): error TS1530: There is no capturing group named 'b' in this regular expression. -invalid-dangling-groupname-u.ts(19,15): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-dangling-groupname-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1530: There is no capturing group named 'b' in this regular expression. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.js b/tests/baselines/reference/invalid-dangling-groupname-u.js deleted file mode 100644 index b171acb9cf710..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-u.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts] //// - -//// [invalid-dangling-groupname-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; - - -//// [invalid-dangling-groupname-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-u.symbols deleted file mode 100644 index 8e22666f1ea70..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-u.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts] //// - -=== invalid-dangling-groupname-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-u.types b/tests/baselines/reference/invalid-dangling-groupname-u.types deleted file mode 100644 index 50b2780900439..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-u.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts] //// - -=== invalid-dangling-groupname-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; ->/(?.)\k/u : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt deleted file mode 100644 index d702fc863b517..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -invalid-dangling-groupname-without-group-u.ts(19,5): error TS1530: There is no capturing group named 'a' in this regular expression. -invalid-dangling-groupname-without-group-u.ts(19,8): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-dangling-groupname-without-group-u.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k/u; - ~ -!!! error TS1530: There is no capturing group named 'a' in this regular expression. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.js b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.js deleted file mode 100644 index 550099b920576..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts] //// - -//// [invalid-dangling-groupname-without-group-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; - - -//// [invalid-dangling-groupname-without-group-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k/u; diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols deleted file mode 100644 index cb9ea0ed613dd..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts] //// - -=== invalid-dangling-groupname-without-group-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; - diff --git a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.types b/tests/baselines/reference/invalid-dangling-groupname-without-group-u.types deleted file mode 100644 index 616e76b3d637c..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname-without-group-u.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts] //// - -=== invalid-dangling-groupname-without-group-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; ->/\k/u : RegExp - diff --git a/tests/baselines/reference/invalid-dangling-groupname.errors.txt b/tests/baselines/reference/invalid-dangling-groupname.errors.txt deleted file mode 100644 index 9532208b10790..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -invalid-dangling-groupname.ts(19,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-dangling-groupname.ts(19,12): error TS1530: There is no capturing group named 'b' in this regular expression. - - -==== invalid-dangling-groupname.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: Group reference must have corresponding group. - info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1530: There is no capturing group named 'b' in this regular expression. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-dangling-groupname.js b/tests/baselines/reference/invalid-dangling-groupname.js deleted file mode 100644 index 61f5f1173f4c8..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts] //// - -//// [invalid-dangling-groupname.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; - - -//// [invalid-dangling-groupname.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k/; diff --git a/tests/baselines/reference/invalid-dangling-groupname.symbols b/tests/baselines/reference/invalid-dangling-groupname.symbols deleted file mode 100644 index ac6b50f9b3362..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts] //// - -=== invalid-dangling-groupname.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; - diff --git a/tests/baselines/reference/invalid-dangling-groupname.types b/tests/baselines/reference/invalid-dangling-groupname.types deleted file mode 100644 index de36c73f413a6..0000000000000 --- a/tests/baselines/reference/invalid-dangling-groupname.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts] //// - -=== invalid-dangling-groupname.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; ->/(?.)\k/ : RegExp - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt deleted file mode 100644 index e6133feab8205..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.errors.txt +++ /dev/null @@ -1,37 +0,0 @@ -invalid-duplicate-groupspecifier-2-u.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-2-u.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-2-u.ts(18,18): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-2-u.ts(18,19): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. -invalid-duplicate-groupspecifier-2-u.ts(18,24): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-duplicate-groupspecifier-2-u.ts (5 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifiers within one alternative must be unique. - info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)(?b)(?a)/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js deleted file mode 100644 index 9d5b03abea346..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts] //// - -//// [invalid-duplicate-groupspecifier-2-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/u; - - -//// [invalid-duplicate-groupspecifier-2-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)(?b)(?a)/u; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols deleted file mode 100644 index b35d92563f9e0..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts] //// - -=== invalid-duplicate-groupspecifier-2-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/u; - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types b/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types deleted file mode 100644 index adc3a9359cac0..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2-u.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts] //// - -=== invalid-duplicate-groupspecifier-2-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/u; ->/(?a)(?b)(?a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt deleted file mode 100644 index 55528bd812aa6..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -invalid-duplicate-groupspecifier-2.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-2.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-2.ts(18,18): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-2.ts(18,19): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. - - -==== invalid-duplicate-groupspecifier-2.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifiers within one alternative must be unique. - info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)(?b)(?a)/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.js b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.js deleted file mode 100644 index 556314e836874..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts] //// - -//// [invalid-duplicate-groupspecifier-2.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/; - - -//// [invalid-duplicate-groupspecifier-2.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)(?b)(?a)/; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols deleted file mode 100644 index ed89432f12146..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts] //// - -=== invalid-duplicate-groupspecifier-2.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/; - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.types b/tests/baselines/reference/invalid-duplicate-groupspecifier-2.types deleted file mode 100644 index 02c76ba049e3c..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-2.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts] //// - -=== invalid-duplicate-groupspecifier-2.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/; ->/(?a)(?b)(?a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt deleted file mode 100644 index e66380cfdee27..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -invalid-duplicate-groupspecifier-u.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-u.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier-u.ts(18,12): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. -invalid-duplicate-groupspecifier-u.ts(18,17): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-duplicate-groupspecifier-u.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifiers within one alternative must be unique. - info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)(?a)/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.js b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.js deleted file mode 100644 index 9a74af8c3c011..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts] //// - -//// [invalid-duplicate-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/u; - - -//// [invalid-duplicate-groupspecifier-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)(?a)/u; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols deleted file mode 100644 index a6abb6227f114..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts] //// - -=== invalid-duplicate-groupspecifier-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/u; - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.types b/tests/baselines/reference/invalid-duplicate-groupspecifier-u.types deleted file mode 100644 index 87a44b6fd3deb..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier-u.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts] //// - -=== invalid-duplicate-groupspecifier-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/u; ->/(?a)(?a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt b/tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt deleted file mode 100644 index a1807ba2b064e..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -invalid-duplicate-groupspecifier.ts(18,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier.ts(18,11): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-duplicate-groupspecifier.ts(18,12): error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. - - -==== invalid-duplicate-groupspecifier.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifiers within one alternative must be unique. - info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. - esid: sec-patterns-static-semantics-early-errors - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)(?a)/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~ -!!! error TS1513: Named capturing groups with the same name must be mutually exclusive to each other. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.js b/tests/baselines/reference/invalid-duplicate-groupspecifier.js deleted file mode 100644 index 07c2bafc96d9c..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts] //// - -//// [invalid-duplicate-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/; - - -//// [invalid-duplicate-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)(?a)/; diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.symbols b/tests/baselines/reference/invalid-duplicate-groupspecifier.symbols deleted file mode 100644 index 4294238293bcc..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts] //// - -=== invalid-duplicate-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/; - diff --git a/tests/baselines/reference/invalid-duplicate-groupspecifier.types b/tests/baselines/reference/invalid-duplicate-groupspecifier.types deleted file mode 100644 index 9f1bdd767a0e8..0000000000000 --- a/tests/baselines/reference/invalid-duplicate-groupspecifier.types +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts] //// - -=== invalid-duplicate-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/; ->/(?a)(?a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt deleted file mode 100644 index 1950bb09b6ac5..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-empty-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-empty-groupspecifier-u.ts(14,5): error TS1512: Expected a capturing group name. -invalid-empty-groupspecifier-u.ts(14,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-empty-groupspecifier-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<>a)/u; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.js b/tests/baselines/reference/invalid-empty-groupspecifier-u.js deleted file mode 100644 index 85063d9e165e6..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts] //// - -//// [invalid-empty-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/u; - - -//// [invalid-empty-groupspecifier-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<>a)/u; diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.symbols b/tests/baselines/reference/invalid-empty-groupspecifier-u.symbols deleted file mode 100644 index 737e19e4322fa..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts] //// - -=== invalid-empty-groupspecifier-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/u; - diff --git a/tests/baselines/reference/invalid-empty-groupspecifier-u.types b/tests/baselines/reference/invalid-empty-groupspecifier-u.types deleted file mode 100644 index b5b51a7a9e798..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts] //// - -=== invalid-empty-groupspecifier-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/u; ->/(?<>a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.errors.txt b/tests/baselines/reference/invalid-empty-groupspecifier.errors.txt deleted file mode 100644 index fa8b238480065..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-empty-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-empty-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. - - -==== invalid-empty-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<>a)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.js b/tests/baselines/reference/invalid-empty-groupspecifier.js deleted file mode 100644 index 9e29cbe631a4b..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts] //// - -//// [invalid-empty-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/; - - -//// [invalid-empty-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<>a)/; diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.symbols b/tests/baselines/reference/invalid-empty-groupspecifier.symbols deleted file mode 100644 index 61fe301b0efad..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts] //// - -=== invalid-empty-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/; - diff --git a/tests/baselines/reference/invalid-empty-groupspecifier.types b/tests/baselines/reference/invalid-empty-groupspecifier.types deleted file mode 100644 index 16ee2da753e5c..0000000000000 --- a/tests/baselines/reference/invalid-empty-groupspecifier.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts] //// - -=== invalid-empty-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/; ->/(?<>a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt b/tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt deleted file mode 100644 index 9e77f68fd5658..0000000000000 --- a/tests/baselines/reference/invalid-identity-escape-in-capture-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-identity-escape-in-capture-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-identity-escape-in-capture-u.ts(14,7): error TS1496: '\a' is not a valid character escape. -invalid-identity-escape-in-capture-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-identity-escape-in-capture-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?\a)/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~ -!!! error TS1496: '\a' is not a valid character escape. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.js b/tests/baselines/reference/invalid-identity-escape-in-capture-u.js deleted file mode 100644 index 10edb3d58dce1..0000000000000 --- a/tests/baselines/reference/invalid-identity-escape-in-capture-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts] //// - -//// [invalid-identity-escape-in-capture-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?\a)/u; - - -//// [invalid-identity-escape-in-capture-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?\a)/u; diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols b/tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols deleted file mode 100644 index 5297caec46182..0000000000000 --- a/tests/baselines/reference/invalid-identity-escape-in-capture-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts] //// - -=== invalid-identity-escape-in-capture-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?\a)/u; - diff --git a/tests/baselines/reference/invalid-identity-escape-in-capture-u.types b/tests/baselines/reference/invalid-identity-escape-in-capture-u.types deleted file mode 100644 index 4a70a8e6e471b..0000000000000 --- a/tests/baselines/reference/invalid-identity-escape-in-capture-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts] //// - -=== invalid-identity-escape-in-capture-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?\a)/u; ->/(?\a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt deleted file mode 100644 index 14d9503228848..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-2-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-incomplete-groupname-2-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-incomplete-groupname-2-u.ts(14,13): error TS1005: '>' expected. -invalid-incomplete-groupname-2-u.ts(14,14): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-incomplete-groupname-2-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k' expected. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-2-u.js b/tests/baselines/reference/invalid-incomplete-groupname-2-u.js deleted file mode 100644 index 4fbfefea89392..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-2-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts] //// - -//// [invalid-incomplete-groupname-2-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/(?.)\k' expected. - - -==== invalid-incomplete-groupname-2.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-2.js b/tests/baselines/reference/invalid-incomplete-groupname-2.js deleted file mode 100644 index 54e926da0adcf..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-2.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2.ts] //// - -//// [invalid-incomplete-groupname-2.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/(?.)\k`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k<>/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3-u.js b/tests/baselines/reference/invalid-incomplete-groupname-3-u.js deleted file mode 100644 index e8d65f23df00a..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts] //// - -//// [invalid-incomplete-groupname-3-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/u; - - -//// [invalid-incomplete-groupname-3-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k<>/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols deleted file mode 100644 index 791f8c7c47f59..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts] //// - -=== invalid-incomplete-groupname-3-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/u; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3-u.types b/tests/baselines/reference/invalid-incomplete-groupname-3-u.types deleted file mode 100644 index ac96d0da9262b..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3-u.ts] //// - -=== invalid-incomplete-groupname-3-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/u; ->/(?.)\k<>/u : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt deleted file mode 100644 index 38ad49c10ea03..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-incomplete-groupname-3.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-incomplete-groupname-3.ts(14,12): error TS1512: Expected a capturing group name. - - -==== invalid-incomplete-groupname-3.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k<>/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.js b/tests/baselines/reference/invalid-incomplete-groupname-3.js deleted file mode 100644 index ab7d71dd21c4b..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts] //// - -//// [invalid-incomplete-groupname-3.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/; - - -//// [invalid-incomplete-groupname-3.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k<>/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.symbols b/tests/baselines/reference/invalid-incomplete-groupname-3.symbols deleted file mode 100644 index 88bd5f2ea459f..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts] //// - -=== invalid-incomplete-groupname-3.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-3.types b/tests/baselines/reference/invalid-incomplete-groupname-3.types deleted file mode 100644 index d4978aedb9b42..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-3.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts] //// - -=== invalid-incomplete-groupname-3.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/; ->/(?.)\k<>/ : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt deleted file mode 100644 index b942b87f23ada..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-4.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-incomplete-groupname-4.ts(14,6): error TS1005: '>' expected. -invalid-incomplete-groupname-4.ts(14,8): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - - -==== invalid-incomplete-groupname-4.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\ka)/; - -!!! error TS1005: '>' expected. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.js b/tests/baselines/reference/invalid-incomplete-groupname-4.js deleted file mode 100644 index 439bdcc755b68..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-4.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts] //// - -//// [invalid-incomplete-groupname-4.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\ka)/; - - -//// [invalid-incomplete-groupname-4.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\ka)/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.symbols b/tests/baselines/reference/invalid-incomplete-groupname-4.symbols deleted file mode 100644 index d2b8a40654509..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-4.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts] //// - -=== invalid-incomplete-groupname-4.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\ka)/; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-4.types b/tests/baselines/reference/invalid-incomplete-groupname-4.types deleted file mode 100644 index 253893829e848..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-4.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts] //// - -=== invalid-incomplete-groupname-4.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\ka)/; ->/\ka)/ : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt deleted file mode 100644 index 8fe4c888ce7d1..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-5.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-incomplete-groupname-5.ts(14,6): error TS1005: '>' expected. -invalid-incomplete-groupname-5.ts(14,8): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - - -==== invalid-incomplete-groupname-5.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k.)/; - -!!! error TS1005: '>' expected. - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.js b/tests/baselines/reference/invalid-incomplete-groupname-5.js deleted file mode 100644 index d829179b42adf..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-5.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts] //// - -//// [invalid-incomplete-groupname-5.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k.)/; - - -//// [invalid-incomplete-groupname-5.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k.)/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.symbols b/tests/baselines/reference/invalid-incomplete-groupname-5.symbols deleted file mode 100644 index d55cb3f2815ae..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-5.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts] //// - -=== invalid-incomplete-groupname-5.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k.)/; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-5.types b/tests/baselines/reference/invalid-incomplete-groupname-5.types deleted file mode 100644 index 1b084604ef268..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-5.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts] //// - -=== invalid-incomplete-groupname-5.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k.)/; ->/\k.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt deleted file mode 100644 index fed1fb02aa799..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-6.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -invalid-incomplete-groupname-6.ts(14,6): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - - -==== invalid-incomplete-groupname-6.ts (1 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k(?.)/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.js b/tests/baselines/reference/invalid-incomplete-groupname-6.js deleted file mode 100644 index 0da2cb2f50246..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-6.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts] //// - -//// [invalid-incomplete-groupname-6.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?.)/; - - -//// [invalid-incomplete-groupname-6.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k(?.)/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.symbols b/tests/baselines/reference/invalid-incomplete-groupname-6.symbols deleted file mode 100644 index c7b0b72cfeaf0..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-6.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts] //// - -=== invalid-incomplete-groupname-6.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?.)/; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-6.types b/tests/baselines/reference/invalid-incomplete-groupname-6.types deleted file mode 100644 index 8907178074e13..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-6.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts] //// - -=== invalid-incomplete-groupname-6.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?.)/; ->/\k(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt deleted file mode 100644 index feebcd4ac3a45..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-incomplete-groupname-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-incomplete-groupname-u.ts(14,9): error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. -invalid-incomplete-groupname-u.ts(14,12): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-incomplete-groupname-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k/u; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - ~~ -!!! error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.js b/tests/baselines/reference/invalid-incomplete-groupname-u.js deleted file mode 100644 index 3193f7afde45e..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts] //// - -//// [invalid-incomplete-groupname-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; - - -//// [invalid-incomplete-groupname-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-u.symbols deleted file mode 100644 index d33f93a5572ff..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts] //// - -=== invalid-incomplete-groupname-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-u.types b/tests/baselines/reference/invalid-incomplete-groupname-u.types deleted file mode 100644 index 0ffdde06693e8..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts] //// - -=== invalid-incomplete-groupname-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; ->/(?.)\k/u : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt deleted file mode 100644 index d3ef1eaef5536..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-incomplete-groupname-without-group-2-u.ts(14,5): error TS1512: Expected a capturing group name. -invalid-incomplete-groupname-without-group-2-u.ts(14,7): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-incomplete-groupname-without-group-2-u.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k<>/u; - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js deleted file mode 100644 index 64e43d795b341..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts] //// - -//// [invalid-incomplete-groupname-without-group-2-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k<>/u; - - -//// [invalid-incomplete-groupname-without-group-2-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k<>/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols deleted file mode 100644 index 34d28b36641cc..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts] //// - -=== invalid-incomplete-groupname-without-group-2-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k<>/u; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types b/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types deleted file mode 100644 index 272431f357ef9..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-2-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts] //// - -=== invalid-incomplete-groupname-without-group-2-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k<>/u; ->/\k<>/u : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt deleted file mode 100644 index 058e7c7a7bc7a..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-incomplete-groupname-without-group-3-u.ts(14,2): error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. -invalid-incomplete-groupname-without-group-3-u.ts(14,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-incomplete-groupname-without-group-3-u.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k/u; - ~~ -!!! error TS1508: '\k' must be followed by a capturing group name enclosed in angle brackets. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js deleted file mode 100644 index a68256987e2d4..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts] //// - -//// [invalid-incomplete-groupname-without-group-3-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; - - -//// [invalid-incomplete-groupname-without-group-3-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k/u; diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols deleted file mode 100644 index d1c50d2bceb92..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts] //// - -=== invalid-incomplete-groupname-without-group-3-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types b/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types deleted file mode 100644 index 677b7f1a165e5..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-3-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts] //// - -=== invalid-incomplete-groupname-without-group-3-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; ->/\k/u : RegExp - diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt b/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt deleted file mode 100644 index 1f1ffa7adda1e..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-incomplete-groupname-without-group-u.ts(14,5): error TS1530: There is no capturing group named 'a' in this regular expression. -invalid-incomplete-groupname-without-group-u.ts(14,6): error TS1005: '>' expected. -invalid-incomplete-groupname-without-group-u.ts(14,7): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-incomplete-groupname-without-group-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupName is `< RegExpIdentifierName >`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /\k' expected. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js b/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js deleted file mode 100644 index 8fa61a2b7f227..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname-without-group-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts] //// - -//// [invalid-incomplete-groupname-without-group-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/\k`. - esid: prod-GroupName - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)\k/; - ~~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-incomplete-groupname.js b/tests/baselines/reference/invalid-incomplete-groupname.js deleted file mode 100644 index b27ecba91652d..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts] //// - -//// [invalid-incomplete-groupname.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; - - -//// [invalid-incomplete-groupname.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)\k/; diff --git a/tests/baselines/reference/invalid-incomplete-groupname.symbols b/tests/baselines/reference/invalid-incomplete-groupname.symbols deleted file mode 100644 index 12b0cab3a7d42..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts] //// - -=== invalid-incomplete-groupname.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; - diff --git a/tests/baselines/reference/invalid-incomplete-groupname.types b/tests/baselines/reference/invalid-incomplete-groupname.types deleted file mode 100644 index d4b1bc33c9632..0000000000000 --- a/tests/baselines/reference/invalid-incomplete-groupname.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname.ts] //// - -=== invalid-incomplete-groupname.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; ->/(?.)\k/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt deleted file mode 100644 index 09b9944505b9a..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -invalid-non-id-continue-groupspecifier-4-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-continue-groupspecifier-4-u.ts(14,6): error TS1005: '>' expected. -invalid-non-id-continue-groupspecifier-4-u.ts(14,6): error TS1496: '\>' is not a valid character escape. -invalid-non-id-continue-groupspecifier-4-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-continue-groupspecifier-4-u.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/u; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - ~~ -!!! error TS1496: '\>' is not a valid character escape. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js deleted file mode 100644 index b47af04d97860..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts] //// - -//// [invalid-non-id-continue-groupspecifier-4-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - - -//// [invalid-non-id-continue-groupspecifier-4-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols deleted file mode 100644 index d25290f42263a..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts] //// - -=== invalid-non-id-continue-groupspecifier-4-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types deleted file mode 100644 index 6ec4f9b489300..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts] //// - -=== invalid-non-id-continue-groupspecifier-4-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; ->/(?.)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt deleted file mode 100644 index 4b0ac74b2500d..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-continue-groupspecifier-4.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-continue-groupspecifier-4.ts(14,6): error TS1005: '>' expected. - - -==== invalid-non-id-continue-groupspecifier-4.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js deleted file mode 100644 index dc03377b7b44c..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts] //// - -//// [invalid-non-id-continue-groupspecifier-4.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - - -//// [invalid-non-id-continue-groupspecifier-4.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols deleted file mode 100644 index 6afb6f1bcb6fe..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts] //// - -=== invalid-non-id-continue-groupspecifier-4.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types b/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types deleted file mode 100644 index 50cb75890cb1c..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier-4.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts] //// - -=== invalid-non-id-continue-groupspecifier-4.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; ->/(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt deleted file mode 100644 index 67f34649cb6ca..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-continue-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-continue-groupspecifier.ts(14,6): error TS1005: '>' expected. - - -==== invalid-non-id-continue-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<$❁Ea)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.js b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.js deleted file mode 100644 index c2880bb9d1464..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts] //// - -//// [invalid-non-id-continue-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<$❁Ea)/; - - -//// [invalid-non-id-continue-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<$❁Ea)/; diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols deleted file mode 100644 index 701c8d2aa018c..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts] //// - -=== invalid-non-id-continue-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<$❁Ea)/; - diff --git a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.types b/tests/baselines/reference/invalid-non-id-continue-groupspecifier.types deleted file mode 100644 index 1f6a8a4b26cab..0000000000000 --- a/tests/baselines/reference/invalid-non-id-continue-groupspecifier.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts] //// - -=== invalid-non-id-continue-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<$❁Ea)/; ->/(?<$❁Ea)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt deleted file mode 100644 index 32e1bf579b9e2..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-non-id-start-groupspecifier-2-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-2-u.ts(14,5): error TS1512: Expected a capturing group name. -invalid-non-id-start-groupspecifier-2-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-start-groupspecifier-2-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<𐒤>a)/u; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js deleted file mode 100644 index 1d878f49742a2..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts] //// - -//// [invalid-non-id-start-groupspecifier-2-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/u; - - -//// [invalid-non-id-start-groupspecifier-2-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<𐒤>a)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols deleted file mode 100644 index 02d19c0fb7c6e..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts] //// - -=== invalid-non-id-start-groupspecifier-2-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/u; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types deleted file mode 100644 index 8dc77c738e1d6..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts] //// - -=== invalid-non-id-start-groupspecifier-2-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/u; ->/(?<𐒤>a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt deleted file mode 100644 index f5e58301506b8..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-start-groupspecifier-2.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-2.ts(14,5): error TS1512: Expected a capturing group name. - - -==== invalid-non-id-start-groupspecifier-2.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<𐒤>a)/; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js deleted file mode 100644 index c4d5a855cb79a..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts] //// - -//// [invalid-non-id-start-groupspecifier-2.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/; - - -//// [invalid-non-id-start-groupspecifier-2.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<𐒤>a)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols deleted file mode 100644 index 1c3046a90fbc3..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts] //// - -=== invalid-non-id-start-groupspecifier-2.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types deleted file mode 100644 index a3196c8657728..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-2.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts] //// - -=== invalid-non-id-start-groupspecifier-2.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/; ->/(?<𐒤>a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt deleted file mode 100644 index da6cbb9e117d7..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-start-groupspecifier-3.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-3.ts(14,6): error TS1005: '>' expected. - - -==== invalid-non-id-start-groupspecifier-3.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js deleted file mode 100644 index 24ec957fc43f6..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts] //// - -//// [invalid-non-id-start-groupspecifier-3.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - - -//// [invalid-non-id-start-groupspecifier-3.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols deleted file mode 100644 index 6a17c878c14f9..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts] //// - -=== invalid-non-id-start-groupspecifier-3.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types deleted file mode 100644 index 68adb6e1091cd..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-3.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts] //// - -=== invalid-non-id-start-groupspecifier-3.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; ->/(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt deleted file mode 100644 index 7159f7f7330c6..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-non-id-start-groupspecifier-4-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-4-u.ts(14,6): error TS1005: '>' expected. -invalid-non-id-start-groupspecifier-4-u.ts(14,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-start-groupspecifier-4-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/u; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js deleted file mode 100644 index d80b329fd5c2e..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts] //// - -//// [invalid-non-id-start-groupspecifier-4-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - - -//// [invalid-non-id-start-groupspecifier-4-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols deleted file mode 100644 index 28fa359eeb93b..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts] //// - -=== invalid-non-id-start-groupspecifier-4-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types deleted file mode 100644 index e701dc77b0b93..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts] //// - -=== invalid-non-id-start-groupspecifier-4-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; ->/(?.)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt deleted file mode 100644 index 2813a537e9314..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-start-groupspecifier-4.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-4.ts(14,6): error TS1005: '>' expected. - - -==== invalid-non-id-start-groupspecifier-4.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js deleted file mode 100644 index 961dc6806eaab..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts] //// - -//// [invalid-non-id-start-groupspecifier-4.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - - -//// [invalid-non-id-start-groupspecifier-4.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols deleted file mode 100644 index fe083dbe25983..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts] //// - -=== invalid-non-id-start-groupspecifier-4.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types deleted file mode 100644 index b87b9ec04c9fd..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-4.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts] //// - -=== invalid-non-id-start-groupspecifier-4.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; ->/(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt deleted file mode 100644 index 86abaf2ef2c82..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-non-id-start-groupspecifier-5-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-5-u.ts(14,6): error TS1005: '>' expected. -invalid-non-id-start-groupspecifier-5-u.ts(14,16): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-start-groupspecifier-5-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/u; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js deleted file mode 100644 index 149ef14d3a8f2..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts] //// - -//// [invalid-non-id-start-groupspecifier-5-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - - -//// [invalid-non-id-start-groupspecifier-5-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols deleted file mode 100644 index 19cc3f1b109a9..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts] //// - -=== invalid-non-id-start-groupspecifier-5-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types deleted file mode 100644 index 30e2561710431..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts] //// - -=== invalid-non-id-start-groupspecifier-5-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; ->/(?.)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt deleted file mode 100644 index 7ef38a8f996c4..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-start-groupspecifier-5.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-5.ts(14,6): error TS1005: '>' expected. - - -==== invalid-non-id-start-groupspecifier-5.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js deleted file mode 100644 index f006a70ea6a52..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts] //// - -//// [invalid-non-id-start-groupspecifier-5.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - - -//// [invalid-non-id-start-groupspecifier-5.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols deleted file mode 100644 index 9b57e432c358c..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts] //// - -=== invalid-non-id-start-groupspecifier-5.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types deleted file mode 100644 index 5680943dfcf3a..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-5.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts] //// - -=== invalid-non-id-start-groupspecifier-5.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; ->/(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt deleted file mode 100644 index 925c99d8658a1..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -invalid-non-id-start-groupspecifier-6.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-6.ts(14,6): error TS1005: '>' expected. -invalid-non-id-start-groupspecifier-6.ts(14,8): error TS1125: Hexadecimal digit expected. -invalid-non-id-start-groupspecifier-6.ts(14,10): error TS1005: '}' expected. - - -==== invalid-non-id-start-groupspecifier-6.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - -!!! error TS1125: Hexadecimal digit expected. - -!!! error TS1005: '}' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js deleted file mode 100644 index 6753d386ef115..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts] //// - -//// [invalid-non-id-start-groupspecifier-6.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - - -//// [invalid-non-id-start-groupspecifier-6.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols deleted file mode 100644 index 982f4adfc55d8..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts] //// - -=== invalid-non-id-start-groupspecifier-6.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types deleted file mode 100644 index 5bee7ce9cb12e..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-6.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts] //// - -=== invalid-non-id-start-groupspecifier-6.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; ->/(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt deleted file mode 100644 index d23aa9ba58353..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -invalid-non-id-start-groupspecifier-7.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-7.ts(14,6): error TS1005: '>' expected. -invalid-non-id-start-groupspecifier-7.ts(14,8): error TS1125: Hexadecimal digit expected. -invalid-non-id-start-groupspecifier-7.ts(14,11): error TS1005: '}' expected. - - -==== invalid-non-id-start-groupspecifier-7.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - -!!! error TS1125: Hexadecimal digit expected. - -!!! error TS1005: '}' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js deleted file mode 100644 index 400f86b5fe373..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts] //// - -//// [invalid-non-id-start-groupspecifier-7.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - - -//// [invalid-non-id-start-groupspecifier-7.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols deleted file mode 100644 index 60652e9bcaf32..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts] //// - -=== invalid-non-id-start-groupspecifier-7.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types deleted file mode 100644 index db04bad7657e3..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-7.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts] //// - -=== invalid-non-id-start-groupspecifier-7.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; ->/(?.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt deleted file mode 100644 index 489233babce9c..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -invalid-non-id-start-groupspecifier-8-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-8-u.ts(14,5): error TS1512: Expected a capturing group name. -invalid-non-id-start-groupspecifier-8-u.ts(14,5): error TS1496: '\>' is not a valid character escape. -invalid-non-id-start-groupspecifier-8-u.ts(14,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-start-groupspecifier-8-u.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<\>.)/u; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~~ -!!! error TS1496: '\>' is not a valid character escape. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js deleted file mode 100644 index 332b4b171ec5d..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts] //// - -//// [invalid-non-id-start-groupspecifier-8-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/u; - - -//// [invalid-non-id-start-groupspecifier-8-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<\>.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols deleted file mode 100644 index f77198cadeb5e..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts] //// - -=== invalid-non-id-start-groupspecifier-8-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/u; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types deleted file mode 100644 index 13d0f8ee67781..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts] //// - -=== invalid-non-id-start-groupspecifier-8-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/u; ->/(?<\>.)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt deleted file mode 100644 index 1daed90d1aab9..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-start-groupspecifier-8.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-8.ts(14,5): error TS1512: Expected a capturing group name. - - -==== invalid-non-id-start-groupspecifier-8.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<\>.)/; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js deleted file mode 100644 index 8f291df608d58..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts] //// - -//// [invalid-non-id-start-groupspecifier-8.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/; - - -//// [invalid-non-id-start-groupspecifier-8.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<\>.)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols deleted file mode 100644 index 44b7c9ca8ed0c..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts] //// - -=== invalid-non-id-start-groupspecifier-8.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types deleted file mode 100644 index 32de7172a7761..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-8.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts] //// - -=== invalid-non-id-start-groupspecifier-8.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/; ->/(?<\>.)/ : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt deleted file mode 100644 index 7d5c0e5103255..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.errors.txt +++ /dev/null @@ -1,30 +0,0 @@ -invalid-non-id-start-groupspecifier-9-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-9-u.ts(14,6): error TS1005: '>' expected. -invalid-non-id-start-groupspecifier-9-u.ts(14,9): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. -invalid-non-id-start-groupspecifier-9-u.ts(14,20): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-start-groupspecifier-9-u.ts (4 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?.)/u; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - ~~~~~~ -!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js deleted file mode 100644 index edb8fb5c18bcb..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts] //// - -//// [invalid-non-id-start-groupspecifier-9-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - - -//// [invalid-non-id-start-groupspecifier-9-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?.)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols deleted file mode 100644 index 9fed6042f7fd6..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts] //// - -=== invalid-non-id-start-groupspecifier-9-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types deleted file mode 100644 index 640a78b89a0d0..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-9-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts] //// - -=== invalid-non-id-start-groupspecifier-9-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; ->/(?.)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt deleted file mode 100644 index 2fbeece8983d7..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-non-id-start-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier-u.ts(14,5): error TS1512: Expected a capturing group name. -invalid-non-id-start-groupspecifier-u.ts(14,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-non-id-start-groupspecifier-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<❤>a)/u; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js deleted file mode 100644 index 8329df8a0addb..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts] //// - -//// [invalid-non-id-start-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/u; - - -//// [invalid-non-id-start-groupspecifier-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<❤>a)/u; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols deleted file mode 100644 index 8c779088f5701..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts] //// - -=== invalid-non-id-start-groupspecifier-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/u; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types deleted file mode 100644 index 57d82e2032ac0..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts] //// - -=== invalid-non-id-start-groupspecifier-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/u; ->/(?<❤>a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt b/tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt deleted file mode 100644 index eb6009e48eba2..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-non-id-start-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-non-id-start-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. - - -==== invalid-non-id-start-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<❤>a)/; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.js b/tests/baselines/reference/invalid-non-id-start-groupspecifier.js deleted file mode 100644 index a55c2537b12d1..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts] //// - -//// [invalid-non-id-start-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/; - - -//// [invalid-non-id-start-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<❤>a)/; diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols b/tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols deleted file mode 100644 index 6311847cd83f9..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts] //// - -=== invalid-non-id-start-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/; - diff --git a/tests/baselines/reference/invalid-non-id-start-groupspecifier.types b/tests/baselines/reference/invalid-non-id-start-groupspecifier.types deleted file mode 100644 index ef718cfec5b74..0000000000000 --- a/tests/baselines/reference/invalid-non-id-start-groupspecifier.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts] //// - -=== invalid-non-id-start-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/; ->/(?<❤>a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt deleted file mode 100644 index 76696d535acd0..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-numeric-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-numeric-groupspecifier-u.ts(14,5): error TS1512: Expected a capturing group name. -invalid-numeric-groupspecifier-u.ts(14,12): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-numeric-groupspecifier-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<42a>a)/u; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.js b/tests/baselines/reference/invalid-numeric-groupspecifier-u.js deleted file mode 100644 index 33f9d1d5e0b13..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts] //// - -//// [invalid-numeric-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/u; - - -//// [invalid-numeric-groupspecifier-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<42a>a)/u; diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols b/tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols deleted file mode 100644 index 5315fc9633a1e..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts] //// - -=== invalid-numeric-groupspecifier-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/u; - diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier-u.types b/tests/baselines/reference/invalid-numeric-groupspecifier-u.types deleted file mode 100644 index 1b8acbba3a5cc..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts] //// - -=== invalid-numeric-groupspecifier-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/u; ->/(?<42a>a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt b/tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt deleted file mode 100644 index 5c7d8c6707485..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-numeric-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-numeric-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. - - -==== invalid-numeric-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<42a>a)/; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.js b/tests/baselines/reference/invalid-numeric-groupspecifier.js deleted file mode 100644 index e6242dd2ade8b..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts] //// - -//// [invalid-numeric-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/; - - -//// [invalid-numeric-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<42a>a)/; diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.symbols b/tests/baselines/reference/invalid-numeric-groupspecifier.symbols deleted file mode 100644 index 625fcf76e4b55..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts] //// - -=== invalid-numeric-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/; - diff --git a/tests/baselines/reference/invalid-numeric-groupspecifier.types b/tests/baselines/reference/invalid-numeric-groupspecifier.types deleted file mode 100644 index 7268e04543bf9..0000000000000 --- a/tests/baselines/reference/invalid-numeric-groupspecifier.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts] //// - -=== invalid-numeric-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/; ->/(?<42a>a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-optional-lookbehind.errors.txt b/tests/baselines/reference/invalid-optional-lookbehind.errors.txt deleted file mode 100644 index 86ac6b9bcafcb..0000000000000 --- a/tests/baselines/reference/invalid-optional-lookbehind.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -invalid-optional-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. - - -==== invalid-optional-lookbehind.ts (1 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?<=.)?/; - ~ -!!! error TS1505: There is nothing available for repetition. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-optional-lookbehind.js b/tests/baselines/reference/invalid-optional-lookbehind.js deleted file mode 100644 index 200b9a1456195..0000000000000 --- a/tests/baselines/reference/invalid-optional-lookbehind.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts] //// - -//// [invalid-optional-lookbehind.ts] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/; - - -//// [invalid-optional-lookbehind.js] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ -/.(?<=.)?/; diff --git a/tests/baselines/reference/invalid-optional-lookbehind.symbols b/tests/baselines/reference/invalid-optional-lookbehind.symbols deleted file mode 100644 index ac3f3742e9974..0000000000000 --- a/tests/baselines/reference/invalid-optional-lookbehind.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts] //// - -=== invalid-optional-lookbehind.ts === - -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/; - diff --git a/tests/baselines/reference/invalid-optional-lookbehind.types b/tests/baselines/reference/invalid-optional-lookbehind.types deleted file mode 100644 index 2decfb2567568..0000000000000 --- a/tests/baselines/reference/invalid-optional-lookbehind.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts] //// - -=== invalid-optional-lookbehind.ts === -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/; ->/.(?<=.)?/ : RegExp - diff --git a/tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt b/tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt deleted file mode 100644 index 954b0e3b8f5b4..0000000000000 --- a/tests/baselines/reference/invalid-optional-negative-lookbehind.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -invalid-optional-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. - - -==== invalid-optional-negative-lookbehind.ts (1 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?/.(?a)/u; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js deleted file mode 100644 index d86c4cbaf2628..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts] //// - -//// [invalid-punctuator-starting-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/u; - - -//// [invalid-punctuator-starting-groupspecifier-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<:a>a)/u; diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols deleted file mode 100644 index e6485dcfc0120..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts] //// - -=== invalid-punctuator-starting-groupspecifier-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/u; - diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types deleted file mode 100644 index b6428d5f5344b..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts] //// - -=== invalid-punctuator-starting-groupspecifier-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/u; ->/(?<:a>a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt deleted file mode 100644 index 1c7018ad487f1..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-punctuator-starting-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-punctuator-starting-groupspecifier.ts(14,5): error TS1512: Expected a capturing group name. - - -==== invalid-punctuator-starting-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?<:a>a)/; - ~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1512: Expected a capturing group name. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js deleted file mode 100644 index f0c3aa38e094c..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts] //// - -//// [invalid-punctuator-starting-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/; - - -//// [invalid-punctuator-starting-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?<:a>a)/; diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols deleted file mode 100644 index eb677f444bf55..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts] //// - -=== invalid-punctuator-starting-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/; - diff --git a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types b/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types deleted file mode 100644 index f0f72e421b59a..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-starting-groupspecifier.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts] //// - -=== invalid-punctuator-starting-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/; ->/(?<:a>a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt deleted file mode 100644 index e85115983591e..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -invalid-punctuator-within-groupspecifier-u.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-punctuator-within-groupspecifier-u.ts(14,6): error TS1005: '>' expected. -invalid-punctuator-within-groupspecifier-u.ts(14,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-punctuator-within-groupspecifier-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)/u; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js deleted file mode 100644 index 159656ee05725..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts] //// - -//// [invalid-punctuator-within-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/u; - - -//// [invalid-punctuator-within-groupspecifier-u.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)/u; diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols deleted file mode 100644 index 4c508b788c196..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts] //// - -=== invalid-punctuator-within-groupspecifier-u.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/u; - diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types b/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types deleted file mode 100644 index 66347e69e3e12..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier-u.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts] //// - -=== invalid-punctuator-within-groupspecifier-u.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/u; ->/(?a)/u : RegExp - diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt deleted file mode 100644 index 5de33fe40556d..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -invalid-punctuator-within-groupspecifier.ts(14,4): error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. -invalid-punctuator-within-groupspecifier.ts(14,6): error TS1005: '>' expected. - - -==== invalid-punctuator-within-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?a)/; - ~~ -!!! error TS1501: Named capturing groups are only available when targeting 'ES2018' or later. - -!!! error TS1005: '>' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.js b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.js deleted file mode 100644 index a57784f178c57..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts] //// - -//// [invalid-punctuator-within-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/; - - -//// [invalid-punctuator-within-groupspecifier.js] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ -/(?a)/; diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols deleted file mode 100644 index a75f3f6933d65..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts] //// - -=== invalid-punctuator-within-groupspecifier.ts === - -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/; - diff --git a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.types b/tests/baselines/reference/invalid-punctuator-within-groupspecifier.types deleted file mode 100644 index 74aaba8ca7511..0000000000000 --- a/tests/baselines/reference/invalid-punctuator-within-groupspecifier.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts] //// - -=== invalid-punctuator-within-groupspecifier.ts === -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/; ->/(?a)/ : RegExp - diff --git a/tests/baselines/reference/invalid-range-lookbehind.errors.txt b/tests/baselines/reference/invalid-range-lookbehind.errors.txt deleted file mode 100644 index 98aed08d697db..0000000000000 --- a/tests/baselines/reference/invalid-range-lookbehind.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -invalid-range-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. - - -==== invalid-range-lookbehind.ts (1 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?<=.){2,3}/; - ~~~~~ -!!! error TS1505: There is nothing available for repetition. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-range-lookbehind.js b/tests/baselines/reference/invalid-range-lookbehind.js deleted file mode 100644 index 1c316147ee6b2..0000000000000 --- a/tests/baselines/reference/invalid-range-lookbehind.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts] //// - -//// [invalid-range-lookbehind.ts] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.){2,3}/; - - -//// [invalid-range-lookbehind.js] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ -/.(?<=.){2,3}/; diff --git a/tests/baselines/reference/invalid-range-lookbehind.symbols b/tests/baselines/reference/invalid-range-lookbehind.symbols deleted file mode 100644 index 819a549caffc9..0000000000000 --- a/tests/baselines/reference/invalid-range-lookbehind.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts] //// - -=== invalid-range-lookbehind.ts === - -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.){2,3}/; - diff --git a/tests/baselines/reference/invalid-range-lookbehind.types b/tests/baselines/reference/invalid-range-lookbehind.types deleted file mode 100644 index 7d8e4a8b5722b..0000000000000 --- a/tests/baselines/reference/invalid-range-lookbehind.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/invalid-range-lookbehind.ts] //// - -=== invalid-range-lookbehind.ts === -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.){2,3}/; ->/.(?<=.){2,3}/ : RegExp - diff --git a/tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt b/tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt deleted file mode 100644 index 9bbcfa46e5268..0000000000000 --- a/tests/baselines/reference/invalid-range-negative-lookbehind.errors.txt +++ /dev/null @@ -1,26 +0,0 @@ -invalid-range-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. - - -==== invalid-range-negative-lookbehind.ts (1 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?/.(?' expected. -invalid-unterminated-groupspecifier-u.ts(14,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== invalid-unterminated-groupspecifier-u.ts (3 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?' expected. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-unterminated-groupspecifier-u.js b/tests/baselines/reference/invalid-unterminated-groupspecifier-u.js deleted file mode 100644 index bc61a3293363e..0000000000000 --- a/tests/baselines/reference/invalid-unterminated-groupspecifier-u.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts] //// - -//// [invalid-unterminated-groupspecifier-u.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?/(?' expected. - - -==== invalid-unterminated-groupspecifier.ts (2 errors) ==== - // Copyright 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: GroupSpecifier must be identifier-like. - esid: prod-GroupSpecifier - negative: - phase: parse - type: SyntaxError - features: [regexp-named-groups] - ---*/ - - - /(?' expected. - \ No newline at end of file diff --git a/tests/baselines/reference/invalid-unterminated-groupspecifier.js b/tests/baselines/reference/invalid-unterminated-groupspecifier.js deleted file mode 100644 index f6c12798d20eb..0000000000000 --- a/tests/baselines/reference/invalid-unterminated-groupspecifier.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.ts] //// - -//// [invalid-unterminated-groupspecifier.ts] -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?/(? - String Literals extensions disallowed in strict mode; ZeroToThree 1 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\1"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js deleted file mode 100644 index 9795c627c5fe1..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 1 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\1"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 1 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\1"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols deleted file mode 100644 index da2c325a945d1..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 1 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\1"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types deleted file mode 100644 index 5c86154f93f09..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 1 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\1"; "use strict"; } ->invalid : () => void ->"\1" : "\u0001" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt deleted file mode 100644 index 584c2ec9a1b24..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x02'. - - -==== legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; ZeroToThree 2 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\2"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x02'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js deleted file mode 100644 index 73e214899fc36..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 2 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\2"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 2 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\2"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols deleted file mode 100644 index 8e33e79334e3b..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 2 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\2"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types deleted file mode 100644 index 3579808ccef9a..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 2 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\2"; "use strict"; } ->invalid : () => void ->"\2" : "\u0002" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt deleted file mode 100644 index b7ea966470c63..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. - - -==== legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; ZeroToThree 3 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\3"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js deleted file mode 100644 index 16da48cfdb7c9..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 3 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\3"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 3 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\3"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols deleted file mode 100644 index 05d16dc2b285c..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 3 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\3"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types deleted file mode 100644 index 09a467128defa..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 3 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\3"; "use strict"; } ->invalid : () => void ->"\3" : "\u0003" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt deleted file mode 100644 index ffe35284fe440..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x04'. - - -==== legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; FourToSeven 4 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\4"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x04'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js deleted file mode 100644 index 59d8c1ef05c76..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 4 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\4"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 4 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\4"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols deleted file mode 100644 index 965ee09f54541..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 4 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\4"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types deleted file mode 100644 index 9e48c2b28bf2f..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 4 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\4"; "use strict"; } ->invalid : () => void ->"\4" : "\u0004" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt deleted file mode 100644 index eb85182ea4e26..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. - - -==== legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; FourToSeven 5 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\5"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js deleted file mode 100644 index e2fb06608cd77..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 5 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\5"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 5 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\5"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols deleted file mode 100644 index f50cb7f8c24f1..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 5 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\5"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types deleted file mode 100644 index 655edc6b856c4..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 5 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\5"; "use strict"; } ->invalid : () => void ->"\5" : "\u0005" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt deleted file mode 100644 index 69827f0705c10..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x06'. - - -==== legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; FourToSeven 6 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\6"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x06'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js deleted file mode 100644 index d08c1709c5c86..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 6 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\6"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 6 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\6"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols deleted file mode 100644 index e1fbafb124dd3..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 6 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\6"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types deleted file mode 100644 index f1c19ff470f70..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 6 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\6"; "use strict"; } ->invalid : () => void ->"\6" : "\u0006" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt deleted file mode 100644 index e7dd06c3b02d2..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts(25,23): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. - - -==== legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; FourToSeven 7 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\7"; "use strict"; } - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x07'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js deleted file mode 100644 index b470dcd55bba8..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 7 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\7"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 7 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\7"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols deleted file mode 100644 index 661c35c670834..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 7 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\7"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types deleted file mode 100644 index 45b08bac565ac..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 7 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\7"; "use strict"; } ->invalid : () => void ->"\7" : "\u0007" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt deleted file mode 100644 index 1a5fcf3dc56d2..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts(25,23): error TS1488: Escape sequence '\8' is not allowed. - - -==== legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\8"; "use strict"; } - ~~ -!!! error TS1488: Escape sequence '\8' is not allowed. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js deleted file mode 100644 index a1731f2de640c..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\8"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\8"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols deleted file mode 100644 index b5a360261a02a..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\8"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types deleted file mode 100644 index 6061eb306673e..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\8"; "use strict"; } ->invalid : () => void ->"\8" : "8" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt deleted file mode 100644 index e0ff9da2b7b27..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.errors.txt +++ /dev/null @@ -1,37 +0,0 @@ -legacy-non-octal-escape-sequence-8-strict.ts(30,2): error TS1488: Escape sequence '\8' is not allowed. - - -==== legacy-non-octal-escape-sequence-8-strict.ts (1 errors) ==== - // Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 - info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. - flags: [onlyStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - '\8'; - ~~ -!!! error TS1488: Escape sequence '\8' is not allowed. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js deleted file mode 100644 index 1eec879acd5e5..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.js +++ /dev/null @@ -1,64 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts] //// - -//// [legacy-non-octal-escape-sequence-8-strict.ts] -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\8'; - - -//// [legacy-non-octal-escape-sequence-8-strict.js] -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ -'\8'; diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols deleted file mode 100644 index 357c49dd65582..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.symbols +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts] //// - -=== legacy-non-octal-escape-sequence-8-strict.ts === - -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\8'; - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types deleted file mode 100644 index 65fb2ddd1a827..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-8-strict.types +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts] //// - -=== legacy-non-octal-escape-sequence-8-strict.ts === -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\8'; ->'\8' : "8" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt deleted file mode 100644 index 9b27f57af02cc..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts(25,23): error TS1488: Escape sequence '\9' is not allowed. - - -==== legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts (1 errors) ==== - // Copyright (C) 2020 Rick Waldron Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 - info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - - flags: [noStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - function invalid() { "\9"; "use strict"; } - ~~ -!!! error TS1488: Escape sequence '\9' is not allowed. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js deleted file mode 100644 index 7eacced59ef34..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] //// - -//// [legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\9"; "use strict"; } - - -//// [legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js] -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ -function invalid() { - "\9"; - "use strict"; -} diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols deleted file mode 100644 index 04013d8ebe194..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\9"; "use strict"; } ->invalid : Symbol(invalid, Decl(legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts, 0, 0)) - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types deleted file mode 100644 index 085827f3a36b2..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts] //// - -=== legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts === -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\9"; "use strict"; } ->invalid : () => void ->"\9" : "9" ->"use strict" : "use strict" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt deleted file mode 100644 index 4db41a50b78e7..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.errors.txt +++ /dev/null @@ -1,37 +0,0 @@ -legacy-non-octal-escape-sequence-9-strict.ts(30,2): error TS1488: Escape sequence '\9' is not allowed. - - -==== legacy-non-octal-escape-sequence-9-strict.ts (1 errors) ==== - // Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-string-literals - description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 - info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. - flags: [onlyStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - '\9'; - ~~ -!!! error TS1488: Escape sequence '\9' is not allowed. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js deleted file mode 100644 index 344462e684ac2..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.js +++ /dev/null @@ -1,64 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts] //// - -//// [legacy-non-octal-escape-sequence-9-strict.ts] -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\9'; - - -//// [legacy-non-octal-escape-sequence-9-strict.js] -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ -'\9'; diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols deleted file mode 100644 index b1efd59e3f3fb..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.symbols +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts] //// - -=== legacy-non-octal-escape-sequence-9-strict.ts === - -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\9'; - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types deleted file mode 100644 index c22463ea36f7a..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-9-strict.types +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts] //// - -=== legacy-non-octal-escape-sequence-9-strict.ts === -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\9'; ->'\9' : "9" - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt deleted file mode 100644 index 35eb4a7e6972f..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.errors.txt +++ /dev/null @@ -1,33 +0,0 @@ -legacy-non-octal-escape-sequence-strict.ts(26,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x00'. - - -==== legacy-non-octal-escape-sequence-strict.ts (1 errors) ==== - // Copyright (C) 2017 Kevin Gibbons. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-template-literal-lexical-components - description: LegacyOctalEscapeSequence is not available in template literals - info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - flags: [onlyStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - '\08'; - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x00'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js deleted file mode 100644 index fa4cb8dc7542e..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.js +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts] //// - -//// [legacy-non-octal-escape-sequence-strict.ts] -// Copyright (C) 2017 Kevin Gibbons. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\08'; - - -//// [legacy-non-octal-escape-sequence-strict.js] -// Copyright (C) 2017 Kevin Gibbons. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ -'\08'; diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols deleted file mode 100644 index c572a4db1b4e1..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts] //// - -=== legacy-non-octal-escape-sequence-strict.ts === - -// Copyright (C) 2017 Kevin Gibbons. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\08'; - diff --git a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types b/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types deleted file mode 100644 index e28befd12625d..0000000000000 --- a/tests/baselines/reference/legacy-non-octal-escape-sequence-strict.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts] //// - -=== legacy-non-octal-escape-sequence-strict.ts === -// Copyright (C) 2017 Kevin Gibbons. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\08'; ->'\08' : "\x008" - diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt deleted file mode 100644 index 9782f8a875a48..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.errors.txt +++ /dev/null @@ -1,25 +0,0 @@ -legacy-octal-escape-sequence-prologue-strict.ts(16,14): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x2a'. - - -==== legacy-octal-escape-sequence-prologue-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.4-1-s - description: > - A directive preceding an 'use strict' directive may not contain - an OctalEscapeSequence - negative: - phase: parse - type: SyntaxError - ---*/ - - - (function() { - "asterisk: \052"; - ~~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x2a'. - "use strict"; - }); - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js deleted file mode 100644 index 335c80b05d98d..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts] //// - -//// [legacy-octal-escape-sequence-prologue-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.4-1-s -description: > - A directive preceding an 'use strict' directive may not contain - an OctalEscapeSequence -negative: - phase: parse - type: SyntaxError ----*/ - - -(function() { - "asterisk: \052"; - "use strict"; -}); - - -//// [legacy-octal-escape-sequence-prologue-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.4-1-s -description: > - A directive preceding an 'use strict' directive may not contain - an OctalEscapeSequence -negative: - phase: parse - type: SyntaxError ----*/ -(function () { - "asterisk: \052"; - "use strict"; -}); diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols deleted file mode 100644 index 6f720608ff87a..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.symbols +++ /dev/null @@ -1,23 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts] //// - -=== legacy-octal-escape-sequence-prologue-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.4-1-s -description: > - A directive preceding an 'use strict' directive may not contain - an OctalEscapeSequence -negative: - phase: parse - type: SyntaxError ----*/ - - -(function() { - "asterisk: \052"; - "use strict"; -}); - diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types b/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types deleted file mode 100644 index 629a4d096d813..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-prologue-strict.types +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts] //// - -=== legacy-octal-escape-sequence-prologue-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.4-1-s -description: > - A directive preceding an 'use strict' directive may not contain - an OctalEscapeSequence -negative: - phase: parse - type: SyntaxError ----*/ - - -(function() { ->(function() { "asterisk: \052"; "use strict";}) : () => void ->function() { "asterisk: \052"; "use strict";} : () => void - - "asterisk: \052"; ->"asterisk: \052" : "asterisk: *" - - "use strict"; ->"use strict" : "use strict" - -}); - diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt b/tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt deleted file mode 100644 index 5795339489b12..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-strict.errors.txt +++ /dev/null @@ -1,33 +0,0 @@ -legacy-octal-escape-sequence-strict.ts(26,2): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - - -==== legacy-octal-escape-sequence-strict.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-template-literal-lexical-components - description: LegacyOctalEscapeSequence is not available in template literals - info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - flags: [onlyStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - '\1'; - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.js b/tests/baselines/reference/legacy-octal-escape-sequence-strict.js deleted file mode 100644 index 700975aa192f9..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-strict.js +++ /dev/null @@ -1,56 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts] //// - -//// [legacy-octal-escape-sequence-strict.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\1'; - - -//// [legacy-octal-escape-sequence-strict.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ -'\1'; diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols b/tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols deleted file mode 100644 index 3fe3d9afaabcb..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-strict.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts] //// - -=== legacy-octal-escape-sequence-strict.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\1'; - diff --git a/tests/baselines/reference/legacy-octal-escape-sequence-strict.types b/tests/baselines/reference/legacy-octal-escape-sequence-strict.types deleted file mode 100644 index 171c30c2a8e41..0000000000000 --- a/tests/baselines/reference/legacy-octal-escape-sequence-strict.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts] //// - -=== legacy-octal-escape-sequence-strict.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\1'; ->'\1' : "\u0001" - diff --git a/tests/baselines/reference/legacy-octal-integer-strict.errors.txt b/tests/baselines/reference/legacy-octal-integer-strict.errors.txt deleted file mode 100644 index 0909099a9e79a..0000000000000 --- a/tests/baselines/reference/legacy-octal-integer-strict.errors.txt +++ /dev/null @@ -1,39 +0,0 @@ -legacy-octal-integer-strict.ts(32,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - - -==== legacy-octal-integer-strict.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-numeric-literals - description: LegacyOctalIntegerLiteral is not enabled in strict mode code - info: | - NumericLiteral :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - LegacyOctalIntegerLiteral - - LegacyOctalIntegerLiteral :: - 0 OctalDigit - LegacyOctalIntegerLiteral OctalDigit - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. - flags: [onlyStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 00; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integer-strict.js b/tests/baselines/reference/legacy-octal-integer-strict.js deleted file mode 100644 index 15799dbb803f9..0000000000000 --- a/tests/baselines/reference/legacy-octal-integer-strict.js +++ /dev/null @@ -1,68 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts] //// - -//// [legacy-octal-integer-strict.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: LegacyOctalIntegerLiteral is not enabled in strict mode code -info: | - NumericLiteral :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - LegacyOctalIntegerLiteral - - LegacyOctalIntegerLiteral :: - 0 OctalDigit - LegacyOctalIntegerLiteral OctalDigit - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -00; - - -//// [legacy-octal-integer-strict.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: LegacyOctalIntegerLiteral is not enabled in strict mode code -info: | - NumericLiteral :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - LegacyOctalIntegerLiteral - - LegacyOctalIntegerLiteral :: - 0 OctalDigit - LegacyOctalIntegerLiteral OctalDigit - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ -0; diff --git a/tests/baselines/reference/legacy-octal-integer-strict.symbols b/tests/baselines/reference/legacy-octal-integer-strict.symbols deleted file mode 100644 index 5ff883771c368..0000000000000 --- a/tests/baselines/reference/legacy-octal-integer-strict.symbols +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts] //// - -=== legacy-octal-integer-strict.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: LegacyOctalIntegerLiteral is not enabled in strict mode code -info: | - NumericLiteral :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - LegacyOctalIntegerLiteral - - LegacyOctalIntegerLiteral :: - 0 OctalDigit - LegacyOctalIntegerLiteral OctalDigit - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -00; - diff --git a/tests/baselines/reference/legacy-octal-integer-strict.types b/tests/baselines/reference/legacy-octal-integer-strict.types deleted file mode 100644 index 15804ff071247..0000000000000 --- a/tests/baselines/reference/legacy-octal-integer-strict.types +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts] //// - -=== legacy-octal-integer-strict.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: LegacyOctalIntegerLiteral is not enabled in strict mode code -info: | - NumericLiteral :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - LegacyOctalIntegerLiteral - - LegacyOctalIntegerLiteral :: - 0 OctalDigit - LegacyOctalIntegerLiteral OctalDigit - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -00; ->00 : 0 - diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt deleted file mode 100644 index ab5694e3c7560..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-000-strict.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -legacy-octal-integery-000-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - - -==== legacy-octal-integery-000-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-6-s - description: Strict Mode - octal extension (000) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - 000; - ~~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.js b/tests/baselines/reference/legacy-octal-integery-000-strict.js deleted file mode 100644 index c686c3c6c1c88..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-000-strict.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts] //// - -//// [legacy-octal-integery-000-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-6-s -description: Strict Mode - octal extension (000) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -000; - - -//// [legacy-octal-integery-000-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-6-s -description: Strict Mode - octal extension (000) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -0; diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.symbols b/tests/baselines/reference/legacy-octal-integery-000-strict.symbols deleted file mode 100644 index 0c70f5722e60c..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-000-strict.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts] //// - -=== legacy-octal-integery-000-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-6-s -description: Strict Mode - octal extension (000) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -000; - diff --git a/tests/baselines/reference/legacy-octal-integery-000-strict.types b/tests/baselines/reference/legacy-octal-integery-000-strict.types deleted file mode 100644 index d836adefd2d2b..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-000-strict.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts] //// - -=== legacy-octal-integery-000-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-6-s -description: Strict Mode - octal extension (000) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -000; ->000 : 0 - diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt deleted file mode 100644 index 3c8f9b0605193..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-005-strict.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -legacy-octal-integery-005-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o5'. - - -==== legacy-octal-integery-005-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-7-s - description: Strict Mode - octal extension (005) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - 005; - ~~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o5'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.js b/tests/baselines/reference/legacy-octal-integery-005-strict.js deleted file mode 100644 index 3d15b0c973fa0..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-005-strict.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts] //// - -//// [legacy-octal-integery-005-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-7-s -description: Strict Mode - octal extension (005) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -005; - - -//// [legacy-octal-integery-005-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-7-s -description: Strict Mode - octal extension (005) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -5; diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.symbols b/tests/baselines/reference/legacy-octal-integery-005-strict.symbols deleted file mode 100644 index 56e29d0fd8c52..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-005-strict.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts] //// - -=== legacy-octal-integery-005-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-7-s -description: Strict Mode - octal extension (005) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -005; - diff --git a/tests/baselines/reference/legacy-octal-integery-005-strict.types b/tests/baselines/reference/legacy-octal-integery-005-strict.types deleted file mode 100644 index d6ed75feeb80b..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-005-strict.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts] //// - -=== legacy-octal-integery-005-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-7-s -description: Strict Mode - octal extension (005) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -005; ->005 : 5 - diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt deleted file mode 100644 index 37eef681163a4..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-01-strict.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -legacy-octal-integery-01-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - - -==== legacy-octal-integery-01-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-3-s - description: Strict Mode - octal extension (01) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - 01; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.js b/tests/baselines/reference/legacy-octal-integery-01-strict.js deleted file mode 100644 index e20d354da4716..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-01-strict.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts] //// - -//// [legacy-octal-integery-01-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-3-s -description: Strict Mode - octal extension (01) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -01; - - -//// [legacy-octal-integery-01-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-3-s -description: Strict Mode - octal extension (01) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -1; diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.symbols b/tests/baselines/reference/legacy-octal-integery-01-strict.symbols deleted file mode 100644 index cbb825aaeeaa3..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-01-strict.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts] //// - -=== legacy-octal-integery-01-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-3-s -description: Strict Mode - octal extension (01) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -01; - diff --git a/tests/baselines/reference/legacy-octal-integery-01-strict.types b/tests/baselines/reference/legacy-octal-integery-01-strict.types deleted file mode 100644 index 04591651d83c2..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-01-strict.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts] //// - -=== legacy-octal-integery-01-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-3-s -description: Strict Mode - octal extension (01) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -01; ->01 : 1 - diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt deleted file mode 100644 index 699acf446c9b8..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-010-strict.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -legacy-octal-integery-010-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o10'. - - -==== legacy-octal-integery-010-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-1-s - description: Strict Mode - octal extension (010) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - 010; - ~~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o10'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.js b/tests/baselines/reference/legacy-octal-integery-010-strict.js deleted file mode 100644 index 883b2778f6cb4..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-010-strict.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts] //// - -//// [legacy-octal-integery-010-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1-s -description: Strict Mode - octal extension (010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -010; - - -//// [legacy-octal-integery-010-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-1-s -description: Strict Mode - octal extension (010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -8; diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.symbols b/tests/baselines/reference/legacy-octal-integery-010-strict.symbols deleted file mode 100644 index e30bd12de7a4d..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-010-strict.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts] //// - -=== legacy-octal-integery-010-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1-s -description: Strict Mode - octal extension (010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -010; - diff --git a/tests/baselines/reference/legacy-octal-integery-010-strict.types b/tests/baselines/reference/legacy-octal-integery-010-strict.types deleted file mode 100644 index 1e397736b2631..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-010-strict.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts] //// - -=== legacy-octal-integery-010-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1-s -description: Strict Mode - octal extension (010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -010; ->010 : 8 - diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt deleted file mode 100644 index c928eba2dbc11..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-06-strict.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -legacy-octal-integery-06-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o6'. - - -==== legacy-octal-integery-06-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-4-s - description: Strict Mode - octal extension (06) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - 06; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o6'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.js b/tests/baselines/reference/legacy-octal-integery-06-strict.js deleted file mode 100644 index 86db06a294d7b..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-06-strict.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts] //// - -//// [legacy-octal-integery-06-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-4-s -description: Strict Mode - octal extension (06) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -06; - - -//// [legacy-octal-integery-06-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-4-s -description: Strict Mode - octal extension (06) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -6; diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.symbols b/tests/baselines/reference/legacy-octal-integery-06-strict.symbols deleted file mode 100644 index a495b3d16e3bb..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-06-strict.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts] //// - -=== legacy-octal-integery-06-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-4-s -description: Strict Mode - octal extension (06) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -06; - diff --git a/tests/baselines/reference/legacy-octal-integery-06-strict.types b/tests/baselines/reference/legacy-octal-integery-06-strict.types deleted file mode 100644 index d874ebd76e33b..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-06-strict.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts] //// - -=== legacy-octal-integery-06-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-4-s -description: Strict Mode - octal extension (06) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -06; ->06 : 6 - diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt b/tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt deleted file mode 100644 index 9643bd595eca8..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-07-strict.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -legacy-octal-integery-07-strict.ts(14,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. - - -==== legacy-octal-integery-07-strict.ts (1 errors) ==== - // Copyright (c) 2012 Ecma International. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es5id: 7.8.3-5-s - description: Strict Mode - octal extension (07) is forbidden in strict mode - negative: - phase: parse - type: SyntaxError - flags: [onlyStrict] - ---*/ - - - 07; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.js b/tests/baselines/reference/legacy-octal-integery-07-strict.js deleted file mode 100644 index 2ee4273795762..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-07-strict.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts] //// - -//// [legacy-octal-integery-07-strict.ts] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-5-s -description: Strict Mode - octal extension (07) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -07; - - -//// [legacy-octal-integery-07-strict.js] -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es5id: 7.8.3-5-s -description: Strict Mode - octal extension (07) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ -7; diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.symbols b/tests/baselines/reference/legacy-octal-integery-07-strict.symbols deleted file mode 100644 index 640e943947d41..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-07-strict.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts] //// - -=== legacy-octal-integery-07-strict.ts === - -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-5-s -description: Strict Mode - octal extension (07) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -07; - diff --git a/tests/baselines/reference/legacy-octal-integery-07-strict.types b/tests/baselines/reference/legacy-octal-integery-07-strict.types deleted file mode 100644 index a7b40d5f829a9..0000000000000 --- a/tests/baselines/reference/legacy-octal-integery-07-strict.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts] //// - -=== legacy-octal-integery-07-strict.ts === -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-5-s -description: Strict Mode - octal extension (07) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -07; ->07 : 7 - diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt b/tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt deleted file mode 100644 index f1010f53ef0e3..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-00n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -legacy-octal-like-invalid-00n.ts(27,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. -legacy-octal-like-invalid-00n.ts(27,3): error TS1005: ';' expected. -legacy-octal-like-invalid-00n.ts(27,3): error TS2304: Cannot find name 'n'. - - -==== legacy-octal-like-invalid-00n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 00n; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.js b/tests/baselines/reference/legacy-octal-like-invalid-00n.js deleted file mode 100644 index e9b3fdfc03772..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-00n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts] //// - -//// [legacy-octal-like-invalid-00n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -00n; - - -//// [legacy-octal-like-invalid-00n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -0; -n; diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.symbols b/tests/baselines/reference/legacy-octal-like-invalid-00n.symbols deleted file mode 100644 index c8d907c13a19b..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-00n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts] //// - -=== legacy-octal-like-invalid-00n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -00n; - diff --git a/tests/baselines/reference/legacy-octal-like-invalid-00n.types b/tests/baselines/reference/legacy-octal-like-invalid-00n.types deleted file mode 100644 index f155d8b15dd00..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-00n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts] //// - -=== legacy-octal-like-invalid-00n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -00n; ->00 : 0 ->n : any - diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt b/tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt deleted file mode 100644 index 1a1d485839ffe..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-01n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -legacy-octal-like-invalid-01n.ts(27,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. -legacy-octal-like-invalid-01n.ts(27,3): error TS1005: ';' expected. -legacy-octal-like-invalid-01n.ts(27,3): error TS2304: Cannot find name 'n'. - - -==== legacy-octal-like-invalid-01n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 01n; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.js b/tests/baselines/reference/legacy-octal-like-invalid-01n.js deleted file mode 100644 index fc4fe584a17c0..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-01n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts] //// - -//// [legacy-octal-like-invalid-01n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -01n; - - -//// [legacy-octal-like-invalid-01n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -1; -n; diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.symbols b/tests/baselines/reference/legacy-octal-like-invalid-01n.symbols deleted file mode 100644 index e8539680eb4ee..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-01n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts] //// - -=== legacy-octal-like-invalid-01n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -01n; - diff --git a/tests/baselines/reference/legacy-octal-like-invalid-01n.types b/tests/baselines/reference/legacy-octal-like-invalid-01n.types deleted file mode 100644 index 2f98738f00961..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-01n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts] //// - -=== legacy-octal-like-invalid-01n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -01n; ->01 : 1 ->n : any - diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt b/tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt deleted file mode 100644 index f04c9786470fb..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-07n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -legacy-octal-like-invalid-07n.ts(27,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. -legacy-octal-like-invalid-07n.ts(27,3): error TS1005: ';' expected. -legacy-octal-like-invalid-07n.ts(27,3): error TS2304: Cannot find name 'n'. - - -==== legacy-octal-like-invalid-07n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 07n; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.js b/tests/baselines/reference/legacy-octal-like-invalid-07n.js deleted file mode 100644 index de8618e0821e9..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-07n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts] //// - -//// [legacy-octal-like-invalid-07n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -07n; - - -//// [legacy-octal-like-invalid-07n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -7; -n; diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.symbols b/tests/baselines/reference/legacy-octal-like-invalid-07n.symbols deleted file mode 100644 index 458d992193a1d..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-07n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts] //// - -=== legacy-octal-like-invalid-07n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -07n; - diff --git a/tests/baselines/reference/legacy-octal-like-invalid-07n.types b/tests/baselines/reference/legacy-octal-like-invalid-07n.types deleted file mode 100644 index 4e12c7ac40d90..0000000000000 --- a/tests/baselines/reference/legacy-octal-like-invalid-07n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts] //// - -=== legacy-octal-like-invalid-07n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -07n; ->07 : 7 ->n : any - diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt deleted file mode 100644 index 3f49143266b21..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.errors.txt +++ /dev/null @@ -1,33 +0,0 @@ -mv-is-not-integer-dil-dot-dds.ts(26,1): error TS1353: A bigint literal must be an integer. - - -==== mv-is-not-integer-dil-dot-dds.ts (1 errors) ==== - // Copyright (C) 2017 The V8 Project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-numeric-literal-static-semantics-early-errors - description: > - It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) - info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 2017.8n; - ~~~~~~~ -!!! error TS1353: A bigint literal must be an integer. - \ No newline at end of file diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js deleted file mode 100644 index 9c9a01d90117f..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.js +++ /dev/null @@ -1,55 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts] //// - -//// [mv-is-not-integer-dil-dot-dds.ts] -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -2017.8n; - - -//// [mv-is-not-integer-dil-dot-dds.js] -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -2017.8n; diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols deleted file mode 100644 index 1dfd89d5c489b..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts] //// - -=== mv-is-not-integer-dil-dot-dds.ts === - -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -2017.8n; - diff --git a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types b/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types deleted file mode 100644 index b557fea41ea24..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dil-dot-dds.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts] //// - -=== mv-is-not-integer-dil-dot-dds.ts === -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -2017.8n; ->2017.8n : 2017.8 - diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt b/tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt deleted file mode 100644 index 4f1c572cd5e25..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dot-dds.errors.txt +++ /dev/null @@ -1,33 +0,0 @@ -mv-is-not-integer-dot-dds.ts(26,1): error TS1353: A bigint literal must be an integer. - - -==== mv-is-not-integer-dot-dds.ts (1 errors) ==== - // Copyright (C) 2017 The V8 Project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-numeric-literal-static-semantics-early-errors - description: > - It is a Syntax Error if the MV is not an integer. (dot decimalDigits) - info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - .0000000001n; - ~~~~~~~~~~~~ -!!! error TS1353: A bigint literal must be an integer. - \ No newline at end of file diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.js b/tests/baselines/reference/mv-is-not-integer-dot-dds.js deleted file mode 100644 index 8afa333ef0420..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dot-dds.js +++ /dev/null @@ -1,55 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts] //// - -//// [mv-is-not-integer-dot-dds.ts] -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -.0000000001n; - - -//// [mv-is-not-integer-dot-dds.js] -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -.0000000001n; diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.symbols b/tests/baselines/reference/mv-is-not-integer-dot-dds.symbols deleted file mode 100644 index 957c4041a1e3a..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dot-dds.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts] //// - -=== mv-is-not-integer-dot-dds.ts === - -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -.0000000001n; - diff --git a/tests/baselines/reference/mv-is-not-integer-dot-dds.types b/tests/baselines/reference/mv-is-not-integer-dot-dds.types deleted file mode 100644 index e5be956fdd19f..0000000000000 --- a/tests/baselines/reference/mv-is-not-integer-dot-dds.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts] //// - -=== mv-is-not-integer-dot-dds.ts === -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -.0000000001n; ->.0000000001n : 1e-10 - diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt b/tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt deleted file mode 100644 index a4c6cb14dd22d..0000000000000 --- a/tests/baselines/reference/non-octal-decimal-integer-strict.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -non-octal-decimal-integer-strict.ts(38,1): error TS1489: Decimals with leading zeros are not allowed. - - -==== non-octal-decimal-integer-strict.ts (1 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-literals-numeric-literals - description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code - info: | - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigits[opt] - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit :: one of - 8 9 - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. - flags: [onlyStrict] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 08; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.js b/tests/baselines/reference/non-octal-decimal-integer-strict.js deleted file mode 100644 index b77c3a950c0c1..0000000000000 --- a/tests/baselines/reference/non-octal-decimal-integer-strict.js +++ /dev/null @@ -1,80 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts] //// - -//// [non-octal-decimal-integer-strict.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code -info: | - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigits[opt] - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit :: one of - 8 9 - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -08; - - -//// [non-octal-decimal-integer-strict.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code -info: | - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigits[opt] - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit :: one of - 8 9 - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ -8; diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.symbols b/tests/baselines/reference/non-octal-decimal-integer-strict.symbols deleted file mode 100644 index 83ce7b4ff1ab0..0000000000000 --- a/tests/baselines/reference/non-octal-decimal-integer-strict.symbols +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts] //// - -=== non-octal-decimal-integer-strict.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code -info: | - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigits[opt] - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit :: one of - 8 9 - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -08; - diff --git a/tests/baselines/reference/non-octal-decimal-integer-strict.types b/tests/baselines/reference/non-octal-decimal-integer-strict.types deleted file mode 100644 index 080b7d52b41db..0000000000000 --- a/tests/baselines/reference/non-octal-decimal-integer-strict.types +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts] //// - -=== non-octal-decimal-integer-strict.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code -info: | - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigits[opt] - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit :: one of - 8 9 - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -08; ->08 : 8 - diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt deleted file mode 100644 index 4f05e333a8b19..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-0008n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -non-octal-like-invalid-0008n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. -non-octal-like-invalid-0008n.ts(27,5): error TS1005: ';' expected. -non-octal-like-invalid-0008n.ts(27,5): error TS2304: Cannot find name 'n'. - - -==== non-octal-like-invalid-0008n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0008n; - ~~~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.js b/tests/baselines/reference/non-octal-like-invalid-0008n.js deleted file mode 100644 index 6ce6b657d7d0b..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-0008n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts] //// - -//// [non-octal-like-invalid-0008n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0008n; - - -//// [non-octal-like-invalid-0008n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -8; -n; diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.symbols b/tests/baselines/reference/non-octal-like-invalid-0008n.symbols deleted file mode 100644 index 08a250ed48bbe..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-0008n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts] //// - -=== non-octal-like-invalid-0008n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0008n; - diff --git a/tests/baselines/reference/non-octal-like-invalid-0008n.types b/tests/baselines/reference/non-octal-like-invalid-0008n.types deleted file mode 100644 index cb81dc393d6e8..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-0008n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts] //// - -=== non-octal-like-invalid-0008n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0008n; ->0008 : 8 ->n : any - diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt deleted file mode 100644 index dccdc431695b3..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-012348n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -non-octal-like-invalid-012348n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. -non-octal-like-invalid-012348n.ts(27,7): error TS1005: ';' expected. -non-octal-like-invalid-012348n.ts(27,7): error TS2304: Cannot find name 'n'. - - -==== non-octal-like-invalid-012348n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 012348n; - ~~~~~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.js b/tests/baselines/reference/non-octal-like-invalid-012348n.js deleted file mode 100644 index 0dd5c1436b27c..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-012348n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts] //// - -//// [non-octal-like-invalid-012348n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -012348n; - - -//// [non-octal-like-invalid-012348n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -12348; -n; diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.symbols b/tests/baselines/reference/non-octal-like-invalid-012348n.symbols deleted file mode 100644 index 038f5857b29dc..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-012348n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts] //// - -=== non-octal-like-invalid-012348n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -012348n; - diff --git a/tests/baselines/reference/non-octal-like-invalid-012348n.types b/tests/baselines/reference/non-octal-like-invalid-012348n.types deleted file mode 100644 index b127d720dcf33..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-012348n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts] //// - -=== non-octal-like-invalid-012348n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -012348n; ->012348 : 12348 ->n : any - diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-08n.errors.txt deleted file mode 100644 index d73d95f39fc72..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-08n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -non-octal-like-invalid-08n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. -non-octal-like-invalid-08n.ts(27,3): error TS1005: ';' expected. -non-octal-like-invalid-08n.ts(27,3): error TS2304: Cannot find name 'n'. - - -==== non-octal-like-invalid-08n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 08n; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.js b/tests/baselines/reference/non-octal-like-invalid-08n.js deleted file mode 100644 index d00371ccee8db..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-08n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts] //// - -//// [non-octal-like-invalid-08n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -08n; - - -//// [non-octal-like-invalid-08n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -8; -n; diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.symbols b/tests/baselines/reference/non-octal-like-invalid-08n.symbols deleted file mode 100644 index 56da42b81206e..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-08n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts] //// - -=== non-octal-like-invalid-08n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -08n; - diff --git a/tests/baselines/reference/non-octal-like-invalid-08n.types b/tests/baselines/reference/non-octal-like-invalid-08n.types deleted file mode 100644 index 80bc6e42394e6..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-08n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts] //// - -=== non-octal-like-invalid-08n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -08n; ->08 : 8 ->n : any - diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.errors.txt b/tests/baselines/reference/non-octal-like-invalid-09n.errors.txt deleted file mode 100644 index a8c4d5ac3a4bf..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-09n.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -non-octal-like-invalid-09n.ts(27,1): error TS1489: Decimals with leading zeros are not allowed. -non-octal-like-invalid-09n.ts(27,3): error TS1005: ';' expected. -non-octal-like-invalid-09n.ts(27,3): error TS2304: Cannot find name 'n'. - - -==== non-octal-like-invalid-09n.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteral - description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral - info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix - features: [BigInt] - negative: - phase: parse - type: SyntaxError - ---*/ - - - 09n; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS2304: Cannot find name 'n'. - \ No newline at end of file diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.js b/tests/baselines/reference/non-octal-like-invalid-09n.js deleted file mode 100644 index 8844e06c91bae..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-09n.js +++ /dev/null @@ -1,58 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts] //// - -//// [non-octal-like-invalid-09n.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -09n; - - -//// [non-octal-like-invalid-09n.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ -9; -n; diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.symbols b/tests/baselines/reference/non-octal-like-invalid-09n.symbols deleted file mode 100644 index ca89823445e72..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-09n.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts] //// - -=== non-octal-like-invalid-09n.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -09n; - diff --git a/tests/baselines/reference/non-octal-like-invalid-09n.types b/tests/baselines/reference/non-octal-like-invalid-09n.types deleted file mode 100644 index d99bc0cfffb17..0000000000000 --- a/tests/baselines/reference/non-octal-like-invalid-09n.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts] //// - -=== non-octal-like-invalid-09n.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -09n; ->09 : 9 ->n : any - diff --git a/tests/baselines/reference/numeric-followed-by-ident.errors.txt b/tests/baselines/reference/numeric-followed-by-ident.errors.txt deleted file mode 100644 index bacb66ef8d7ce..0000000000000 --- a/tests/baselines/reference/numeric-followed-by-ident.errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -numeric-followed-by-ident.ts(17,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. - - -==== numeric-followed-by-ident.ts (1 errors) ==== - // Copyright (C) 2018 Mozilla. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: sec-literals-numeric-literals - description: > - NumericLiteral followed by IdentifierStart - info: | - The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. - - negative: - phase: parse - type: SyntaxError - ---*/ - - - 3in [] - ~~ -!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-followed-by-ident.js b/tests/baselines/reference/numeric-followed-by-ident.js deleted file mode 100644 index fc80a697f5980..0000000000000 --- a/tests/baselines/reference/numeric-followed-by-ident.js +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts] //// - -//// [numeric-followed-by-ident.ts] -// Copyright (C) 2018 Mozilla. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-numeric-literals -description: > - NumericLiteral followed by IdentifierStart -info: | - The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. - -negative: - phase: parse - type: SyntaxError ----*/ - - -3in [] - - -//// [numeric-followed-by-ident.js] -// Copyright (C) 2018 Mozilla. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: > - NumericLiteral followed by IdentifierStart -info: | - The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. - -negative: - phase: parse - type: SyntaxError ----*/ -3 in []; diff --git a/tests/baselines/reference/numeric-followed-by-ident.symbols b/tests/baselines/reference/numeric-followed-by-ident.symbols deleted file mode 100644 index 9ba66bb38d4ab..0000000000000 --- a/tests/baselines/reference/numeric-followed-by-ident.symbols +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts] //// - -=== numeric-followed-by-ident.ts === - -// Copyright (C) 2018 Mozilla. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-numeric-literals -description: > - NumericLiteral followed by IdentifierStart -info: | - The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. - -negative: - phase: parse - type: SyntaxError ----*/ - - -3in [] - diff --git a/tests/baselines/reference/numeric-followed-by-ident.types b/tests/baselines/reference/numeric-followed-by-ident.types deleted file mode 100644 index ec9cdf693b859..0000000000000 --- a/tests/baselines/reference/numeric-followed-by-ident.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts] //// - -=== numeric-followed-by-ident.ts === -// Copyright (C) 2018 Mozilla. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-numeric-literals -description: > - NumericLiteral followed by IdentifierStart -info: | - The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. - -negative: - phase: parse - type: SyntaxError ----*/ - - -3in [] ->3in [] : boolean ->3 : 3 ->[] : undefined[] - diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt deleted file mode 100644 index 792d122317839..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-bil-bd-nsl-bd-err.ts(33,3): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-bil-bd-nsl-bd-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0b_1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js deleted file mode 100644 index 067317cc7cce1..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// - -//// [numeric-separator-literal-bil-bd-nsl-bd-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b_1 - - -//// [numeric-separator-literal-bil-bd-nsl-bd-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -1; diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols deleted file mode 100644 index 9c15529555f62..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// - -=== numeric-separator-literal-bil-bd-nsl-bd-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b_1 - diff --git a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types b/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types deleted file mode 100644 index 4689bc80caeda..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-bd-nsl-bd-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts] //// - -=== numeric-separator-literal-bil-bd-nsl-bd-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b_1 ->0b_1 : 1 - diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt deleted file mode 100644 index 98f2368258c9f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-bil-nsl-bd-dunder-err.ts(33,5): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== numeric-separator-literal-bil-nsl-bd-dunder-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0b0__0 - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js deleted file mode 100644 index 6e74210b095a0..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// - -//// [numeric-separator-literal-bil-nsl-bd-dunder-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0__0 - - -//// [numeric-separator-literal-bil-nsl-bd-dunder-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols deleted file mode 100644 index a6eddc56fca3c..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// - -=== numeric-separator-literal-bil-nsl-bd-dunder-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0__0 - diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types deleted file mode 100644 index be722c980a083..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-dunder-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts] //// - -=== numeric-separator-literal-bil-nsl-bd-dunder-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0__0 ->0b0__0 : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt deleted file mode 100644 index 0ece4da31c53d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-bil-nsl-bd-err.ts(33,4): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-bil-nsl-bd-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0b0_ - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js deleted file mode 100644 index 73e93a1f079f2..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts] //// - -//// [numeric-separator-literal-bil-nsl-bd-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0_ - - -//// [numeric-separator-literal-bil-nsl-bd-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols deleted file mode 100644 index f786f513c9224..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts] //// - -=== numeric-separator-literal-bil-nsl-bd-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0_ - diff --git a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types b/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types deleted file mode 100644 index b59b8324132b3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-bil-nsl-bd-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts] //// - -=== numeric-separator-literal-bil-nsl-bd-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0_ ->0b0_ : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt deleted file mode 100644 index fc987eeb93c7f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -numeric-separator-literal-dd-nsl-dds-dunder-err.ts(25,3): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== numeric-separator-literal-dd-nsl-dds-dunder-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 1__0123456789 - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js deleted file mode 100644 index 6b4c09a098068..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.js +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// - -//// [numeric-separator-literal-dd-nsl-dds-dunder-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1__0123456789 - - -//// [numeric-separator-literal-dd-nsl-dds-dunder-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -10123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols deleted file mode 100644 index a984f32d8e8f6..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// - -=== numeric-separator-literal-dd-nsl-dds-dunder-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1__0123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types deleted file mode 100644 index 1b22a3c7ce066..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-dds-dunder-err.types +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts] //// - -=== numeric-separator-literal-dd-nsl-dds-dunder-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1__0123456789 ->1__0123456789 : 10123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt deleted file mode 100644 index eeeb977660332..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -numeric-separator-literal-dd-nsl-err.ts(27,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dd-nsl-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 1_ - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js deleted file mode 100644 index 9a1419909dfe3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts] //// - -//// [numeric-separator-literal-dd-nsl-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1_ - - -//// [numeric-separator-literal-dd-nsl-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -1; diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols deleted file mode 100644 index 9c800767120f0..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts] //// - -=== numeric-separator-literal-dd-nsl-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1_ - diff --git a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types deleted file mode 100644 index 82d9377ef01ee..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dd-nsl-err.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts] //// - -=== numeric-separator-literal-dd-nsl-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1_ ->1_ : 1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt deleted file mode 100644 index b164a50864e6c..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -numeric-separator-literal-dds-nsl-dds-dunder-err.ts(25,4): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== numeric-separator-literal-dds-nsl-dds-dunder-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 10__0123456789 - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js deleted file mode 100644 index 6d517396745cf..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.js +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// - -//// [numeric-separator-literal-dds-nsl-dds-dunder-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10__0123456789 - - -//// [numeric-separator-literal-dds-nsl-dds-dunder-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -100123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols deleted file mode 100644 index 97ec7cdf18044..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// - -=== numeric-separator-literal-dds-nsl-dds-dunder-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10__0123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types deleted file mode 100644 index 02b68dd07b05f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-dds-dunder-err.types +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts] //// - -=== numeric-separator-literal-dds-nsl-dds-dunder-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10__0123456789 ->10__0123456789 : 100123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt deleted file mode 100644 index ed3b6b0708cfb..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -numeric-separator-literal-dds-nsl-err.ts(28,3): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dds-nsl-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 10_ - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js deleted file mode 100644 index 3339094ed9fd1..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.js +++ /dev/null @@ -1,59 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts] //// - -//// [numeric-separator-literal-dds-nsl-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10_ - - -//// [numeric-separator-literal-dds-nsl-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -10; diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols deleted file mode 100644 index f8e2df09ef721..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts] //// - -=== numeric-separator-literal-dds-nsl-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10_ - diff --git a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types deleted file mode 100644 index 08e4aa09f1957..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dds-nsl-err.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts] //// - -=== numeric-separator-literal-dds-nsl-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10_ ->10_ : 10 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt deleted file mode 100644 index e087ba8df1ebf..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts(27,5): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to ExponentPart - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 10.0_e1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js deleted file mode 100644 index 3989962a2d455..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] //// - -//// [numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10.0_e1 - - -//// [numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -100; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols deleted file mode 100644 index c914235bf8fd6..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] //// - -=== numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10.0_e1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types deleted file mode 100644 index e14f74919a175..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts] //// - -=== numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10.0_e1 ->10.0_e1 : 100 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt deleted file mode 100644 index 28016ccce1d74..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -numeric-separator-literal-dil-dot-nsl-dd-err.ts(27,4): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dil-dot-nsl-dd-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be adjacent to `.` - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 10._1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js deleted file mode 100644 index 93e27d3efbf26..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.js +++ /dev/null @@ -1,57 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts] //// - -//// [numeric-separator-literal-dil-dot-nsl-dd-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._1 - - -//// [numeric-separator-literal-dil-dot-nsl-dd-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -10.1; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols deleted file mode 100644 index 85c595f177ea3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.symbols +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts] //// - -=== numeric-separator-literal-dil-dot-nsl-dd-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types deleted file mode 100644 index 58a18cf23aa3e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-dd-err.types +++ /dev/null @@ -1,32 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts] //// - -=== numeric-separator-literal-dil-dot-nsl-dd-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._1 ->10._1 : 10.1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt deleted file mode 100644 index 50dbf429d030e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.errors.txt +++ /dev/null @@ -1,37 +0,0 @@ -numeric-separator-literal-dil-dot-nsl-ep-err.ts(30,4): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dil-dot-nsl-ep-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 10._e1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js deleted file mode 100644 index 2e7f60aabb1de..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.js +++ /dev/null @@ -1,63 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts] //// - -//// [numeric-separator-literal-dil-dot-nsl-ep-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._e1 - - -//// [numeric-separator-literal-dil-dot-nsl-ep-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -100; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols deleted file mode 100644 index fc7098b597ff7..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.symbols +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts] //// - -=== numeric-separator-literal-dil-dot-nsl-ep-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._e1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types deleted file mode 100644 index f80ab5425cd5a..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-ep-err.types +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts] //// - -=== numeric-separator-literal-dil-dot-nsl-ep-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._e1 ->10._e1 : 100 - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt deleted file mode 100644 index 51c4ed3489fd1..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -numeric-separator-literal-dil-dot-nsl-err.ts(28,4): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dil-dot-nsl-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 10._ - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js deleted file mode 100644 index 141472c752593..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.js +++ /dev/null @@ -1,59 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts] //// - -//// [numeric-separator-literal-dil-dot-nsl-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._ - - -//// [numeric-separator-literal-dil-dot-nsl-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -10; diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols deleted file mode 100644 index aff899e6707e6..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts] //// - -=== numeric-separator-literal-dil-dot-nsl-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._ - diff --git a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types deleted file mode 100644 index c178fdcd84b38..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dil-dot-nsl-err.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts] //// - -=== numeric-separator-literal-dil-dot-nsl-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._ ->10._ : 10 - diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt deleted file mode 100644 index b38defcd785eb..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.errors.txt +++ /dev/null @@ -1,36 +0,0 @@ -numeric-separator-literal-dot-dds-nsl-ep-err.ts(29,3): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-dot-dds-nsl-ep-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: NumericLiteralSeparator may not appear adjacent to ExponentPart - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - .0_e1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js deleted file mode 100644 index b3ed3cf47bc6b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.js +++ /dev/null @@ -1,61 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts] //// - -//// [numeric-separator-literal-dot-dds-nsl-ep-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -.0_e1 - - -//// [numeric-separator-literal-dot-dds-nsl-ep-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols deleted file mode 100644 index f13382ca0732b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.symbols +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts] //// - -=== numeric-separator-literal-dot-dds-nsl-ep-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -.0_e1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types b/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types deleted file mode 100644 index 171bcae555a4b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-dds-nsl-ep-err.types +++ /dev/null @@ -1,34 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts] //// - -=== numeric-separator-literal-dot-dds-nsl-ep-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -.0_e1 ->.0_e1 : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt deleted file mode 100644 index 9b0a9310e1f6f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-dot-nsl-ep-err.ts(30,1): error TS1128: Declaration or statement expected. -numeric-separator-literal-dot-nsl-ep-err.ts(30,2): error TS2304: Cannot find name '_e1'. - - -==== numeric-separator-literal-dot-nsl-ep-err.ts (2 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - ._e1 - ~ -!!! error TS1128: Declaration or statement expected. - ~~~ -!!! error TS2304: Cannot find name '_e1'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js deleted file mode 100644 index 12b1df842c05d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.js +++ /dev/null @@ -1,39 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts] //// - -//// [numeric-separator-literal-dot-nsl-ep-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._e1 - - -//// [numeric-separator-literal-dot-nsl-ep-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -_e1; diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols deleted file mode 100644 index d424686fabbf2..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.symbols +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts] //// - -=== numeric-separator-literal-dot-nsl-ep-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._e1 - diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types b/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types deleted file mode 100644 index 62ba4f5ab59e1..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-ep-err.types +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts] //// - -=== numeric-separator-literal-dot-nsl-ep-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._e1 ->_e1 : any - diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt deleted file mode 100644 index c6c431c57121c..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.errors.txt +++ /dev/null @@ -1,38 +0,0 @@ -numeric-separator-literal-dot-nsl-err.ts(28,1): error TS1128: Declaration or statement expected. -numeric-separator-literal-dot-nsl-err.ts(28,2): error TS2304: Cannot find name '_'. - - -==== numeric-separator-literal-dot-nsl-err.ts (2 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral, nor adjacent to `.` - info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - ._ - ~ -!!! error TS1128: Declaration or statement expected. - ~ -!!! error TS2304: Cannot find name '_'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js deleted file mode 100644 index 8034577cf2286..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.js +++ /dev/null @@ -1,37 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts] //// - -//// [numeric-separator-literal-dot-nsl-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral, nor adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._ - - -//// [numeric-separator-literal-dot-nsl-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -_; diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols deleted file mode 100644 index de257c82dde15..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts] //// - -=== numeric-separator-literal-dot-nsl-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral, nor adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._ - diff --git a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types b/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types deleted file mode 100644 index 8da99abb498b5..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-dot-nsl-err.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts] //// - -=== numeric-separator-literal-dot-nsl-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral, nor adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._ ->_ : any - diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt deleted file mode 100644 index d7756c0145261..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-hil-hd-nsl-hd-err.ts(33,3): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-hil-hd-nsl-hd-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0x_1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js deleted file mode 100644 index c77125891e559..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// - -//// [numeric-separator-literal-hil-hd-nsl-hd-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x_1 - - -//// [numeric-separator-literal-hil-hd-nsl-hd-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -1; diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols deleted file mode 100644 index 7c2dedbdd2449..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// - -=== numeric-separator-literal-hil-hd-nsl-hd-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x_1 - diff --git a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types b/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types deleted file mode 100644 index 6785bcdf2272d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-hd-nsl-hd-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts] //// - -=== numeric-separator-literal-hil-hd-nsl-hd-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x_1 ->0x_1 : 1 - diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt deleted file mode 100644 index 881b78369a16e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-hil-nsl-hd-dunder-err.ts(33,5): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== numeric-separator-literal-hil-nsl-hd-dunder-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0x0__0 - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js deleted file mode 100644 index f87f74d28abc3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// - -//// [numeric-separator-literal-hil-nsl-hd-dunder-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0__0 - - -//// [numeric-separator-literal-hil-nsl-hd-dunder-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols deleted file mode 100644 index f6d042f954646..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// - -=== numeric-separator-literal-hil-nsl-hd-dunder-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0__0 - diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types deleted file mode 100644 index 8e756663ec44c..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-dunder-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts] //// - -=== numeric-separator-literal-hil-nsl-hd-dunder-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0__0 ->0x0__0 : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt deleted file mode 100644 index 2c9bf86f5e3d8..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-hil-nsl-hd-err.ts(33,4): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-hil-nsl-hd-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0x0_ - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js deleted file mode 100644 index 3dfc315a04a43..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts] //// - -//// [numeric-separator-literal-hil-nsl-hd-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0_ - - -//// [numeric-separator-literal-hil-nsl-hd-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols deleted file mode 100644 index caa481c2712d2..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts] //// - -=== numeric-separator-literal-hil-nsl-hd-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0_ - diff --git a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types b/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types deleted file mode 100644 index c5fd46169b4ab..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-hil-nsl-hd-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts] //// - -=== numeric-separator-literal-hil-nsl-hd-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0_ ->0x0_ : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt deleted file mode 100644 index fe3aa858df72e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-00-err.errors.txt +++ /dev/null @@ -1,53 +0,0 @@ -numeric-separator-literal-lol-00-err.ts(40,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. -numeric-separator-literal-lol-00-err.ts(40,3): error TS1005: ';' expected. -numeric-separator-literal-lol-00-err.ts(40,3): error TS2304: Cannot find name '_0'. - - -==== numeric-separator-literal-lol-00-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 00_0; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name '_0'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.js b/tests/baselines/reference/numeric-separator-literal-lol-00-err.js deleted file mode 100644 index da3454b0bd08f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-00-err.js +++ /dev/null @@ -1,84 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts] //// - -//// [numeric-separator-literal-lol-00-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -00_0; - - -//// [numeric-separator-literal-lol-00-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -0; -_0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols deleted file mode 100644 index 0677b7c721664..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-00-err.symbols +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts] //// - -=== numeric-separator-literal-lol-00-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -00_0; - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-00-err.types b/tests/baselines/reference/numeric-separator-literal-lol-00-err.types deleted file mode 100644 index b226025397bfe..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-00-err.types +++ /dev/null @@ -1,46 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts] //// - -=== numeric-separator-literal-lol-00-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -00_0; ->00 : 0 ->_0 : any - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt deleted file mode 100644 index 5f24796d00425..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-01-err.errors.txt +++ /dev/null @@ -1,53 +0,0 @@ -numeric-separator-literal-lol-01-err.ts(40,1): error TS1121: Octal literals are not allowed. Use the syntax '0o1'. -numeric-separator-literal-lol-01-err.ts(40,3): error TS1005: ';' expected. -numeric-separator-literal-lol-01-err.ts(40,3): error TS2304: Cannot find name '_0'. - - -==== numeric-separator-literal-lol-01-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 01_0; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o1'. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name '_0'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.js b/tests/baselines/reference/numeric-separator-literal-lol-01-err.js deleted file mode 100644 index 7fa4c8843c0c3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-01-err.js +++ /dev/null @@ -1,84 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts] //// - -//// [numeric-separator-literal-lol-01-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -01_0; - - -//// [numeric-separator-literal-lol-01-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -1; -_0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols deleted file mode 100644 index 291a2b7537f43..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-01-err.symbols +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts] //// - -=== numeric-separator-literal-lol-01-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -01_0; - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-01-err.types b/tests/baselines/reference/numeric-separator-literal-lol-01-err.types deleted file mode 100644 index a07903b76ef80..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-01-err.types +++ /dev/null @@ -1,46 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts] //// - -=== numeric-separator-literal-lol-01-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -01_0; ->01 : 1 ->_0 : any - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt deleted file mode 100644 index 5b93befa2e41e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-07-err.errors.txt +++ /dev/null @@ -1,55 +0,0 @@ -numeric-separator-literal-lol-07-err.ts(42,1): error TS1121: Octal literals are not allowed. Use the syntax '0o7'. -numeric-separator-literal-lol-07-err.ts(42,3): error TS1005: ';' expected. -numeric-separator-literal-lol-07-err.ts(42,3): error TS2304: Cannot find name '_0'. - - -==== numeric-separator-literal-lol-07-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 07_0; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o7'. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name '_0'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.js b/tests/baselines/reference/numeric-separator-literal-lol-07-err.js deleted file mode 100644 index 55c47a417f2b3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-07-err.js +++ /dev/null @@ -1,88 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts] //// - -//// [numeric-separator-literal-lol-07-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -07_0; - - -//// [numeric-separator-literal-lol-07-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -7; -_0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols deleted file mode 100644 index ac4dc3752b5e3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-07-err.symbols +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts] //// - -=== numeric-separator-literal-lol-07-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -07_0; - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-07-err.types b/tests/baselines/reference/numeric-separator-literal-lol-07-err.types deleted file mode 100644 index 659f1f502bdb3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-07-err.types +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts] //// - -=== numeric-separator-literal-lol-07-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -07_0; ->07 : 7 ->_0 : any - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt deleted file mode 100644 index 3642386c1e575..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.errors.txt +++ /dev/null @@ -1,47 +0,0 @@ -numeric-separator-literal-lol-0_0-err.ts(40,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-lol-0_0-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 0_0; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js deleted file mode 100644 index 1fe066253f73d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.js +++ /dev/null @@ -1,83 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts] //// - -//// [numeric-separator-literal-lol-0_0-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_0; - - -//// [numeric-separator-literal-lol-0_0-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols deleted file mode 100644 index 486084351e61d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.symbols +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts] //// - -=== numeric-separator-literal-lol-0_0-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_0; - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types b/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types deleted file mode 100644 index 904d128fbd097..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_0-err.types +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts] //// - -=== numeric-separator-literal-lol-0_0-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_0; ->0_0 : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt deleted file mode 100644 index ca2d7691a4a49..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.errors.txt +++ /dev/null @@ -1,47 +0,0 @@ -numeric-separator-literal-lol-0_1-err.ts(40,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-lol-0_1-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 0_1; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js deleted file mode 100644 index 255cb13757a15..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.js +++ /dev/null @@ -1,83 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts] //// - -//// [numeric-separator-literal-lol-0_1-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_1; - - -//// [numeric-separator-literal-lol-0_1-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -1; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols deleted file mode 100644 index 61cd6b358796e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.symbols +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts] //// - -=== numeric-separator-literal-lol-0_1-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_1; - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types b/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types deleted file mode 100644 index 8f50bc27dd8df..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_1-err.types +++ /dev/null @@ -1,45 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts] //// - -=== numeric-separator-literal-lol-0_1-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_1; ->0_1 : 1 - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt deleted file mode 100644 index 26703d4cb853b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.errors.txt +++ /dev/null @@ -1,48 +0,0 @@ -numeric-separator-literal-lol-0_7-err.ts(41,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-lol-0_7-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 0_7; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js deleted file mode 100644 index 0f91ed80ad26a..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.js +++ /dev/null @@ -1,85 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts] //// - -//// [numeric-separator-literal-lol-0_7-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_7; - - -//// [numeric-separator-literal-lol-0_7-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -7; diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols deleted file mode 100644 index 96a472ffbe693..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.symbols +++ /dev/null @@ -1,46 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts] //// - -=== numeric-separator-literal-lol-0_7-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_7; - diff --git a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types b/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types deleted file mode 100644 index aeef2dbc9995b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-lol-0_7-err.types +++ /dev/null @@ -1,46 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts] //// - -=== numeric-separator-literal-lol-0_7-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_7; ->0_7 : 7 - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt deleted file mode 100644 index 7655634d0dd92..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -numeric-separator-literal-nonoctal-08-err.ts(37,1): error TS1489: Decimals with leading zeros are not allowed. -numeric-separator-literal-nonoctal-08-err.ts(37,3): error TS1005: ';' expected. -numeric-separator-literal-nonoctal-08-err.ts(37,3): error TS2304: Cannot find name '_0'. - - -==== numeric-separator-literal-nonoctal-08-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 08_0; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name '_0'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js deleted file mode 100644 index b7633eda3fdc3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.js +++ /dev/null @@ -1,78 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts] //// - -//// [numeric-separator-literal-nonoctal-08-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -08_0; - - -//// [numeric-separator-literal-nonoctal-08-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -8; -_0; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols deleted file mode 100644 index f67d972baf15b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts] //// - -=== numeric-separator-literal-nonoctal-08-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -08_0; - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types deleted file mode 100644 index 738dc121ec3c5..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-08-err.types +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts] //// - -=== numeric-separator-literal-nonoctal-08-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -08_0; ->08 : 8 ->_0 : any - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt deleted file mode 100644 index 74fb11e8977fc..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.errors.txt +++ /dev/null @@ -1,50 +0,0 @@ -numeric-separator-literal-nonoctal-09-err.ts(37,1): error TS1489: Decimals with leading zeros are not allowed. -numeric-separator-literal-nonoctal-09-err.ts(37,3): error TS1005: ';' expected. -numeric-separator-literal-nonoctal-09-err.ts(37,3): error TS2304: Cannot find name '_0'. - - -==== numeric-separator-literal-nonoctal-09-err.ts (3 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 09_0; - ~~ -!!! error TS1489: Decimals with leading zeros are not allowed. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name '_0'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js deleted file mode 100644 index 5cd118583af4f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.js +++ /dev/null @@ -1,78 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts] //// - -//// [numeric-separator-literal-nonoctal-09-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -09_0; - - -//// [numeric-separator-literal-nonoctal-09-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -9; -_0; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols deleted file mode 100644 index 360f661a30867..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts] //// - -=== numeric-separator-literal-nonoctal-09-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -09_0; - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types deleted file mode 100644 index d5d407d01a9f4..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-09-err.types +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts] //// - -=== numeric-separator-literal-nonoctal-09-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -09_0; ->09 : 9 ->_0 : any - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt deleted file mode 100644 index 00f4a344c793d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -numeric-separator-literal-nonoctal-0_8-err.ts(37,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-nonoctal-0_8-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 0_8; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js deleted file mode 100644 index de824ee0dd9a8..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.js +++ /dev/null @@ -1,77 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts] //// - -//// [numeric-separator-literal-nonoctal-0_8-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_8; - - -//// [numeric-separator-literal-nonoctal-0_8-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -8; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols deleted file mode 100644 index 7371845c80c51..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts] //// - -=== numeric-separator-literal-nonoctal-0_8-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_8; - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types deleted file mode 100644 index 31ba83d19f08a..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_8-err.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts] //// - -=== numeric-separator-literal-nonoctal-0_8-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_8; ->0_8 : 8 - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt deleted file mode 100644 index c134045f1635e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -numeric-separator-literal-nonoctal-0_9-err.ts(37,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-nonoctal-0_9-err.ts (1 errors) ==== - // Copyright (C) 2019 Leo Balter. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - negative: - phase: parse - type: SyntaxError - features: [numeric-separator-literal] - ---*/ - - - 0_9; - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js deleted file mode 100644 index 3c04ecb919056..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.js +++ /dev/null @@ -1,77 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts] //// - -//// [numeric-separator-literal-nonoctal-0_9-err.ts] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_9; - - -//// [numeric-separator-literal-nonoctal-0_9-err.js] -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ -9; diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols deleted file mode 100644 index 9c6da7da883fd..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.symbols +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts] //// - -=== numeric-separator-literal-nonoctal-0_9-err.ts === - -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_9; - diff --git a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types b/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types deleted file mode 100644 index 15cbd5189d31f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nonoctal-0_9-err.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts] //// - -=== numeric-separator-literal-nonoctal-0_9-err.ts === -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_9; ->0_9 : 9 - diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt deleted file mode 100644 index e0811c6d83dd3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.errors.txt +++ /dev/null @@ -1,38 +0,0 @@ -numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(28,2): error TS6188: Numeric separators are not allowed here. -numeric-separator-literal-nzd-nsl-dds-dunder-err.ts(28,3): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== numeric-separator-literal-nzd-nsl-dds-dunder-err.ts (2 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0__0123456789 - ~ -!!! error TS6188: Numeric separators are not allowed here. - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js deleted file mode 100644 index 42d7241b50f37..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.js +++ /dev/null @@ -1,59 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// - -//// [numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0__0123456789 - - -//// [numeric-separator-literal-nzd-nsl-dds-dunder-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols deleted file mode 100644 index 12c2b887e926f..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.symbols +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// - -=== numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0__0123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types deleted file mode 100644 index ba8a0f3f72194..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-dunder-err.types +++ /dev/null @@ -1,33 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts] //// - -=== numeric-separator-literal-nzd-nsl-dds-dunder-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0__0123456789 ->0__0123456789 : 123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt deleted file mode 100644 index dcbfc3fbf1dd5..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.errors.txt +++ /dev/null @@ -1,33 +0,0 @@ -numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts(26,2): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: NonZeroDigit NumericLiteralSeparator DecimalDigits - info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0_0123456789 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js deleted file mode 100644 index be19078e79528..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js +++ /dev/null @@ -1,55 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// - -//// [numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0_0123456789 - - -//// [numeric-separator-literal-nzd-nsl-dds-leading-zero-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols deleted file mode 100644 index 87dce81c256b5..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.symbols +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// - -=== numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0_0123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types b/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types deleted file mode 100644 index df538c8dd1ec3..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts] //// - -=== numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0_0123456789 ->0_0123456789 : 123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt deleted file mode 100644 index 7acca370de71a..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-oil-nsl-od-dunder-err.ts(33,5): error TS6189: Multiple consecutive numeric separators are not permitted. - - -==== numeric-separator-literal-oil-nsl-od-dunder-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0o0__0 - ~ -!!! error TS6189: Multiple consecutive numeric separators are not permitted. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js deleted file mode 100644 index b230b616dcf52..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// - -//// [numeric-separator-literal-oil-nsl-od-dunder-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0__0 - - -//// [numeric-separator-literal-oil-nsl-od-dunder-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols deleted file mode 100644 index 809936c627a59..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// - -=== numeric-separator-literal-oil-nsl-od-dunder-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0__0 - diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types deleted file mode 100644 index de61d4a46370e..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-dunder-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts] //// - -=== numeric-separator-literal-oil-nsl-od-dunder-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0__0 ->0o0__0 : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt deleted file mode 100644 index 1f7f27aa3859b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-oil-nsl-od-err.ts(33,4): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-oil-nsl-od-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0o0_ - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js deleted file mode 100644 index 7edc2238d444d..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts] //// - -//// [numeric-separator-literal-oil-nsl-od-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0_ - - -//// [numeric-separator-literal-oil-nsl-od-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -0; diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols deleted file mode 100644 index abd7ca48d98d7..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts] //// - -=== numeric-separator-literal-oil-nsl-od-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0_ - diff --git a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types b/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types deleted file mode 100644 index 0057ae75df82c..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-nsl-od-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts] //// - -=== numeric-separator-literal-oil-nsl-od-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0_ ->0o0_ : 0 - diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt deleted file mode 100644 index ecb6145811284..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -numeric-separator-literal-oil-od-nsl-od-err.ts(33,3): error TS6188: Numeric separators are not allowed here. - - -==== numeric-separator-literal-oil-od-nsl-od-err.ts (1 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral - info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 0o_1 - ~ -!!! error TS6188: Numeric separators are not allowed here. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js deleted file mode 100644 index 5a31b534d77e8..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts] //// - -//// [numeric-separator-literal-oil-od-nsl-od-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o_1 - - -//// [numeric-separator-literal-oil-od-nsl-od-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -1; diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols deleted file mode 100644 index dfa631e860463..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts] //// - -=== numeric-separator-literal-oil-od-nsl-od-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o_1 - diff --git a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types b/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types deleted file mode 100644 index 0fe50b1f50a05..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-oil-od-nsl-od-err.types +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts] //// - -=== numeric-separator-literal-oil-od-nsl-od-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o_1 ->0o_1 : 1 - diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt b/tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt deleted file mode 100644 index 6638b3abf6e09..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-unicode-err.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -numeric-separator-literal-unicode-err.ts(25,2): error TS1005: ';' expected. -numeric-separator-literal-unicode-err.ts(25,2): error TS2304: Cannot find name '\u005F0123456789'. - - -==== numeric-separator-literal-unicode-err.ts (2 errors) ==== - // Copyright (C) 2017 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-NumericLiteralSeparator - description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence - info: | - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - negative: - phase: parse - type: SyntaxError - - features: [numeric-separator-literal] - ---*/ - - - 1\u005F0123456789 - ~~~~~~~~~~~~~~~~ -!!! error TS1005: ';' expected. - ~~~~~~~~~~~~~~~~ -!!! error TS2304: Cannot find name '\u005F0123456789'. - \ No newline at end of file diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.js b/tests/baselines/reference/numeric-separator-literal-unicode-err.js deleted file mode 100644 index ae9578b21c7b7..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-unicode-err.js +++ /dev/null @@ -1,54 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts] //// - -//// [numeric-separator-literal-unicode-err.ts] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1\u005F0123456789 - - -//// [numeric-separator-literal-unicode-err.js] -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ -1; -\u005F0123456789; diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.symbols b/tests/baselines/reference/numeric-separator-literal-unicode-err.symbols deleted file mode 100644 index f8769fdc9ba1b..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-unicode-err.symbols +++ /dev/null @@ -1,30 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts] //// - -=== numeric-separator-literal-unicode-err.ts === - -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1\u005F0123456789 - diff --git a/tests/baselines/reference/numeric-separator-literal-unicode-err.types b/tests/baselines/reference/numeric-separator-literal-unicode-err.types deleted file mode 100644 index f01017518ae24..0000000000000 --- a/tests/baselines/reference/numeric-separator-literal-unicode-err.types +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts] //// - -=== numeric-separator-literal-unicode-err.ts === -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1\u005F0123456789 ->1 : 1 ->\u005F0123456789 : any - diff --git a/tests/baselines/reference/octal-invalid-digit.errors.txt b/tests/baselines/reference/octal-invalid-digit.errors.txt deleted file mode 100644 index 0b8217abf003a..0000000000000 --- a/tests/baselines/reference/octal-invalid-digit.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -octal-invalid-digit.ts(22,3): error TS1178: Octal digit expected. - - -==== octal-invalid-digit.ts (1 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Octal-integer-literal-like sequence containing an invalid digit - info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0o8; - -!!! error TS1178: Octal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-digit.js b/tests/baselines/reference/octal-invalid-digit.js deleted file mode 100644 index edb280948667c..0000000000000 --- a/tests/baselines/reference/octal-invalid-digit.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts] //// - -//// [octal-invalid-digit.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence containing an invalid digit -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o8; - - -//// [octal-invalid-digit.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence containing an invalid digit -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ -0; -8; diff --git a/tests/baselines/reference/octal-invalid-digit.symbols b/tests/baselines/reference/octal-invalid-digit.symbols deleted file mode 100644 index f205a768097f4..0000000000000 --- a/tests/baselines/reference/octal-invalid-digit.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts] //// - -=== octal-invalid-digit.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence containing an invalid digit -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o8; - diff --git a/tests/baselines/reference/octal-invalid-digit.types b/tests/baselines/reference/octal-invalid-digit.types deleted file mode 100644 index 8bf85186283b3..0000000000000 --- a/tests/baselines/reference/octal-invalid-digit.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts] //// - -=== octal-invalid-digit.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence containing an invalid digit -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o8; ->0o : 0 ->8 : 8 - diff --git a/tests/baselines/reference/octal-invalid-leading.errors.txt b/tests/baselines/reference/octal-invalid-leading.errors.txt deleted file mode 100644 index 55b09e06e7cdb..0000000000000 --- a/tests/baselines/reference/octal-invalid-leading.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -octal-invalid-leading.ts(22,1): error TS1121: Octal literals are not allowed. Use the syntax '0o0'. -octal-invalid-leading.ts(22,3): error TS1005: ';' expected. -octal-invalid-leading.ts(22,3): error TS2304: Cannot find name 'o0'. - - -==== octal-invalid-leading.ts (3 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Octal-integer-literal-like sequence with a leading 0 - info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 00o0; - ~~ -!!! error TS1121: Octal literals are not allowed. Use the syntax '0o0'. - ~~ -!!! error TS1005: ';' expected. - ~~ -!!! error TS2304: Cannot find name 'o0'. - \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-leading.js b/tests/baselines/reference/octal-invalid-leading.js deleted file mode 100644 index 003b3ed118689..0000000000000 --- a/tests/baselines/reference/octal-invalid-leading.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts] //// - -//// [octal-invalid-leading.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence with a leading 0 -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -00o0; - - -//// [octal-invalid-leading.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence with a leading 0 -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ -0; -o0; diff --git a/tests/baselines/reference/octal-invalid-leading.symbols b/tests/baselines/reference/octal-invalid-leading.symbols deleted file mode 100644 index 89a83eebeb308..0000000000000 --- a/tests/baselines/reference/octal-invalid-leading.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts] //// - -=== octal-invalid-leading.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence with a leading 0 -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -00o0; - diff --git a/tests/baselines/reference/octal-invalid-leading.types b/tests/baselines/reference/octal-invalid-leading.types deleted file mode 100644 index 9d406c1cdc964..0000000000000 --- a/tests/baselines/reference/octal-invalid-leading.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts] //// - -=== octal-invalid-leading.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence with a leading 0 -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -00o0; ->00 : 0 ->o0 : any - diff --git a/tests/baselines/reference/octal-invalid-truncated.errors.txt b/tests/baselines/reference/octal-invalid-truncated.errors.txt deleted file mode 100644 index 0869d330d31c1..0000000000000 --- a/tests/baselines/reference/octal-invalid-truncated.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -octal-invalid-truncated.ts(22,3): error TS1178: Octal digit expected. - - -==== octal-invalid-truncated.ts (1 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Octal-integer-literal-like sequence without any digits - info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0o; - -!!! error TS1178: Octal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-truncated.js b/tests/baselines/reference/octal-invalid-truncated.js deleted file mode 100644 index c6b9d57e46976..0000000000000 --- a/tests/baselines/reference/octal-invalid-truncated.js +++ /dev/null @@ -1,47 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts] //// - -//// [octal-invalid-truncated.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence without any digits -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o; - - -//// [octal-invalid-truncated.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence without any digits -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ -0; diff --git a/tests/baselines/reference/octal-invalid-truncated.symbols b/tests/baselines/reference/octal-invalid-truncated.symbols deleted file mode 100644 index 0225c3dc473fd..0000000000000 --- a/tests/baselines/reference/octal-invalid-truncated.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts] //// - -=== octal-invalid-truncated.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence without any digits -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o; - diff --git a/tests/baselines/reference/octal-invalid-truncated.types b/tests/baselines/reference/octal-invalid-truncated.types deleted file mode 100644 index 46568f5b89e02..0000000000000 --- a/tests/baselines/reference/octal-invalid-truncated.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts] //// - -=== octal-invalid-truncated.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence without any digits -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o; ->0o : 0 - diff --git a/tests/baselines/reference/octal-invalid-unicode.errors.txt b/tests/baselines/reference/octal-invalid-unicode.errors.txt deleted file mode 100644 index 4a92231ae9a00..0000000000000 --- a/tests/baselines/reference/octal-invalid-unicode.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -octal-invalid-unicode.ts(22,2): error TS1005: ';' expected. -octal-invalid-unicode.ts(22,2): error TS2304: Cannot find name '\u006f0'. - - -==== octal-invalid-unicode.ts (2 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - es6id: 11.8.3 - description: Octal-integer-literal-like sequence expressed with unicode escape sequence - info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - negative: - phase: parse - type: SyntaxError - ---*/ - - - 0\u006f0; - ~~~~~~~ -!!! error TS1005: ';' expected. - ~~~~~~~ -!!! error TS2304: Cannot find name '\u006f0'. - \ No newline at end of file diff --git a/tests/baselines/reference/octal-invalid-unicode.js b/tests/baselines/reference/octal-invalid-unicode.js deleted file mode 100644 index f35b254845a7c..0000000000000 --- a/tests/baselines/reference/octal-invalid-unicode.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts] //// - -//// [octal-invalid-unicode.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence expressed with unicode escape sequence -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u006f0; - - -//// [octal-invalid-unicode.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence expressed with unicode escape sequence -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ -0; -\u006f0; diff --git a/tests/baselines/reference/octal-invalid-unicode.symbols b/tests/baselines/reference/octal-invalid-unicode.symbols deleted file mode 100644 index 360f9ca6a39b2..0000000000000 --- a/tests/baselines/reference/octal-invalid-unicode.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts] //// - -=== octal-invalid-unicode.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence expressed with unicode escape sequence -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u006f0; - diff --git a/tests/baselines/reference/octal-invalid-unicode.types b/tests/baselines/reference/octal-invalid-unicode.types deleted file mode 100644 index 91e92a80b463b..0000000000000 --- a/tests/baselines/reference/octal-invalid-unicode.types +++ /dev/null @@ -1,28 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts] //// - -=== octal-invalid-unicode.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence expressed with unicode escape sequence -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u006f0; ->0 : 0 ->\u006f0 : any - diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt b/tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt deleted file mode 100644 index 680e6966a0c25..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-line-separator.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -regexp-first-char-no-line-separator.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -regexp-first-char-no-line-separator.ts(28,2): error TS1161: Unterminated regular expression literal. -regexp-first-char-no-line-separator.ts(29,2): error TS1109: Expression expected. - - -==== regexp-first-char-no-line-separator.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionNonTerminator - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - The first character of a regular expression may not be a - negative: - phase: parse - type: SyntaxError - ---*/ - - - /
/ - ~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - - -!!! error TS1109: Expression expected. - /* - There is a between the two / characters - */ - \ No newline at end of file diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.js b/tests/baselines/reference/regexp-first-char-no-line-separator.js deleted file mode 100644 index 4c1b36473148d..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-line-separator.js +++ /dev/null @@ -1,68 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts] //// - -//// [regexp-first-char-no-line-separator.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/
/ - -/* -There is a between the two / characters -*/ - - -//// [regexp-first-char-no-line-separator.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ -/ - / -; -/* -There is a between the two / characters -*/ diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.symbols b/tests/baselines/reference/regexp-first-char-no-line-separator.symbols deleted file mode 100644 index cf698619122a7..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-line-separator.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts] //// - -=== regexp-first-char-no-line-separator.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ - -/* -There is a between the two / characters -*/ - diff --git a/tests/baselines/reference/regexp-first-char-no-line-separator.types b/tests/baselines/reference/regexp-first-char-no-line-separator.types deleted file mode 100644 index f6f596100f3f1..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-line-separator.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-line-separator.ts] //// - -=== regexp-first-char-no-line-separator.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/ ->/
/ : number ->/ : RegExp - -/ - -/* -There is a between the two / characters -*/ - -> : any - diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt deleted file mode 100644 index 6058ab10efef7..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -regexp-first-char-no-paragraph-separator.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -regexp-first-char-no-paragraph-separator.ts(28,2): error TS1161: Unterminated regular expression literal. -regexp-first-char-no-paragraph-separator.ts(29,2): error TS1109: Expression expected. - - -==== regexp-first-char-no-paragraph-separator.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionNonTerminator - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - The first character of a regular expression may not be a - negative: - phase: parse - type: SyntaxError - ---*/ - - - /
/ - ~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - - -!!! error TS1109: Expression expected. - /* - There is a between the two / characters - */ - \ No newline at end of file diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.js b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.js deleted file mode 100644 index a3c4c9e376446..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.js +++ /dev/null @@ -1,68 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts] //// - -//// [regexp-first-char-no-paragraph-separator.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/
/ - -/* -There is a between the two / characters -*/ - - -//// [regexp-first-char-no-paragraph-separator.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ -/ - / -; -/* -There is a between the two / characters -*/ diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols deleted file mode 100644 index 6f32a550d826e..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts] //// - -=== regexp-first-char-no-paragraph-separator.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ - -/* -There is a between the two / characters -*/ - diff --git a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.types b/tests/baselines/reference/regexp-first-char-no-paragraph-separator.types deleted file mode 100644 index 61ab3ab8bc49a..0000000000000 --- a/tests/baselines/reference/regexp-first-char-no-paragraph-separator.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts] //// - -=== regexp-first-char-no-paragraph-separator.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/ ->/
/ : number ->/ : RegExp - -/ - -/* -There is a between the two / characters -*/ - -> : any - diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt b/tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt deleted file mode 100644 index c6e1c3546f599..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-line-separator.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -regexp-source-char-no-line-separator.ts(27,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -regexp-source-char-no-line-separator.ts(27,2): error TS1161: Unterminated regular expression literal. -regexp-source-char-no-line-separator.ts(28,2): error TS1109: Expression expected. - - -==== regexp-source-char-no-line-separator.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionBackslashSequence - info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - - description: > - A regular expression may not contain a as a SourceCharacter - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a\\
/ - ~~~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - - -!!! error TS1109: Expression expected. - /* - There is a between "a\\
" and "/" - */ - \ No newline at end of file diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.js b/tests/baselines/reference/regexp-source-char-no-line-separator.js deleted file mode 100644 index d188947f4473f..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-line-separator.js +++ /dev/null @@ -1,67 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts] //// - -//// [regexp-source-char-no-line-separator.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\
/ - -/* -There is a between "a\\
" and "/" -*/ - - -//// [regexp-source-char-no-line-separator.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ -/a\\ - / -; -/* -There is a between "a\\ -" and "/" -*/ diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.symbols b/tests/baselines/reference/regexp-source-char-no-line-separator.symbols deleted file mode 100644 index cdbda40f9e4c4..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-line-separator.symbols +++ /dev/null @@ -1,38 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts] //// - -=== regexp-source-char-no-line-separator.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\ -/ - -/* -There is a between "a\\ -" and "/" -*/ - diff --git a/tests/baselines/reference/regexp-source-char-no-line-separator.types b/tests/baselines/reference/regexp-source-char-no-line-separator.types deleted file mode 100644 index b3ab27451ad2e..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-line-separator.types +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts] //// - -=== regexp-source-char-no-line-separator.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\ ->/a\\
/ : number ->/a\\ : RegExp - -/ - -/* -There is a between "a\\ -" and "/" -*/ - -> : any - diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt deleted file mode 100644 index db877c0082a02..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -regexp-source-char-no-paragraph-separator.ts(28,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -regexp-source-char-no-paragraph-separator.ts(28,2): error TS1161: Unterminated regular expression literal. -regexp-source-char-no-paragraph-separator.ts(30,2): error TS1109: Expression expected. - - -==== regexp-source-char-no-paragraph-separator.ts (3 errors) ==== - // Copyright 2009 the Sputnik authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-RegularExpressionNonTerminator - info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - description: > - A regular expression may not contain a as a SourceCharacter - negative: - phase: parse - type: SyntaxError - ---*/ - - - /a\\

/ - ~~~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. - -!!! error TS1161: Unterminated regular expression literal. - - /* - -!!! error TS1109: Expression expected. - There is a between "a\\
" and "/" - */ - \ No newline at end of file diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.js b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.js deleted file mode 100644 index a926147d15cf3..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.js +++ /dev/null @@ -1,69 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts] //// - -//// [regexp-source-char-no-paragraph-separator.ts] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\

/ - -/* -There is a between "a\\
" and "/" -*/ - - -//// [regexp-source-char-no-paragraph-separator.js] -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ -/a\\ - / -; -/* -There is a between "a\\ -" and "/" -*/ diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols deleted file mode 100644 index d23d282125332..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.symbols +++ /dev/null @@ -1,40 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts] //// - -=== regexp-source-char-no-paragraph-separator.ts === - -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\ - -/ - -/* -There is a between "a\\ -" and "/" -*/ - diff --git a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.types b/tests/baselines/reference/regexp-source-char-no-paragraph-separator.types deleted file mode 100644 index 50e69a0f03949..0000000000000 --- a/tests/baselines/reference/regexp-source-char-no-paragraph-separator.types +++ /dev/null @@ -1,43 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts] //// - -=== regexp-source-char-no-paragraph-separator.ts === -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\ ->/a\\

/ : number ->/a\\ : RegExp - -/ - -/* -There is a between "a\\ -" and "/" -*/ - -> : any - diff --git a/tests/baselines/reference/u-invalid-class-escape.errors.txt b/tests/baselines/reference/u-invalid-class-escape.errors.txt deleted file mode 100644 index 873e2fb2e7d9c..0000000000000 --- a/tests/baselines/reference/u-invalid-class-escape.errors.txt +++ /dev/null @@ -1,32 +0,0 @@ -u-invalid-class-escape.ts(22,2): error TS1510: '\c' must be followed by an ASCII letter. -u-invalid-class-escape.ts(22,6): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-class-escape.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: > - ClassEscape does not recognize "class control" patterns - info: | - ClassEscape[U] :: - b - [+U] - - CharacterClassEscape - CharacterEscape[?U] - - The `u` flag precludes the Annex B extension that enables this pattern. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\c0/u; - ~~ -!!! error TS1510: '\c' must be followed by an ASCII letter. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-class-escape.js b/tests/baselines/reference/u-invalid-class-escape.js deleted file mode 100644 index f864a38d27d5b..0000000000000 --- a/tests/baselines/reference/u-invalid-class-escape.js +++ /dev/null @@ -1,48 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts] //// - -//// [u-invalid-class-escape.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: > - ClassEscape does not recognize "class control" patterns -info: | - ClassEscape[U] :: - b - [+U] - - CharacterClassEscape - CharacterEscape[?U] - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\c0/u; - - -//// [u-invalid-class-escape.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: > - ClassEscape does not recognize "class control" patterns -info: | - ClassEscape[U] :: - b - [+U] - - CharacterClassEscape - CharacterEscape[?U] - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ -/\c0/u; diff --git a/tests/baselines/reference/u-invalid-class-escape.symbols b/tests/baselines/reference/u-invalid-class-escape.symbols deleted file mode 100644 index 8d62e187b302d..0000000000000 --- a/tests/baselines/reference/u-invalid-class-escape.symbols +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts] //// - -=== u-invalid-class-escape.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: > - ClassEscape does not recognize "class control" patterns -info: | - ClassEscape[U] :: - b - [+U] - - CharacterClassEscape - CharacterEscape[?U] - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\c0/u; - diff --git a/tests/baselines/reference/u-invalid-class-escape.types b/tests/baselines/reference/u-invalid-class-escape.types deleted file mode 100644 index 94399973dd6c7..0000000000000 --- a/tests/baselines/reference/u-invalid-class-escape.types +++ /dev/null @@ -1,27 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts] //// - -=== u-invalid-class-escape.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: > - ClassEscape does not recognize "class control" patterns -info: | - ClassEscape[U] :: - b - [+U] - - CharacterClassEscape - CharacterEscape[?U] - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\c0/u; ->/\c0/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt b/tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt deleted file mode 100644 index 16190be2a328d..0000000000000 --- a/tests/baselines/reference/u-invalid-extended-pattern-char.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-extended-pattern-char.ts(19,2): error TS1506: Unexpected '{'. Did you mean to escape it with backslash? -u-invalid-extended-pattern-char.ts(19,4): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-extended-pattern-char.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: Quantifiable assertions disallowed with `u` flag - info: | - The `u` flag precludes the use of extended pattern characters irrespective - of the presence of Annex B extensions. - - Term[U] :: - [~U] ExtendedAtom - negative: - phase: parse - type: SyntaxError - ---*/ - - - /{/u; - ~ -!!! error TS1506: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.js b/tests/baselines/reference/u-invalid-extended-pattern-char.js deleted file mode 100644 index f184c3c67e97a..0000000000000 --- a/tests/baselines/reference/u-invalid-extended-pattern-char.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts] //// - -//// [u-invalid-extended-pattern-char.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes the use of extended pattern characters irrespective - of the presence of Annex B extensions. - - Term[U] :: - [~U] ExtendedAtom -negative: - phase: parse - type: SyntaxError ----*/ - - -/{/u; - - -//// [u-invalid-extended-pattern-char.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes the use of extended pattern characters irrespective - of the presence of Annex B extensions. - - Term[U] :: - [~U] ExtendedAtom -negative: - phase: parse - type: SyntaxError ----*/ -/{/u; diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.symbols b/tests/baselines/reference/u-invalid-extended-pattern-char.symbols deleted file mode 100644 index d96d410513905..0000000000000 --- a/tests/baselines/reference/u-invalid-extended-pattern-char.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts] //// - -=== u-invalid-extended-pattern-char.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes the use of extended pattern characters irrespective - of the presence of Annex B extensions. - - Term[U] :: - [~U] ExtendedAtom -negative: - phase: parse - type: SyntaxError ----*/ - - -/{/u; - diff --git a/tests/baselines/reference/u-invalid-extended-pattern-char.types b/tests/baselines/reference/u-invalid-extended-pattern-char.types deleted file mode 100644 index d675d2e7644e7..0000000000000 --- a/tests/baselines/reference/u-invalid-extended-pattern-char.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts] //// - -=== u-invalid-extended-pattern-char.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes the use of extended pattern characters irrespective - of the presence of Annex B extensions. - - Term[U] :: - [~U] ExtendedAtom -negative: - phase: parse - type: SyntaxError ----*/ - - -/{/u; ->/{/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-identity-escape.errors.txt b/tests/baselines/reference/u-invalid-identity-escape.errors.txt deleted file mode 100644 index 91da307766211..0000000000000 --- a/tests/baselines/reference/u-invalid-identity-escape.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -u-invalid-identity-escape.ts(21,2): error TS1496: '\M' is not a valid character escape. -u-invalid-identity-escape.ts(21,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-identity-escape.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: Support for UnicodeIDContinue in IdentityEscape - info: | - IdentityEscape[U] :: - [+U] SyntaxCharacter - [+U] / - [~U] SourceCharacter but not UnicodeIDContinue - - The `u` flag precludes the use of characters in UnicodeIDContinue - irrespective of the presence of Annex B extensions. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\M/u; - ~~ -!!! error TS1496: '\M' is not a valid character escape. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-identity-escape.js b/tests/baselines/reference/u-invalid-identity-escape.js deleted file mode 100644 index 009e6144fad60..0000000000000 --- a/tests/baselines/reference/u-invalid-identity-escape.js +++ /dev/null @@ -1,46 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts] //// - -//// [u-invalid-identity-escape.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Support for UnicodeIDContinue in IdentityEscape -info: | - IdentityEscape[U] :: - [+U] SyntaxCharacter - [+U] / - [~U] SourceCharacter but not UnicodeIDContinue - - The `u` flag precludes the use of characters in UnicodeIDContinue - irrespective of the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\M/u; - - -//// [u-invalid-identity-escape.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Support for UnicodeIDContinue in IdentityEscape -info: | - IdentityEscape[U] :: - [+U] SyntaxCharacter - [+U] / - [~U] SourceCharacter but not UnicodeIDContinue - - The `u` flag precludes the use of characters in UnicodeIDContinue - irrespective of the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ -/\M/u; diff --git a/tests/baselines/reference/u-invalid-identity-escape.symbols b/tests/baselines/reference/u-invalid-identity-escape.symbols deleted file mode 100644 index cf18b9ac91727..0000000000000 --- a/tests/baselines/reference/u-invalid-identity-escape.symbols +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts] //// - -=== u-invalid-identity-escape.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Support for UnicodeIDContinue in IdentityEscape -info: | - IdentityEscape[U] :: - [+U] SyntaxCharacter - [+U] / - [~U] SourceCharacter but not UnicodeIDContinue - - The `u` flag precludes the use of characters in UnicodeIDContinue - irrespective of the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\M/u; - diff --git a/tests/baselines/reference/u-invalid-identity-escape.types b/tests/baselines/reference/u-invalid-identity-escape.types deleted file mode 100644 index 0260adec7a124..0000000000000 --- a/tests/baselines/reference/u-invalid-identity-escape.types +++ /dev/null @@ -1,26 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts] //// - -=== u-invalid-identity-escape.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Support for UnicodeIDContinue in IdentityEscape -info: | - IdentityEscape[U] :: - [+U] SyntaxCharacter - [+U] / - [~U] SourceCharacter but not UnicodeIDContinue - - The `u` flag precludes the use of characters in UnicodeIDContinue - irrespective of the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\M/u; ->/\M/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt b/tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt deleted file mode 100644 index 1ec965e34daa1..0000000000000 --- a/tests/baselines/reference/u-invalid-legacy-octal-escape.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -u-invalid-legacy-octal-escape.ts(24,3): error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. -u-invalid-legacy-octal-escape.ts(24,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-legacy-octal-escape.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-patterns - es6id: 21.2.1 - description: Legacy Octal Escape Sequence not supported with `u` flag - info: | - The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective - of the presence of Annex B extensions. - - CharacterEscape [U] :: - ControlEscape - c ControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\1/u; - ~ -!!! error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.js b/tests/baselines/reference/u-invalid-legacy-octal-escape.js deleted file mode 100644 index c0ca28defc58b..0000000000000 --- a/tests/baselines/reference/u-invalid-legacy-octal-escape.js +++ /dev/null @@ -1,52 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts] //// - -//// [u-invalid-legacy-octal-escape.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Legacy Octal Escape Sequence not supported with `u` flag -info: | - The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective - of the presence of Annex B extensions. - - CharacterEscape [U] :: - ControlEscape - c ControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\1/u; - - -//// [u-invalid-legacy-octal-escape.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Legacy Octal Escape Sequence not supported with `u` flag -info: | - The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective - of the presence of Annex B extensions. - - CharacterEscape [U] :: - ControlEscape - c ControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] -negative: - phase: parse - type: SyntaxError ----*/ -/\1/u; diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.symbols b/tests/baselines/reference/u-invalid-legacy-octal-escape.symbols deleted file mode 100644 index 2853416fa587f..0000000000000 --- a/tests/baselines/reference/u-invalid-legacy-octal-escape.symbols +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts] //// - -=== u-invalid-legacy-octal-escape.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Legacy Octal Escape Sequence not supported with `u` flag -info: | - The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective - of the presence of Annex B extensions. - - CharacterEscape [U] :: - ControlEscape - c ControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\1/u; - diff --git a/tests/baselines/reference/u-invalid-legacy-octal-escape.types b/tests/baselines/reference/u-invalid-legacy-octal-escape.types deleted file mode 100644 index 06594d5eb0e3f..0000000000000 --- a/tests/baselines/reference/u-invalid-legacy-octal-escape.types +++ /dev/null @@ -1,29 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts] //// - -=== u-invalid-legacy-octal-escape.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Legacy Octal Escape Sequence not supported with `u` flag -info: | - The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective - of the presence of Annex B extensions. - - CharacterEscape [U] :: - ControlEscape - c ControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\1/u; ->/\1/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt deleted file mode 100644 index acd1f68ef720c..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.errors.txt +++ /dev/null @@ -1,41 +0,0 @@ -u-invalid-non-empty-class-ranges-no-dash-a.ts(31,3): error TS1514: A character class range must not be bounded by another character class. -u-invalid-non-empty-class-ranges-no-dash-a.ts(31,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-non-empty-class-ranges-no-dash-a.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-pattern-semantics - es6id: 21.2.2 - description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("A" parameter) - info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /[\d-a]/u; - ~~ -!!! error TS1514: A character class range must not be bounded by another character class. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js deleted file mode 100644 index 94ecadaf846aa..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.js +++ /dev/null @@ -1,66 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts] //// - -//// [u-invalid-non-empty-class-ranges-no-dash-a.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("A" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\d-a]/u; - - -//// [u-invalid-non-empty-class-ranges-no-dash-a.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("A" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ -/[\d-a]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols deleted file mode 100644 index f9ec5e59d57b5..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts] //// - -=== u-invalid-non-empty-class-ranges-no-dash-a.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("A" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\d-a]/u; - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types deleted file mode 100644 index 48ede2ea5d95f..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-a.types +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts] //// - -=== u-invalid-non-empty-class-ranges-no-dash-a.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("A" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\d-a]/u; ->/[\d-a]/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt deleted file mode 100644 index c304ab12be65c..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.errors.txt +++ /dev/null @@ -1,44 +0,0 @@ -u-invalid-non-empty-class-ranges-no-dash-ab.ts(31,3): error TS1514: A character class range must not be bounded by another character class. -u-invalid-non-empty-class-ranges-no-dash-ab.ts(31,6): error TS1514: A character class range must not be bounded by another character class. -u-invalid-non-empty-class-ranges-no-dash-ab.ts(31,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-non-empty-class-ranges-no-dash-ab.ts (3 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-pattern-semantics - es6id: 21.2.2 - description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - (both "A" and "B" parameters) - info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /[\s-\d]/u; - ~~ -!!! error TS1514: A character class range must not be bounded by another character class. - ~~ -!!! error TS1514: A character class range must not be bounded by another character class. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js deleted file mode 100644 index e07121be165ce..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.js +++ /dev/null @@ -1,66 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts] //// - -//// [u-invalid-non-empty-class-ranges-no-dash-ab.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - (both "A" and "B" parameters) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\s-\d]/u; - - -//// [u-invalid-non-empty-class-ranges-no-dash-ab.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - (both "A" and "B" parameters) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ -/[\s-\d]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols deleted file mode 100644 index 60fa272ae4030..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts] //// - -=== u-invalid-non-empty-class-ranges-no-dash-ab.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - (both "A" and "B" parameters) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\s-\d]/u; - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types deleted file mode 100644 index b200786f11a67..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-ab.types +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts] //// - -=== u-invalid-non-empty-class-ranges-no-dash-ab.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - (both "A" and "B" parameters) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\s-\d]/u; ->/[\s-\d]/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt deleted file mode 100644 index 01098c7fd1bf5..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.errors.txt +++ /dev/null @@ -1,41 +0,0 @@ -u-invalid-non-empty-class-ranges-no-dash-b.ts(31,5): error TS1514: A character class range must not be bounded by another character class. -u-invalid-non-empty-class-ranges-no-dash-b.ts(31,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-non-empty-class-ranges-no-dash-b.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-pattern-semantics - es6id: 21.2.2 - description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("B" parameter) - info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /[%-\d]/u; - ~~ -!!! error TS1514: A character class range must not be bounded by another character class. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js deleted file mode 100644 index a6b24ef02fed1..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.js +++ /dev/null @@ -1,66 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts] //// - -//// [u-invalid-non-empty-class-ranges-no-dash-b.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("B" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[%-\d]/u; - - -//// [u-invalid-non-empty-class-ranges-no-dash-b.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("B" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ -/[%-\d]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols deleted file mode 100644 index 04b6638ba2f60..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.symbols +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts] //// - -=== u-invalid-non-empty-class-ranges-no-dash-b.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("B" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[%-\d]/u; - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types deleted file mode 100644 index 6d22cb99de03f..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges-no-dash-b.types +++ /dev/null @@ -1,36 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts] //// - -=== u-invalid-non-empty-class-ranges-no-dash-b.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("B" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[%-\d]/u; ->/[%-\d]/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt b/tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt deleted file mode 100644 index 21c92af0735b2..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -u-invalid-non-empty-class-ranges.ts(30,5): error TS1514: A character class range must not be bounded by another character class. -u-invalid-non-empty-class-ranges.ts(30,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-non-empty-class-ranges.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-pattern-semantics - es6id: 21.2.2 - description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /[--\d]/u; - ~~ -!!! error TS1514: A character class range must not be bounded by another character class. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.js b/tests/baselines/reference/u-invalid-non-empty-class-ranges.js deleted file mode 100644 index 66502b23848c9..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges.js +++ /dev/null @@ -1,64 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts] //// - -//// [u-invalid-non-empty-class-ranges.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[--\d]/u; - - -//// [u-invalid-non-empty-class-ranges.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ -/[--\d]/u; diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols b/tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols deleted file mode 100644 index 4c96ef0712e0c..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges.symbols +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts] //// - -=== u-invalid-non-empty-class-ranges.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[--\d]/u; - diff --git a/tests/baselines/reference/u-invalid-non-empty-class-ranges.types b/tests/baselines/reference/u-invalid-non-empty-class-ranges.types deleted file mode 100644 index c917a91fafc52..0000000000000 --- a/tests/baselines/reference/u-invalid-non-empty-class-ranges.types +++ /dev/null @@ -1,35 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts] //// - -=== u-invalid-non-empty-class-ranges.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[--\d]/u; ->/[--\d]/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt b/tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt deleted file mode 100644 index bb995f3ec0477..0000000000000 --- a/tests/baselines/reference/u-invalid-oob-decimal-escape.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-oob-decimal-escape.ts(19,3): error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. -u-invalid-oob-decimal-escape.ts(19,5): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-oob-decimal-escape.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-pattern-semantics - es6id: 21.2.2 - description: Out-of-bounds decimal escapes - info: | - 1. Evaluate DecimalEscape to obtain an integer n. - 2. If n>NcapturingParens, throw a SyntaxError exception. - - When the "unicode" flag is set, this algorithm is honored irrespective of - the presence of Annex B extensions. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\8/u; - ~ -!!! error TS1532: Decimal escapes are invalid when there are no capturing groups in a regular expression. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.js b/tests/baselines/reference/u-invalid-oob-decimal-escape.js deleted file mode 100644 index 8ba838cf3f579..0000000000000 --- a/tests/baselines/reference/u-invalid-oob-decimal-escape.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts] //// - -//// [u-invalid-oob-decimal-escape.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: Out-of-bounds decimal escapes -info: | - 1. Evaluate DecimalEscape to obtain an integer n. - 2. If n>NcapturingParens, throw a SyntaxError exception. - - When the "unicode" flag is set, this algorithm is honored irrespective of - the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\8/u; - - -//// [u-invalid-oob-decimal-escape.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: Out-of-bounds decimal escapes -info: | - 1. Evaluate DecimalEscape to obtain an integer n. - 2. If n>NcapturingParens, throw a SyntaxError exception. - - When the "unicode" flag is set, this algorithm is honored irrespective of - the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ -/\8/u; diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.symbols b/tests/baselines/reference/u-invalid-oob-decimal-escape.symbols deleted file mode 100644 index cb18b36eed167..0000000000000 --- a/tests/baselines/reference/u-invalid-oob-decimal-escape.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts] //// - -=== u-invalid-oob-decimal-escape.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: Out-of-bounds decimal escapes -info: | - 1. Evaluate DecimalEscape to obtain an integer n. - 2. If n>NcapturingParens, throw a SyntaxError exception. - - When the "unicode" flag is set, this algorithm is honored irrespective of - the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\8/u; - diff --git a/tests/baselines/reference/u-invalid-oob-decimal-escape.types b/tests/baselines/reference/u-invalid-oob-decimal-escape.types deleted file mode 100644 index 78df3f939fad2..0000000000000 --- a/tests/baselines/reference/u-invalid-oob-decimal-escape.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts] //// - -=== u-invalid-oob-decimal-escape.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: Out-of-bounds decimal escapes -info: | - 1. Evaluate DecimalEscape to obtain an integer n. - 2. If n>NcapturingParens, throw a SyntaxError exception. - - When the "unicode" flag is set, this algorithm is honored irrespective of - the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\8/u; ->/\8/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.errors.txt b/tests/baselines/reference/u-invalid-optional-lookahead.errors.txt deleted file mode 100644 index 302776048e1ba..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookahead.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-optional-lookahead.ts(19,8): error TS1505: There is nothing available for repetition. -u-invalid-optional-lookahead.ts(19,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-optional-lookahead.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - es6id: B.1.4 - description: Quantifiable assertions disallowed with `u` flag - info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?=.)?/u; - ~ -!!! error TS1505: There is nothing available for repetition. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.js b/tests/baselines/reference/u-invalid-optional-lookahead.js deleted file mode 100644 index 85fd16ec2e201..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookahead.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts] //// - -//// [u-invalid-optional-lookahead.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?=.)?/u; - - -//// [u-invalid-optional-lookahead.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ -/.(?=.)?/u; diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.symbols b/tests/baselines/reference/u-invalid-optional-lookahead.symbols deleted file mode 100644 index 7474832465ff3..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookahead.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts] //// - -=== u-invalid-optional-lookahead.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?=.)?/u; - diff --git a/tests/baselines/reference/u-invalid-optional-lookahead.types b/tests/baselines/reference/u-invalid-optional-lookahead.types deleted file mode 100644 index 1b7b0dc2af70e..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookahead.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts] //// - -=== u-invalid-optional-lookahead.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?=.)?/u; ->/.(?=.)?/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt deleted file mode 100644 index 8f03d851b4343..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookbehind.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-optional-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. -u-invalid-optional-lookbehind.ts(19,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-optional-lookbehind.ts (2 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?<=.)?/u; - ~ -!!! error TS1505: There is nothing available for repetition. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.js b/tests/baselines/reference/u-invalid-optional-lookbehind.js deleted file mode 100644 index 6c65078e3b22e..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookbehind.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts] //// - -//// [u-invalid-optional-lookbehind.ts] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/u; - - -//// [u-invalid-optional-lookbehind.js] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ -/.(?<=.)?/u; diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.symbols b/tests/baselines/reference/u-invalid-optional-lookbehind.symbols deleted file mode 100644 index 911be6862522a..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookbehind.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts] //// - -=== u-invalid-optional-lookbehind.ts === - -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/u; - diff --git a/tests/baselines/reference/u-invalid-optional-lookbehind.types b/tests/baselines/reference/u-invalid-optional-lookbehind.types deleted file mode 100644 index 595db0378f4e5..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-lookbehind.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts] //// - -=== u-invalid-optional-lookbehind.ts === -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/u; ->/.(?<=.)?/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt b/tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt deleted file mode 100644 index 31b748f78a0ee..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-negative-lookahead.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-optional-negative-lookahead.ts(19,8): error TS1505: There is nothing available for repetition. -u-invalid-optional-negative-lookahead.ts(19,10): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-optional-negative-lookahead.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - es6id: B.1.4 - description: Quantifiable assertions disallowed with `u` flag - info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?!.)?/u; - ~ -!!! error TS1505: There is nothing available for repetition. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.js b/tests/baselines/reference/u-invalid-optional-negative-lookahead.js deleted file mode 100644 index fdcf77ae12d36..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-negative-lookahead.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts] //// - -//// [u-invalid-optional-negative-lookahead.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.)?/u; - - -//// [u-invalid-optional-negative-lookahead.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ -/.(?!.)?/u; diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols b/tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols deleted file mode 100644 index 77cbc94f646ad..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-negative-lookahead.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts] //// - -=== u-invalid-optional-negative-lookahead.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.)?/u; - diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookahead.types b/tests/baselines/reference/u-invalid-optional-negative-lookahead.types deleted file mode 100644 index c611c82e6b7fc..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-negative-lookahead.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts] //// - -=== u-invalid-optional-negative-lookahead.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.)?/u; ->/.(?!.)?/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt deleted file mode 100644 index 59a7fa2c6eafc..0000000000000 --- a/tests/baselines/reference/u-invalid-optional-negative-lookbehind.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-optional-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. -u-invalid-optional-negative-lookbehind.ts(19,11): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-optional-negative-lookbehind.ts (2 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?/.(?/.(?=.){2,3}/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-range-lookbehind.errors.txt deleted file mode 100644 index a527b8cd65a1b..0000000000000 --- a/tests/baselines/reference/u-invalid-range-lookbehind.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-range-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. -u-invalid-range-lookbehind.ts(19,15): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-range-lookbehind.ts (2 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?<=.){2,3}/u; - ~~~~~ -!!! error TS1505: There is nothing available for repetition. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.js b/tests/baselines/reference/u-invalid-range-lookbehind.js deleted file mode 100644 index 0dc127b0794ed..0000000000000 --- a/tests/baselines/reference/u-invalid-range-lookbehind.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts] //// - -//// [u-invalid-range-lookbehind.ts] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.){2,3}/u; - - -//// [u-invalid-range-lookbehind.js] -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ -/.(?<=.){2,3}/u; diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.symbols b/tests/baselines/reference/u-invalid-range-lookbehind.symbols deleted file mode 100644 index 1a60a4c63dce1..0000000000000 --- a/tests/baselines/reference/u-invalid-range-lookbehind.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts] //// - -=== u-invalid-range-lookbehind.ts === - -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.){2,3}/u; - diff --git a/tests/baselines/reference/u-invalid-range-lookbehind.types b/tests/baselines/reference/u-invalid-range-lookbehind.types deleted file mode 100644 index 131e23e6cf4a1..0000000000000 --- a/tests/baselines/reference/u-invalid-range-lookbehind.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-lookbehind.ts] //// - -=== u-invalid-range-lookbehind.ts === -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.){2,3}/u; ->/.(?<=.){2,3}/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt b/tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt deleted file mode 100644 index 9d486247eb8d0..0000000000000 --- a/tests/baselines/reference/u-invalid-range-negative-lookahead.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-range-negative-lookahead.ts(19,8): error TS1505: There is nothing available for repetition. -u-invalid-range-negative-lookahead.ts(19,14): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-range-negative-lookahead.ts (2 errors) ==== - // Copyright (C) 2016 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - es6id: B.1.4 - description: Quantifiable assertions disallowed with `u` flag - info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?!.){2,3}/u; - ~~~~~ -!!! error TS1505: There is nothing available for repetition. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.js b/tests/baselines/reference/u-invalid-range-negative-lookahead.js deleted file mode 100644 index a76869977c434..0000000000000 --- a/tests/baselines/reference/u-invalid-range-negative-lookahead.js +++ /dev/null @@ -1,42 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts] //// - -//// [u-invalid-range-negative-lookahead.ts] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.){2,3}/u; - - -//// [u-invalid-range-negative-lookahead.js] -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ -/.(?!.){2,3}/u; diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.symbols b/tests/baselines/reference/u-invalid-range-negative-lookahead.symbols deleted file mode 100644 index d97d8bf9c9bb6..0000000000000 --- a/tests/baselines/reference/u-invalid-range-negative-lookahead.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts] //// - -=== u-invalid-range-negative-lookahead.ts === - -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.){2,3}/u; - diff --git a/tests/baselines/reference/u-invalid-range-negative-lookahead.types b/tests/baselines/reference/u-invalid-range-negative-lookahead.types deleted file mode 100644 index 4548e5b2e38a6..0000000000000 --- a/tests/baselines/reference/u-invalid-range-negative-lookahead.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-invalid-range-negative-lookahead.ts] //// - -=== u-invalid-range-negative-lookahead.ts === -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.){2,3}/u; ->/.(?!.){2,3}/u : RegExp - diff --git a/tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt b/tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt deleted file mode 100644 index bf2389105956d..0000000000000 --- a/tests/baselines/reference/u-invalid-range-negative-lookbehind.errors.txt +++ /dev/null @@ -1,29 +0,0 @@ -u-invalid-range-negative-lookbehind.ts(19,9): error TS1505: There is nothing available for repetition. -u-invalid-range-negative-lookbehind.ts(19,15): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-invalid-range-negative-lookbehind.ts (2 errors) ==== - // Copyright (C) 2018 Igalia S. L. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - /*--- - esid: sec-regular-expressions-patterns - description: Lookbehinds are not treated as a QuantifiableAssertion - info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) - negative: - phase: parse - type: SyntaxError - ---*/ - - - /.(?/.(? 1114111. - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\u{110000}/u; - ~~~~~~ -!!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-unicode-esc-bounds.js b/tests/baselines/reference/u-unicode-esc-bounds.js deleted file mode 100644 index 13a15d044bac8..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-bounds.js +++ /dev/null @@ -1,41 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts] //// - -//// [u-unicode-esc-bounds.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence -es6id: 21.2.1.1 -info: | - 21.2.1.1 Static Semantics: Early Errors - - RegExpUnicodeEscapeSequence :: u{ HexDigits } - - - It is a Syntax Error if the MV of HexDigits > 1114111. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{110000}/u; - - -//// [u-unicode-esc-bounds.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence -es6id: 21.2.1.1 -info: | - 21.2.1.1 Static Semantics: Early Errors - - RegExpUnicodeEscapeSequence :: u{ HexDigits } - - - It is a Syntax Error if the MV of HexDigits > 1114111. -negative: - phase: parse - type: SyntaxError ----*/ -/\u{110000}/u; diff --git a/tests/baselines/reference/u-unicode-esc-bounds.symbols b/tests/baselines/reference/u-unicode-esc-bounds.symbols deleted file mode 100644 index ca40441434186..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-bounds.symbols +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts] //// - -=== u-unicode-esc-bounds.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence -es6id: 21.2.1.1 -info: | - 21.2.1.1 Static Semantics: Early Errors - - RegExpUnicodeEscapeSequence :: u{ HexDigits } - - - It is a Syntax Error if the MV of HexDigits > 1114111. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{110000}/u; - diff --git a/tests/baselines/reference/u-unicode-esc-bounds.types b/tests/baselines/reference/u-unicode-esc-bounds.types deleted file mode 100644 index f330eb7ed92a5..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-bounds.types +++ /dev/null @@ -1,24 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-bounds.ts] //// - -=== u-unicode-esc-bounds.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Out-of-range value of hexadecimal digits in UnicodeEscapeSequence -es6id: 21.2.1.1 -info: | - 21.2.1.1 Static Semantics: Early Errors - - RegExpUnicodeEscapeSequence :: u{ HexDigits } - - - It is a Syntax Error if the MV of HexDigits > 1114111. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{110000}/u; ->/\u{110000}/u : RegExp - diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.errors.txt b/tests/baselines/reference/u-unicode-esc-non-hex.errors.txt deleted file mode 100644 index bfea4bca62853..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-non-hex.errors.txt +++ /dev/null @@ -1,27 +0,0 @@ -u-unicode-esc-non-hex.ts(14,6): error TS1199: Unterminated Unicode escape sequence. -u-unicode-esc-non-hex.ts(14,7): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? -u-unicode-esc-non-hex.ts(14,9): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== u-unicode-esc-non-hex.ts (3 errors) ==== - // Copyright (C) 2015 the V8 project authors. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - description: > - Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence - es6id: 21.2.1 - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\u{1,}/u; - -!!! error TS1199: Unterminated Unicode escape sequence. - ~ -!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.js b/tests/baselines/reference/u-unicode-esc-non-hex.js deleted file mode 100644 index 070691621dfbf..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-non-hex.js +++ /dev/null @@ -1,31 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts] //// - -//// [u-unicode-esc-non-hex.ts] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence -es6id: 21.2.1 -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1,}/u; - - -//// [u-unicode-esc-non-hex.js] -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: > - Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence -es6id: 21.2.1 -negative: - phase: parse - type: SyntaxError ----*/ -/\u{1,}/u; diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.symbols b/tests/baselines/reference/u-unicode-esc-non-hex.symbols deleted file mode 100644 index ec77d08b0e9f2..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-non-hex.symbols +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts] //// - -=== u-unicode-esc-non-hex.ts === - -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence -es6id: 21.2.1 -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1,}/u; - diff --git a/tests/baselines/reference/u-unicode-esc-non-hex.types b/tests/baselines/reference/u-unicode-esc-non-hex.types deleted file mode 100644 index c197dbc01e423..0000000000000 --- a/tests/baselines/reference/u-unicode-esc-non-hex.types +++ /dev/null @@ -1,19 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts] //// - -=== u-unicode-esc-non-hex.ts === -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence -es6id: 21.2.1 -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1,}/u; ->/\u{1,}/u : RegExp - diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.errors.txt b/tests/baselines/reference/unicode-escape-nls-err-double.errors.txt deleted file mode 100644 index bfa63b383543c..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-double.errors.txt +++ /dev/null @@ -1,55 +0,0 @@ -unicode-escape-nls-err-double.ts(48,7): error TS1199: Unterminated Unicode escape sequence. - - -==== unicode-escape-nls-err-double.ts (1 errors) ==== - // Copyright (C) 2017 Valerie Young. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-StringLiteral - description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) - info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - DoubleStringCharacters:: - DoubleStringCharacter DoubleStringCharacters opt - - DoubleStringCharacter:: - SourceCharacter but not one of " or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - features: [numeric-separator-literal] - negative: - phase: parse - type: SyntaxError - ---*/ - - - "\u{1F_639}" - -!!! error TS1199: Unterminated Unicode escape sequence. - \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.js b/tests/baselines/reference/unicode-escape-nls-err-double.js deleted file mode 100644 index f3afad66c76de..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-double.js +++ /dev/null @@ -1,99 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts] //// - -//// [unicode-escape-nls-err-double.ts] -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - DoubleStringCharacters:: - DoubleStringCharacter DoubleStringCharacters opt - - DoubleStringCharacter:: - SourceCharacter but not one of " or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u{1F_639}" - - -//// [unicode-escape-nls-err-double.js] -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - DoubleStringCharacters:: - DoubleStringCharacter DoubleStringCharacters opt - - DoubleStringCharacter:: - SourceCharacter but not one of " or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ -"\u{1F_639}"; diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.symbols b/tests/baselines/reference/unicode-escape-nls-err-double.symbols deleted file mode 100644 index 9f7ac04de9967..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-double.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts] //// - -=== unicode-escape-nls-err-double.ts === - -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - DoubleStringCharacters:: - DoubleStringCharacter DoubleStringCharacters opt - - DoubleStringCharacter:: - SourceCharacter but not one of " or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u{1F_639}" - diff --git a/tests/baselines/reference/unicode-escape-nls-err-double.types b/tests/baselines/reference/unicode-escape-nls-err-double.types deleted file mode 100644 index c9dd48aa7d89f..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-double.types +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts] //// - -=== unicode-escape-nls-err-double.ts === -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - DoubleStringCharacters:: - DoubleStringCharacter DoubleStringCharacters opt - - DoubleStringCharacter:: - SourceCharacter but not one of " or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u{1F_639}" ->"\u{1F_639}" : "\\u{1F_639}" - diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.errors.txt b/tests/baselines/reference/unicode-escape-nls-err-single.errors.txt deleted file mode 100644 index 0c42d15f6eac4..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-single.errors.txt +++ /dev/null @@ -1,55 +0,0 @@ -unicode-escape-nls-err-single.ts(48,7): error TS1199: Unterminated Unicode escape sequence. - - -==== unicode-escape-nls-err-single.ts (1 errors) ==== - // Copyright (C) 2017 Valerie Young. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-StringLiteral - description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) - info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - SingleStringCharacters:: - SingleStringCharacterSingleStringCharactersopt - - SingleStringCharacter:: - SourceCharacterbut not one of ' or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - features: [numeric-separator-literal] - negative: - phase: parse - type: SyntaxError - ---*/ - - - '\u{1F_639}'; - -!!! error TS1199: Unterminated Unicode escape sequence. - \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.js b/tests/baselines/reference/unicode-escape-nls-err-single.js deleted file mode 100644 index a27556af7754b..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-single.js +++ /dev/null @@ -1,99 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts] //// - -//// [unicode-escape-nls-err-single.ts] -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - SingleStringCharacters:: - SingleStringCharacterSingleStringCharactersopt - - SingleStringCharacter:: - SourceCharacterbut not one of ' or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u{1F_639}'; - - -//// [unicode-escape-nls-err-single.js] -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - SingleStringCharacters:: - SingleStringCharacterSingleStringCharactersopt - - SingleStringCharacter:: - SourceCharacterbut not one of ' or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ -'\u{1F_639}'; diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.symbols b/tests/baselines/reference/unicode-escape-nls-err-single.symbols deleted file mode 100644 index ae00d73eb1e18..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-single.symbols +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts] //// - -=== unicode-escape-nls-err-single.ts === - -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - SingleStringCharacters:: - SingleStringCharacterSingleStringCharactersopt - - SingleStringCharacter:: - SourceCharacterbut not one of ' or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u{1F_639}'; - diff --git a/tests/baselines/reference/unicode-escape-nls-err-single.types b/tests/baselines/reference/unicode-escape-nls-err-single.types deleted file mode 100644 index 292f0b5d141a4..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err-single.types +++ /dev/null @@ -1,53 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts] //// - -=== unicode-escape-nls-err-single.ts === -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - SingleStringCharacters:: - SingleStringCharacterSingleStringCharactersopt - - SingleStringCharacter:: - SourceCharacterbut not one of ' or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u{1F_639}'; ->'\u{1F_639}' : "\\u{1F_639}" - diff --git a/tests/baselines/reference/unicode-escape-nls-err.errors.txt b/tests/baselines/reference/unicode-escape-nls-err.errors.txt deleted file mode 100644 index 66b9d81859bbf..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err.errors.txt +++ /dev/null @@ -1,85 +0,0 @@ -unicode-escape-nls-err.ts(72,7): error TS1199: Unterminated Unicode escape sequence. -unicode-escape-nls-err.ts(72,11): error TS1506: Unexpected '}'. Did you mean to escape it with backslash? -unicode-escape-nls-err.ts(72,13): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - - -==== unicode-escape-nls-err.ts (3 errors) ==== - // Copyright (C) 2017 Valerie Young. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-Pattern - description: NumericLiteralSeperator disallowed in unicode CodePoint sequence - info: | - Pattern[U, N]:: - Disjunction[?U, ?N] - - Disjunction[U, N]:: - Alternative[?U, ?N] - Alternative[?U, ?N]|Disjunction[?U, ?N] - - Alternative[U, N]:: - [empty] - Alternative[?U, ?N]Term[?U, ?N] - - Term[U, N]:: - Assertion[?U, ?N] - Atom[?U, ?N] - Atom[?U, ?N]Quantifier - - Atom[U, N]:: - PatternCharacter - . - \AtomEscape[?U, ?N] - CharacterClass[?U] - (GroupSpecifier[?U]Disjunction[?U, ?N]) - (?:Disjunction[?U, ?N]) - - AtomEscape[U, N]:: - DecimalEscape - CharacterClassEscape[?U] - CharacterEscape[?U] - [+N]kGroupName[?U] - - CharacterEscape[U]:: - ControlEscape - cControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - - RegExpUnicodeEscapeSequence[U]:: - [+U]uLeadSurrogate\uTrailSurrogate - [+U]uLeadSurrogate - [+U]uTrailSurrogate - [+U]uNonSurrogate - [~U]uHex4Digits - [+U]u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - features: [numeric-separator-literal] - negative: - phase: parse - type: SyntaxError - ---*/ - - - /\u{1F_639}/u; - -!!! error TS1199: Unterminated Unicode escape sequence. - ~ -!!! error TS1506: Unexpected '}'. Did you mean to escape it with backslash? - ~ -!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. - \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-nls-err.js b/tests/baselines/reference/unicode-escape-nls-err.js deleted file mode 100644 index 1708ee5b767ac..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err.js +++ /dev/null @@ -1,147 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts] //// - -//// [unicode-escape-nls-err.ts] -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-Pattern -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence -info: | - Pattern[U, N]:: - Disjunction[?U, ?N] - - Disjunction[U, N]:: - Alternative[?U, ?N] - Alternative[?U, ?N]|Disjunction[?U, ?N] - - Alternative[U, N]:: - [empty] - Alternative[?U, ?N]Term[?U, ?N] - - Term[U, N]:: - Assertion[?U, ?N] - Atom[?U, ?N] - Atom[?U, ?N]Quantifier - - Atom[U, N]:: - PatternCharacter - . - \AtomEscape[?U, ?N] - CharacterClass[?U] - (GroupSpecifier[?U]Disjunction[?U, ?N]) - (?:Disjunction[?U, ?N]) - - AtomEscape[U, N]:: - DecimalEscape - CharacterClassEscape[?U] - CharacterEscape[?U] - [+N]kGroupName[?U] - - CharacterEscape[U]:: - ControlEscape - cControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - - RegExpUnicodeEscapeSequence[U]:: - [+U]uLeadSurrogate\uTrailSurrogate - [+U]uLeadSurrogate - [+U]uTrailSurrogate - [+U]uNonSurrogate - [~U]uHex4Digits - [+U]u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1F_639}/u; - - -//// [unicode-escape-nls-err.js] -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-Pattern -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence -info: | - Pattern[U, N]:: - Disjunction[?U, ?N] - - Disjunction[U, N]:: - Alternative[?U, ?N] - Alternative[?U, ?N]|Disjunction[?U, ?N] - - Alternative[U, N]:: - [empty] - Alternative[?U, ?N]Term[?U, ?N] - - Term[U, N]:: - Assertion[?U, ?N] - Atom[?U, ?N] - Atom[?U, ?N]Quantifier - - Atom[U, N]:: - PatternCharacter - . - \AtomEscape[?U, ?N] - CharacterClass[?U] - (GroupSpecifier[?U]Disjunction[?U, ?N]) - (?:Disjunction[?U, ?N]) - - AtomEscape[U, N]:: - DecimalEscape - CharacterClassEscape[?U] - CharacterEscape[?U] - [+N]kGroupName[?U] - - CharacterEscape[U]:: - ControlEscape - cControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - - RegExpUnicodeEscapeSequence[U]:: - [+U]uLeadSurrogate\uTrailSurrogate - [+U]uLeadSurrogate - [+U]uTrailSurrogate - [+U]uNonSurrogate - [~U]uHex4Digits - [+U]u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ -/\u{1F_639}/u; diff --git a/tests/baselines/reference/unicode-escape-nls-err.symbols b/tests/baselines/reference/unicode-escape-nls-err.symbols deleted file mode 100644 index 3e19c3e7b3470..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err.symbols +++ /dev/null @@ -1,77 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts] //// - -=== unicode-escape-nls-err.ts === - -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-Pattern -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence -info: | - Pattern[U, N]:: - Disjunction[?U, ?N] - - Disjunction[U, N]:: - Alternative[?U, ?N] - Alternative[?U, ?N]|Disjunction[?U, ?N] - - Alternative[U, N]:: - [empty] - Alternative[?U, ?N]Term[?U, ?N] - - Term[U, N]:: - Assertion[?U, ?N] - Atom[?U, ?N] - Atom[?U, ?N]Quantifier - - Atom[U, N]:: - PatternCharacter - . - \AtomEscape[?U, ?N] - CharacterClass[?U] - (GroupSpecifier[?U]Disjunction[?U, ?N]) - (?:Disjunction[?U, ?N]) - - AtomEscape[U, N]:: - DecimalEscape - CharacterClassEscape[?U] - CharacterEscape[?U] - [+N]kGroupName[?U] - - CharacterEscape[U]:: - ControlEscape - cControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - - RegExpUnicodeEscapeSequence[U]:: - [+U]uLeadSurrogate\uTrailSurrogate - [+U]uLeadSurrogate - [+U]uTrailSurrogate - [+U]uNonSurrogate - [~U]uHex4Digits - [+U]u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1F_639}/u; - diff --git a/tests/baselines/reference/unicode-escape-nls-err.types b/tests/baselines/reference/unicode-escape-nls-err.types deleted file mode 100644 index 6287b37f025ed..0000000000000 --- a/tests/baselines/reference/unicode-escape-nls-err.types +++ /dev/null @@ -1,77 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts] //// - -=== unicode-escape-nls-err.ts === -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-Pattern -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence -info: | - Pattern[U, N]:: - Disjunction[?U, ?N] - - Disjunction[U, N]:: - Alternative[?U, ?N] - Alternative[?U, ?N]|Disjunction[?U, ?N] - - Alternative[U, N]:: - [empty] - Alternative[?U, ?N]Term[?U, ?N] - - Term[U, N]:: - Assertion[?U, ?N] - Atom[?U, ?N] - Atom[?U, ?N]Quantifier - - Atom[U, N]:: - PatternCharacter - . - \AtomEscape[?U, ?N] - CharacterClass[?U] - (GroupSpecifier[?U]Disjunction[?U, ?N]) - (?:Disjunction[?U, ?N]) - - AtomEscape[U, N]:: - DecimalEscape - CharacterClassEscape[?U] - CharacterEscape[?U] - [+N]kGroupName[?U] - - CharacterEscape[U]:: - ControlEscape - cControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - - RegExpUnicodeEscapeSequence[U]:: - [+U]uLeadSurrogate\uTrailSurrogate - [+U]uLeadSurrogate - [+U]uTrailSurrogate - [+U]uNonSurrogate - [~U]uHex4Digits - [+U]u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1F_639}/u; ->/\u{1F_639}/u : RegExp - diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt b/tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt deleted file mode 100644 index c5eae25e663a9..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-double.errors.txt +++ /dev/null @@ -1,52 +0,0 @@ -unicode-escape-no-hex-err-double.ts(45,4): error TS1125: Hexadecimal digit expected. - - -==== unicode-escape-no-hex-err-double.ts (1 errors) ==== - // Copyright (C) 2020 Alexey Shvayka. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-StringLiteral - description: > - \u is at the end of string, Hex4Digits is required. - info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - DoubleStringCharacters :: - DoubleStringCharacter DoubleStringCharacters_opt - - DoubleStringCharacter :: - SourceCharacter but not one of " or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - ---*/ - - - "\u" - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.js b/tests/baselines/reference/unicode-escape-no-hex-err-double.js deleted file mode 100644 index 58306c7e1351a..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-double.js +++ /dev/null @@ -1,93 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts] //// - -//// [unicode-escape-no-hex-err-double.ts] -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - DoubleStringCharacters :: - DoubleStringCharacter DoubleStringCharacters_opt - - DoubleStringCharacter :: - SourceCharacter but not one of " or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u" - - -//// [unicode-escape-no-hex-err-double.js] -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - DoubleStringCharacters :: - DoubleStringCharacter DoubleStringCharacters_opt - - DoubleStringCharacter :: - SourceCharacter but not one of " or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ -"\u"; diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.symbols b/tests/baselines/reference/unicode-escape-no-hex-err-double.symbols deleted file mode 100644 index 71af11afa4613..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-double.symbols +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts] //// - -=== unicode-escape-no-hex-err-double.ts === - -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - DoubleStringCharacters :: - DoubleStringCharacter DoubleStringCharacters_opt - - DoubleStringCharacter :: - SourceCharacter but not one of " or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u" - diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-double.types b/tests/baselines/reference/unicode-escape-no-hex-err-double.types deleted file mode 100644 index d0fa202193362..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-double.types +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts] //// - -=== unicode-escape-no-hex-err-double.ts === -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - DoubleStringCharacters :: - DoubleStringCharacter DoubleStringCharacters_opt - - DoubleStringCharacter :: - SourceCharacter but not one of " or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u" ->"\u" : "\\u" - diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt b/tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt deleted file mode 100644 index 35916b40b2648..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-single.errors.txt +++ /dev/null @@ -1,52 +0,0 @@ -unicode-escape-no-hex-err-single.ts(45,4): error TS1125: Hexadecimal digit expected. - - -==== unicode-escape-no-hex-err-single.ts (1 errors) ==== - // Copyright (C) 2020 Alexey Shvayka. All rights reserved. - // This code is governed by the BSD license found in the LICENSE file. - - /*--- - esid: prod-StringLiteral - description: > - \u is at the end of string, Hex4Digits is required. - info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - SingleStringCharacters :: - SingleStringCharacter SingleStringCharacters_opt - - SingleStringCharacter :: - SourceCharacter but not one of ' or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - - negative: - phase: parse - type: SyntaxError - ---*/ - - - '\u' - -!!! error TS1125: Hexadecimal digit expected. - \ No newline at end of file diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.js b/tests/baselines/reference/unicode-escape-no-hex-err-single.js deleted file mode 100644 index a4705d9cbe7f0..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-single.js +++ /dev/null @@ -1,93 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts] //// - -//// [unicode-escape-no-hex-err-single.ts] -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - SingleStringCharacters :: - SingleStringCharacter SingleStringCharacters_opt - - SingleStringCharacter :: - SourceCharacter but not one of ' or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u' - - -//// [unicode-escape-no-hex-err-single.js] -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - SingleStringCharacters :: - SingleStringCharacter SingleStringCharacters_opt - - SingleStringCharacter :: - SourceCharacter but not one of ' or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ -'\u'; diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.symbols b/tests/baselines/reference/unicode-escape-no-hex-err-single.symbols deleted file mode 100644 index ee86d83b6604e..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-single.symbols +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts] //// - -=== unicode-escape-no-hex-err-single.ts === - -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - SingleStringCharacters :: - SingleStringCharacter SingleStringCharacters_opt - - SingleStringCharacter :: - SourceCharacter but not one of ' or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u' - diff --git a/tests/baselines/reference/unicode-escape-no-hex-err-single.types b/tests/baselines/reference/unicode-escape-no-hex-err-single.types deleted file mode 100644 index 10f618524003f..0000000000000 --- a/tests/baselines/reference/unicode-escape-no-hex-err-single.types +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts] //// - -=== unicode-escape-no-hex-err-single.ts === -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - SingleStringCharacters :: - SingleStringCharacter SingleStringCharacters_opt - - SingleStringCharacter :: - SourceCharacter but not one of ' or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u' ->'\u' : "\\u" - diff --git a/tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts deleted file mode 100644 index 72a0ab3cdf259..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/bigint-binary-invalid-digit.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Binary BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0b2n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts deleted file mode 100644 index 6a51c2e5623f6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/bigint-octal-invalid-digit.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Octal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0o9n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts b/tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts deleted file mode 100644 index 5b732f9112275..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/exponent-part.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - It is a Syntax Error if the NumericLiteralBase contains an ExponentPart. -esid: sec-numeric-literal-static-semantics-early-errors -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0e0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts deleted file mode 100644 index 84e285a810a01..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/hexadecimal-invalid-digit.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 Robin Templeton. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Hexadecimal BigInt literal containing an invalid digit -esid: prod-NumericLiteral -info: | - NumericLiteral :: - NumericLiteralBase NumericLiteralSuffix - - NumericLiteralBase :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - NumericLiteralSuffix :: n -negative: - phase: parse - type: SyntaxError -features: [BigInt] ----*/ - - -0xgn; diff --git a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts deleted file mode 100644 index c8c60d9f3f6b1..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-00n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -00n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts deleted file mode 100644 index e3c7bc650a5d6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-01n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -01n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts b/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts deleted file mode 100644 index a35f811a7bd16..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/legacy-octal-like-invalid-07n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in LegacyOctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - LegacyOctalIntegerLiteral - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -07n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts b/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts deleted file mode 100644 index eb5a8d27ab641..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -2017.8n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts b/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts deleted file mode 100644 index 52ade930ad9ed..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/mv-is-not-integer-dot-dds.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2017 The V8 Project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-numeric-literal-static-semantics-early-errors -description: > - It is a Syntax Error if the MV is not an integer. (dot decimalDigits) -info: | - Static Semantics: BigInt Value - - NumericLiteral :: NumericLiteralBase NumericLiteralSuffix - - 1. Assert: NumericLiteralSuffix is n. - 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt. - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt - . DecimalDigits -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -.0000000001n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts deleted file mode 100644 index ff59230c8d7aa..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-0008n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -0008n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts deleted file mode 100644 index 101d05d6a7497..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-012348n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -012348n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts deleted file mode 100644 index bbaeb606ac408..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-08n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -08n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts b/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts deleted file mode 100644 index b125414afc4b0..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/non-octal-like-invalid-09n.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteral -description: > - The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - - https://github.com/tc39/proposal-bigint/issues/208 - - NumericLiteral :: - DecimalBigIntegerLiteral - - DecimalBigIntegerLiteral :: - 0 BigIntLiteralSuffix - NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix -features: [BigInt] -negative: - phase: parse - type: SyntaxError ----*/ - - -09n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts deleted file mode 100644 index ae3b11d861a79..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-bd-nsl-bd-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts deleted file mode 100644 index 89517ae0052db..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-dunder-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0__0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts deleted file mode 100644 index 7ed0922fe95f1..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-bil-nsl-bd-err.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral (before n) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0b0_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts deleted file mode 100644 index 3dd98c34ad3e0..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-dds-dunder-err.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1__0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts deleted file mode 100644 index 5cf872fa36616..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dd-nsl-err.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts deleted file mode 100644 index d6cb436b74ea0..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-dds-dunder-err.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10__0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts deleted file mode 100644 index 2c9a867a4b256..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-dds-nsl-err.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -10_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts deleted file mode 100644 index f9f644b6eac40..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-hd-nsl-hd-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts deleted file mode 100644 index 381ce5e1cc1e9..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-dunder-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0__0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts deleted file mode 100644 index 8e1177a8d68d3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-hil-nsl-hd-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0x0_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts deleted file mode 100644 index cd2f5d958552f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-00-err.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -00_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts deleted file mode 100644 index 16d88c7344732..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-01-err.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -01_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts deleted file mode 100644 index b0789a0b52b76..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-07-err.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -07_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts deleted file mode 100644 index 8cbc9012c5720..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_0-err.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts deleted file mode 100644 index f6b5978808a1c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_1-err.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts deleted file mode 100644 index f964556364a41..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-lol-0_7-err.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_7n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts deleted file mode 100644 index f0027f898e392..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-08-err.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -08_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts deleted file mode 100644 index ac70e3fc38ad8..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-09-err.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -09_0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts deleted file mode 100644 index 92c2c539ded63..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_8-err.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_8n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts deleted file mode 100644 index 574cdc1c3feea..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nonoctal-0_9-err.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_9n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts deleted file mode 100644 index a29afc1f1b33a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-dunder-err.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0__0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts deleted file mode 100644 index 9cf743d7148e3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0_0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts deleted file mode 100644 index 220e9efef5f6f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-dunder-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0__0n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts deleted file mode 100644 index f5d694f883a3c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-nsl-od-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o0_n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts deleted file mode 100644 index 6b202c3b8a794..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-oil-od-nsl-od-err.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -0o_1n; diff --git a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts b/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts deleted file mode 100644 index a5f9c5f00dedb..0000000000000 --- a/tests/cases/conformance/test262/language/literals/bigint/numeric-separators/bigint-numeric-separator-literal-unicode-err.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteral :: - DecimalIntegerLiteral BigIntLiteralSuffix - NumericLiteralBase BigIntLiteralSuffix - - NumericLiteralBase :: - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - - BigIntLiteralSuffix :: n - - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError -features: [BigInt, numeric-separator-literal] ----*/ - - -1\u005F0123456789n; diff --git a/tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts b/tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts deleted file mode 100644 index a26af8ea8df92..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/7.8.3-1gs.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1gs -description: Strict Mode - octal extension(010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var y = 010; diff --git a/tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts b/tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts deleted file mode 100644 index 100a66409df4c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/7.8.3-2gs.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-2gs -description: > - Strict Mode - octal extension is forbidden in strict mode (after a - hex number is assigned to a variable) -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -var a; -a = 0x1; -a = 01; diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts deleted file mode 100644 index 535023502e863..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T1.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T1 -description: Checking if execution of "0x" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0x diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts deleted file mode 100644 index ab208db17e977..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.1_T2.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "HexIntegerLiteral :: 0(x/X) is incorrect" -es5id: 7.8.3_A6.1_T2 -description: Checking if execution of "0X" passes -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0X diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts deleted file mode 100644 index a5ee50a80393e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T1.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T1 -description: Checking if execution of "0xG" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xG diff --git a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts b/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts deleted file mode 100644 index a1691aa34c6a3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/S7.8.3_A6.2_T2.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: 0xG is incorrect -es5id: 7.8.3_A6.2_T2 -description: Checking if execution of "0xg" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -0xg diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts deleted file mode 100644 index 96d213179872a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-digit.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence containing an invalid digit -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b2; diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts deleted file mode 100644 index 1ee35a4771d55..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-leading.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence with a leading 0 -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -00b0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts deleted file mode 100644 index f72459b01daaa..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-truncated.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence without any digits -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0b; diff --git a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts b/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts deleted file mode 100644 index f6b7dc0b79882..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/binary-invalid-unicode.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Binary-integer-literal-like sequence expressed with unicode escape sequence -info: | - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigit :: one of - 0 1 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u00620; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts deleted file mode 100644 index 96c7d9d270df2..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integer-strict.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: LegacyOctalIntegerLiteral is not enabled in strict mode code -info: | - NumericLiteral :: - DecimalLiteral - BinaryIntegerLiteral - OctalIntegerLiteral - HexIntegerLiteral - LegacyOctalIntegerLiteral - - LegacyOctalIntegerLiteral :: - 0 OctalDigit - LegacyOctalIntegerLiteral OctalDigit - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -00; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts deleted file mode 100644 index 1f6029969597e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-000-strict.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-6-s -description: Strict Mode - octal extension (000) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -000; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts deleted file mode 100644 index 4f34110677eac..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-005-strict.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-7-s -description: Strict Mode - octal extension (005) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -005; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts deleted file mode 100644 index 2c53e521ca5ca..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-01-strict.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-3-s -description: Strict Mode - octal extension (01) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -01; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts deleted file mode 100644 index bab4a5ac4eb2e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-010-strict.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-1-s -description: Strict Mode - octal extension (010) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -010; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts deleted file mode 100644 index bae8dcc42948b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-06-strict.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-4-s -description: Strict Mode - octal extension (06) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -06; diff --git a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts deleted file mode 100644 index ad5fdc5cca524..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/legacy-octal-integery-07-strict.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.3-5-s -description: Strict Mode - octal extension (07) is forbidden in strict mode -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -07; diff --git a/tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts b/tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts deleted file mode 100644 index 552f36c0ae71c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/non-octal-decimal-integer-strict.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-numeric-literals -description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code -info: | - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigits[opt] - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit :: one of - 8 9 - - ## 12.8.3.1 Static Semantics: Early Errors - - NumericLiteral :: LegacyOctalIntegerLiteral - DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral - - - It is a Syntax Error if the source code matching this production is - strict mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -08; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts deleted file mode 100644 index babb4345006f8..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-followed-by-ident.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) 2018 Mozilla. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-numeric-literals -description: > - NumericLiteral followed by IdentifierStart -info: | - The source character immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit. - -negative: - phase: parse - type: SyntaxError ----*/ - - -3in [] diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts deleted file mode 100644 index 00025edc222e4..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-bd-nsl-bd-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0b` | `0B` in a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b_1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts deleted file mode 100644 index 535c73c86fbda..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-dunder-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0__0 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts deleted file mode 100644 index e12e1acc9e7eb..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - BinaryIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - BinaryIntegerLiteral :: - 0b BinaryDigits - 0B BinaryDigits - - BinaryDigits :: - BinaryDigit - BinaryDigits BinaryDigit - BinaryDigits NumericLiteralSeparator BinaryDigit - - BinaryDigit :: one of - 0 1 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0b0_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts deleted file mode 100644 index 350899cec7068..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-dds-dunder-err.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1__0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts deleted file mode 100644 index 3f727d65116b5..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dd-nsl-err.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts deleted file mode 100644 index 066ab7a1bc5c6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-dds-dunder-err.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10__0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts deleted file mode 100644 index 667e9bf7b832d..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dds-nsl-err.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts deleted file mode 100644 index 0e79f92dac4e0..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-dds-nsl-ep-dd-err.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10.0_e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts deleted file mode 100644 index 7cf8c73e1e6df..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-dd-err.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts deleted file mode 100644 index ce5f589f9ffd3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-ep-err.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts deleted file mode 100644 index d745ae0227cc8..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dil-dot-nsl-err.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -10._ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts deleted file mode 100644 index c0f86826f912c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-dds-nsl-ep-err.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NumericLiteralSeparator may not appear adjacent to ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -.0_e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts deleted file mode 100644 index bf9d8e5246255..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-ep-err.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear between `.` and ExponentPart -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - - ExponentIndicator :: one of - e E - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._e1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts deleted file mode 100644 index da6aeea341d91..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-dot-nsl-err.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - DecimalLiteral, nor adjacent to `.` -info: | - NumericLiteralSeparator :: - _ - - DecimalLiteral :: - . DecimalDigits ExponentPart_opt - - DecimalDigits :: - ... - DecimalDigits NumericLiteralSeparator DecimalDigit - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -._ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts deleted file mode 100644 index c4338fad56b14..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-hd-nsl-hd-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0x` | `0X` in a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x_1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts deleted file mode 100644 index 661396c692335..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-dunder-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0__0 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts deleted file mode 100644 index 52e550019d441..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-hil-nsl-hd-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of a - HexIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - HexIntegerLiteral :: - 0x HexDigits - 0X HexDigits - - HexDigits :: - HexDigit - HexDigits HexDigit - HexDigits NumericLiteralSeparator HexDigit - - HexDigit::one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0x0_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts deleted file mode 100644 index b457d5c091855..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-00-err.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (00_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -00_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts deleted file mode 100644 index 4e6de3b40ce52..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-01-err.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (01_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -01_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts deleted file mode 100644 index 220023d5c89f4..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-07-err.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (07_0) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -07_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts deleted file mode 100644 index 47d017709c5ca..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_0-err.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_0) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts deleted file mode 100644 index b1cdb931ab0f2..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_1-err.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_1) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_1; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts deleted file mode 100644 index 72ffe3034e995..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-lol-0_7-err.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7) - ) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 - - OctalDigit::one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_7; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts deleted file mode 100644 index 2fb71eec88bde..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-08-err.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (08) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -08_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts deleted file mode 100644 index 09ec1ff937ab3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-09-err.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (09) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -09_0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts deleted file mode 100644 index 6ad113573893a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_8-err.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_8) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_8; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts deleted file mode 100644 index dcb89fc2b4b4c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nonoctal-0_9-err.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator must not be in a NonOctalDecimalIntegerLiteral (0_9) -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - 0 - NonZeroDigit DecimalDigitsopt - NonZeroDigit - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - NonOctalDecimalIntegerLiteral - - NonOctalDecimalIntegerLiteral :: - 0 NonOctalDigit - LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit - NonOctalDecimalIntegerLiteral DecimalDigit - - LegacyOctalLikeDecimalIntegerLiteral :: - 0 OctalDigit - LegacyOctalLikeDecimalIntegerLiteral OctalDigit - - NonOctalDigit::one of - 8 9 -negative: - phase: parse - type: SyntaxError -features: [numeric-separator-literal] ----*/ - - -0_9; diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts deleted file mode 100644 index f4210e6e0d525..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-dunder-err.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in DecimalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0__0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts deleted file mode 100644 index d4b7157ca129a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-nzd-nsl-dds-leading-zero-err.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: NonZeroDigit NumericLiteralSeparator DecimalDigits -info: | - NumericLiteralSeparator :: - _ - - DecimalIntegerLiteral :: - ... - NonZeroDigit NumericLiteralSeparator DecimalDigits - - NonZeroDigit :: one of - 1 2 3 4 5 6 7 8 9 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0_0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts deleted file mode 100644 index d51ff124cfc60..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-dunder-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not appear adjacent to another - NumericLiteralSeparator in a OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0__0 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts deleted file mode 100644 index a657d92768e6b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-nsl-od-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the last digit character of an - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o0_ diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts deleted file mode 100644 index 867ca37ce9e44..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-oil-od-nsl-od-err.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a - OctalIntegerLiteral -info: | - NumericLiteralSeparator :: - _ - - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigits NumericLiteralSeparator OctalDigit - - OctalDigit :: one of - 0 1 2 3 4 5 6 7 - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -0o_1 diff --git a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts b/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts deleted file mode 100644 index 10936c88497c2..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-unicode-err.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-NumericLiteralSeparator -description: > - NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with - unicode escape sequence -info: | - NumericLiteralSeparator:: - _ - - DecimalIntegerLiteral:: - ... - NonZeroDigit NumericLiteralSeparator_opt DecimalDigits - -negative: - phase: parse - type: SyntaxError - -features: [numeric-separator-literal] ----*/ - - -1\u005F0123456789 diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts deleted file mode 100644 index 9e2c7330766f2..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-digit.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence containing an invalid digit -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o8; diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts deleted file mode 100644 index 994fdf60b09a4..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-leading.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence with a leading 0 -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -00o0; diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts deleted file mode 100644 index eed3af2160a08..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-truncated.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence without any digits -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0o; diff --git a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts b/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts deleted file mode 100644 index ffd5bc06eda3c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/numeric/octal-invalid-unicode.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es6id: 11.8.3 -description: Octal-integer-literal-like sequence expressed with unicode escape sequence -info: | - OctalIntegerLiteral :: - 0o OctalDigits - 0O OctalDigits - OctalDigits :: - OctalDigit - OctalDigits OctalDigit - OctalDigit :: one of - 0 1 2 3 4 5 6 7 -negative: - phase: parse - type: SyntaxError ----*/ - - -0\u006f0; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts deleted file mode 100644 index 69078db816d70..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T1.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionFirstChar -info: | - RegularExpressionChars :: - [empty] - RegularExpressionCharsRegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "*" -negative: - phase: parse - type: SyntaxError ----*/ - - -/*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts deleted file mode 100644 index 5b46820b4c37b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T2.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "\" -negative: - phase: parse - type: SyntaxError ----*/ - - -/\/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts deleted file mode 100644 index ae413951fd149..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T3.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - -description: > - The first character of a regular expression may not be "/" -negative: - phase: parse - type: SyntaxError ----*/ - - -/// -.source; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts deleted file mode 100644 index e9ae52f0b03c3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.2_T4.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionLiteral:: - / RegularExpressionBody / RegularExpressionFlags - - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars:: - [empty] - - MemberExpression . IdentifierName - -description: A regular expression may not be empty. -negative: - phase: parse - type: SyntaxError ----*/ - - -// -.source; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts deleted file mode 100644 index 955189753736e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T1.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a (\u000A) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts deleted file mode 100644 index d722e1fdec039..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.3_T3.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a , (\u000D) -negative: - phase: parse - type: SyntaxError ----*/ - - -/ -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts deleted file mode 100644 index 61d057a371ffb..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T1.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a - -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts deleted file mode 100644 index e6cc0353255e2..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A1.5_T3.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A RegularExpressionBackslashSequence may not contain a -negative: - phase: parse - type: SyntaxError ----*/ - - -/\ -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts deleted file mode 100644 index 55ade9cd3755e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T1.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular express may not contain a "\" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts deleted file mode 100644 index f1b4640b40712..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.2_T2.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionChar -info: | - RegularExpressionChar :: - RegularExpressionNonTerminator but not one of \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a "/" as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a//.source; diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts deleted file mode 100644 index 311223ecdda68..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T1.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts deleted file mode 100644 index d1b8476c9b350..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.3_T3.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-literals-regular-expression-literals -info: | - RegularExpressionChar :: - RegularExpressionBackslashSequence - - - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter - -negative: - phase: parse - type: SyntaxError ----*/ - - -/a -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts deleted file mode 100644 index be98260c34edf..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T1.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts b/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts deleted file mode 100644 index 7d43e77df2f66..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/S7.8.5_A2.5_T3.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\ -/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts deleted file mode 100644 index defeb2cd14e38..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/early-err-bad-flag.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains any code points other than "g", "i", "m", "u", or "y", ... - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./G; diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts deleted file mode 100644 index 66991a14c9cd8..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/early-err-dup-flag.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if FlagText of RegularExpressionLiteral contains ... the same code point more than once. - -negative: - phase: parse - type: SyntaxError ----*/ - - -/./gig; diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts deleted file mode 100644 index 5fc2231f6999e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/early-err-flags-unicode-escape.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-regular-expression-literals-static-semantics-early-errors -info: | - RegularExpressionFlags :: - RegularExpressionFlags IdentifierPart - -description: > - It is a Syntax Error if IdentifierPart contains a Unicode escape sequence. -negative: - phase: parse - type: SyntaxError ----*/ - - -/./\u0067; diff --git a/tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts b/tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts deleted file mode 100644 index 6fc999a5f2b5a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/early-err-pattern.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-primary-expression-regular-expression-literals-static-semantics-early-errors -info: | - PrimaryExpression : RegularExpressionLiteral - -description: > - It is a Syntax Error if BodyText of RegularExpressionLiteral cannot be recognized using the goal symbol Pattern of the ECMAScript RegExp grammar specified in #sec-patterns. -negative: - phase: parse - type: SyntaxError ----*/ - - -/?/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts deleted file mode 100644 index 8e1560e567ce6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-exact.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (exact count) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2}/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts deleted file mode 100644 index 0456d32b60cc3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-lower.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (lower-bounds) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,}/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts deleted file mode 100644 index 7e1e9cd3fcf6b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/invalid-braced-quantifier-range.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Braced quantifier in an Atom position (range) -info: | - SyntaxCharacter :: one of - ^$\.*+?()[]{}| - - PatternCharacter :: - SourceCharacter but not SyntaxCharacter - - Although Annex B extends the definition of Term to include - ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier - pattern with a higher precedence. This makes the SyntaxError for such - patterns consistent between Annex-B and non-Annex-B environments. -negative: - phase: parse - type: SyntaxError ----*/ - - -/{2,3}/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts deleted file mode 100644 index cacbf08e82564..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-lookbehind.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts deleted file mode 100644 index d531d4778b9eb..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/invalid-optional-negative-lookbehind.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?a)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts deleted file mode 100644 index f4af2aafc4cf5..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-2.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts deleted file mode 100644 index 154e9d022687a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3-u.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts deleted file mode 100644 index 90b51ed71fb8f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-3.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts deleted file mode 100644 index a2319c9ba5bec..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4-u.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts deleted file mode 100644 index ba751f6980395..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-4.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts deleted file mode 100644 index f8985b4f7c4a5..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-5.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?x)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts deleted file mode 100644 index a3ff1914526ca..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-u.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts deleted file mode 100644 index 334ac1ff07cce..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname-without-group-u.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts deleted file mode 100644 index 9e1f77bddd2e9..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-dangling-groupname.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: Group reference must have corresponding group. -info: | - It is a Syntax Error if the enclosing Pattern does not contain a - GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue - equals the StringValue of the RegExpIdentifierName of this production's - GroupName. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts deleted file mode 100644 index 8828633966481..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2-u.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts deleted file mode 100644 index adb5645e33871..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-2.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?b)(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts deleted file mode 100644 index 12089b87c7a9b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier-u.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts deleted file mode 100644 index 5055f3bcf676c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-duplicate-groupspecifier.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifiers within one alternative must be unique. -info: | - It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s - _x_ and _y_ for which CapturingGroupName(_x_) is the same as - CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*. -esid: sec-patterns-static-semantics-early-errors -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts deleted file mode 100644 index b737d3bc69161..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts deleted file mode 100644 index 36e00507dac5f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-empty-groupspecifier.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts deleted file mode 100644 index 26cc4f439f366..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-identity-escape-in-capture-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?\a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts deleted file mode 100644 index f4843e4f4f922..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-2-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts deleted file mode 100644 index ec30112a1cbf4..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-3.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k<>/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts deleted file mode 100644 index 4ed0fc8e1daa6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-4.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\ka)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts deleted file mode 100644 index 5213e74721970..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-5.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts deleted file mode 100644 index f566be0735628..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-6.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts deleted file mode 100644 index a8b7b58543d43..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts deleted file mode 100644 index fdf498f46173f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-2-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k<>/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts deleted file mode 100644 index 52865ee3e495d..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-3-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts deleted file mode 100644 index 2c596edc521f6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-incomplete-groupname-without-group-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupName is `< RegExpIdentifierName >`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/\k`. -esid: prod-GroupName -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)\k/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts deleted file mode 100644 index b4e6f25941b07..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts deleted file mode 100644 index 6d24b11b4ff13..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier-4.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts deleted file mode 100644 index fe41abe55a4a2..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<$❁Ea)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts deleted file mode 100644 index bf95ffd15a2df..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts deleted file mode 100644 index 9e23d7454b655..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-2.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<𐒤>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts deleted file mode 100644 index 3c19ae55a4201..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts deleted file mode 100644 index 2dc275935eec4..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts deleted file mode 100644 index 85502ae6f012a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-4.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts deleted file mode 100644 index efb3a66a5c7ee..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts deleted file mode 100644 index 27477c10962a6..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-5.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts deleted file mode 100644 index 8b7c6f5fbfafd..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-6.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts deleted file mode 100644 index 1c9e0c576ee4f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-7.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts deleted file mode 100644 index 2886ff50adc6f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts deleted file mode 100644 index 59ca99b3b3d02..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-8.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<\>.)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts deleted file mode 100644 index 7b1e6cc6de473..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-9-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?.)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts deleted file mode 100644 index 124ed7f403e09..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts deleted file mode 100644 index b60a2cbb98560..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<❤>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts deleted file mode 100644 index 78fc8f902c82e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts deleted file mode 100644 index b125cbfa731ed..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-numeric-groupspecifier.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<42a>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts deleted file mode 100644 index 10eb89ea0218e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts deleted file mode 100644 index 6b04b11322fd9..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-starting-groupspecifier.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?<:a>a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts deleted file mode 100644 index fa29dcc67977a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts deleted file mode 100644 index 89d5f4d1ae292..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-punctuator-within-groupspecifier.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(?a)/; diff --git a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts b/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts deleted file mode 100644 index 9131978866613..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier-u.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2017 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: GroupSpecifier must be identifier-like. -esid: prod-GroupSpecifier -negative: - phase: parse - type: SyntaxError -features: [regexp-named-groups] ----*/ - - -/(? - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/
/ - -/* -There is a between the two / characters -*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts b/tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts deleted file mode 100644 index cecd1b5496388..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/regexp-first-char-no-paragraph-separator.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - The first character of a regular expression may not be a -negative: - phase: parse - type: SyntaxError ----*/ - - -/
/ - -/* -There is a between the two / characters -*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts b/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts deleted file mode 100644 index 024da8f37c361..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-line-separator.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionBackslashSequence -info: | - RegularExpressionBackslashSequence :: - \ RegularExpressionNonTerminator - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - - LineTerminator :: - - - - - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\
/ - -/* -There is a between "a\\
" and "/" -*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts b/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts deleted file mode 100644 index 50e3e69e3f9fa..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/regexp-source-char-no-paragraph-separator.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-RegularExpressionNonTerminator -info: | - RegularExpressionBody :: - RegularExpressionFirstChar RegularExpressionChars - - RegularExpressionChars :: - [empty] - RegularExpressionChars RegularExpressionChar - - RegularExpressionFirstChar :: - RegularExpressionNonTerminator but not one of * or \ or / or [ - - RegularExpressionNonTerminator :: - SourceCharacter but not LineTerminator - -description: > - A regular expression may not contain a as a SourceCharacter -negative: - phase: parse - type: SyntaxError ----*/ - - -/a\\

/ - -/* -There is a between "a\\
" and "/" -*/ diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts deleted file mode 100644 index cc628a4caa987..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-class-escape.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: > - ClassEscape does not recognize "class control" patterns -info: | - ClassEscape[U] :: - b - [+U] - - CharacterClassEscape - CharacterEscape[?U] - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\c0/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts deleted file mode 100644 index 1c62aea237012..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-extended-pattern-char.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes the use of extended pattern characters irrespective - of the presence of Annex B extensions. - - Term[U] :: - [~U] ExtendedAtom -negative: - phase: parse - type: SyntaxError ----*/ - - -/{/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts deleted file mode 100644 index 27fc2c3812bb5..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-identity-escape.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Support for UnicodeIDContinue in IdentityEscape -info: | - IdentityEscape[U] :: - [+U] SyntaxCharacter - [+U] / - [~U] SourceCharacter but not UnicodeIDContinue - - The `u` flag precludes the use of characters in UnicodeIDContinue - irrespective of the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\M/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts deleted file mode 100644 index 97dab7c0b8af8..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-legacy-octal-escape.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-patterns -es6id: 21.2.1 -description: Legacy Octal Escape Sequence not supported with `u` flag -info: | - The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective - of the presence of Annex B extensions. - - CharacterEscape [U] :: - ControlEscape - c ControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\1/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts deleted file mode 100644 index 0e79980108f92..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-a.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("A" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\d-a]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts deleted file mode 100644 index fb7429fb12684..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-ab.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - (both "A" and "B" parameters) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[\s-\d]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts deleted file mode 100644 index 90b75675c005b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges-no-dash-b.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set - ("B" parameter) -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[%-\d]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts deleted file mode 100644 index a368d90076950..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-non-empty-class-ranges.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: > - NonEmptyClassRangesNoDash production cannot specify a multi-character set -info: | - The production - NonemptyClassRangesNoDash::ClassAtomNoDash-ClassAtomClassRanges evaluates - as follows: - - 1. Evaluate ClassAtomNoDash to obtain a CharSet A. - 2. Evaluate ClassAtom to obtain a CharSet B. - 3. Evaluate ClassRanges to obtain a CharSet C. - 4. Call CharacterRange(A, B) and let D be the resulting CharSet. - - 21.2.2.15.1 Runtime Semantics: CharacterRange Abstract Operation - - 1. If A does not contain exactly one character or B does not contain - exactly one character, throw a SyntaxError exception. - - The `u` flag precludes the Annex B extension that enables this pattern. -negative: - phase: parse - type: SyntaxError ----*/ - - -/[--\d]/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts deleted file mode 100644 index af69d7c2244e4..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-oob-decimal-escape.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-pattern-semantics -es6id: 21.2.2 -description: Out-of-bounds decimal escapes -info: | - 1. Evaluate DecimalEscape to obtain an integer n. - 2. If n>NcapturingParens, throw a SyntaxError exception. - - When the "unicode" flag is set, this algorithm is honored irrespective of - the presence of Annex B extensions. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\8/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts deleted file mode 100644 index 756c59c177f01..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookahead.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?=.)?/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts deleted file mode 100644 index f421452a86fcb..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-lookbehind.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?<=.)?/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts deleted file mode 100644 index 0a06cc3d9fa17..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookahead.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -es6id: B.1.4 -description: Quantifiable assertions disallowed with `u` flag -info: | - The `u` flag precludes quantifiable assertions (even when Annex B is - honored) - - Term[U] :: - [~U] QuantifiableAssertion Quantifier -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(?!.)?/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts b/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts deleted file mode 100644 index 30a673c53f2bc..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-invalid-optional-negative-lookbehind.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2018 Igalia S. L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-regular-expressions-patterns -description: Lookbehinds are not treated as a QuantifiableAssertion -info: | - Term[U] :: - [~U] QuantifiableAssertion Quantifier - - QuantifiableAssertion[N]:: - ( ? = Disjunction[~U, ?N] ) - ( ? ! Disjunction[~U, ?N] ) -negative: - phase: parse - type: SyntaxError ----*/ - - -/.(? 1114111. -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{110000}/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts b/tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts deleted file mode 100644 index e7b87722e1b5e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/u-unicode-esc-non-hex.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -description: > - Non-hexadecimal value within the delimiters of a UnicodeEscapeSequence -es6id: 21.2.1 -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1,}/u; diff --git a/tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts b/tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts deleted file mode 100644 index 625b2758676b1..0000000000000 --- a/tests/cases/conformance/test262/language/literals/regexp/unicode-escape-nls-err.ts +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-Pattern -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence -info: | - Pattern[U, N]:: - Disjunction[?U, ?N] - - Disjunction[U, N]:: - Alternative[?U, ?N] - Alternative[?U, ?N]|Disjunction[?U, ?N] - - Alternative[U, N]:: - [empty] - Alternative[?U, ?N]Term[?U, ?N] - - Term[U, N]:: - Assertion[?U, ?N] - Atom[?U, ?N] - Atom[?U, ?N]Quantifier - - Atom[U, N]:: - PatternCharacter - . - \AtomEscape[?U, ?N] - CharacterClass[?U] - (GroupSpecifier[?U]Disjunction[?U, ?N]) - (?:Disjunction[?U, ?N]) - - AtomEscape[U, N]:: - DecimalEscape - CharacterClassEscape[?U] - CharacterEscape[?U] - [+N]kGroupName[?U] - - CharacterEscape[U]:: - ControlEscape - cControlLetter - 0[lookahead ∁EDecimalDigit] - HexEscapeSequence - RegExpUnicodeEscapeSequence[?U] - IdentityEscape[?U] - - RegExpUnicodeEscapeSequence[U]:: - [+U]uLeadSurrogate\uTrailSurrogate - [+U]uLeadSurrogate - [+U]uTrailSurrogate - [+U]uNonSurrogate - [~U]uHex4Digits - [+U]u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -/\u{1F_639}/u; diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts deleted file mode 100644 index 5a35d6e61541a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T1.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T1 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -""" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts deleted file mode 100644 index 5bcd82f7b639b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.1_T2.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"DoubleStringCharacters_opt\"" -es5id: 7.8.4_A1.1_T2 -description: > - DoubleStringCharacter :: SourceCharacter but not double-quote " or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -" -" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts deleted file mode 100644 index 713174706de33..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T1.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T1 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -''' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts deleted file mode 100644 index 730f9e7004047..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A1.2_T2.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: 'SingleStringCharacters_opt'" -es5id: 7.8.4_A1.2_T2 -description: > - SingleStringCharacter :: SourceCharacter but not single-quote ' or - LineTerminator -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -' -' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts deleted file mode 100644 index 272984b75faab..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T1.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T1 -description: Checking if execution of "\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts deleted file mode 100644 index e4e3ac15d9036..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.1_T2.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\" or '\\' is not correct" -es5id: 7.8.4_A3.1_T2 -description: Checking if execution of "'\'" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts deleted file mode 100644 index 0278fbf401003..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T1.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T1 -description: Checking if execution of "\\\" fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\\\" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts deleted file mode 100644 index 0aa395e921fe1..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A3.2_T2.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "StringLiteral :: \"\\\\\\\" or '\\\\\\' is not correct" -es5id: 7.8.4_A3.2_T2 -description: Checking if execution of '\\\' fails -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -'\\\' diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts deleted file mode 100644 index 49db7a6f8736d..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T1.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T1 -description: "EscapeCharacter :: DecimalDigits :: 1" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\1" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts deleted file mode 100644 index 299d9c1033cb9..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A4.3_T2.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: NonEscapeSequence is not EscapeCharacter -es5id: 7.8.4_A4.3_T2 -description: "EscapeCharacter :: DecimalDigits :: 7" -negative: - phase: parse - type: SyntaxError -flags: [onlyStrict] ----*/ - - -"\7" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts deleted file mode 100644 index e7d68c5e0f626..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.1_T4.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: | - EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit - HexDigit -es5id: 7.8.4_A7.1_T4 -description: "UnicodeEscapeSequence :: u000G is incorrect" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK# -"\u000G" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts deleted file mode 100644 index 0fcea4f61944f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T1.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T1 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u1" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts deleted file mode 100644 index f751bb14bc258..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T2.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T2 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uA" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts deleted file mode 100644 index b5886053adc5a..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T3.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T3 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u11" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts deleted file mode 100644 index 10b06c6a22c98..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T4.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T4 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAA" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts deleted file mode 100644 index 9f061b62581ec..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T5.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T5 -description: ":: HexDigit :: 1" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\u111" diff --git a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts b/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts deleted file mode 100644 index 29d7490455122..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/S7.8.4_A7.2_T6.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: "UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect" -es5id: 7.8.4_A7.2_T6 -description: ":: HexDigit :: A" -negative: - phase: parse - type: SyntaxError ----*/ - - -//CHECK#1 -"\uAAA" diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts deleted file mode 100644 index ea83c4ce1e4b5..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 1 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\1"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts deleted file mode 100644 index fa5253a47da6e..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 2 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\2"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts deleted file mode 100644 index 226f98b328282..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; ZeroToThree 3 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - ZeroToThree::one of - 0 1 2 3 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\3"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts deleted file mode 100644 index 6adbede01925f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 4 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\4"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts deleted file mode 100644 index 8de2f2108c72f..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 5 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\5"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts deleted file mode 100644 index 0e0f8aa41cb3b..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 6 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\6"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts deleted file mode 100644 index e44fa5b90611c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; FourToSeven 7 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - FourToSeven::one of - 4 5 6 7 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\7"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts deleted file mode 100644 index d2714e1255687..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 8 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\8"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts deleted file mode 100644 index aa6d975564961..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-8-strict.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 8 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\8'; diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts deleted file mode 100644 index 54ff7dbd6fa76..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2020 Rick Waldron Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: > - String Literals extensions disallowed in strict mode; NonOctalDecimalEscapeSequence 9 -info: | - It is possible for string literals to precede a Use Strict Directive that places the enclosing - code in strict mode, and implementations must take care to not use this extended definition of - EscapeSequence with such literals. For example, attempting to parse the following source text - must fail. - - Strict mode is entered via the explicit Use Strict Directive. - - NonOctalDecimalEscapeSequence::one of - 8 9 - -flags: [noStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -function invalid() { "\9"; "use strict"; } diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts deleted file mode 100644 index 5d7ba4bb85609..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-9-strict.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-literals-string-literals -description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9 -info: | - EscapeSequence :: - CharacterEscapeSequence - LegacyOctalEscapeSequence - NonOctalDecimalEscapeSequence - HexEscapeSequence - UnicodeEscapeSequence - - NonOctalDecimalEscapeSequence :: one of - 8 9 - - ## 12.8.4.1 Static Semantics: Early Errors - - EscapeSequence :: NonOctalDecimalEscapeSequence - - - It is a Syntax Error if the source code matching this production is strict - mode code. -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\9'; diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts deleted file mode 100644 index fbad784d69cff..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-non-octal-escape-sequence-strict.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2017 Kevin Gibbons. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\08'; diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts deleted file mode 100644 index b0c32c5360627..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-prologue-strict.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.4-1-s -description: > - A directive preceding an 'use strict' directive may not contain - an OctalEscapeSequence -negative: - phase: parse - type: SyntaxError ----*/ - - -(function() { - "asterisk: \052"; - "use strict"; -}); diff --git a/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts b/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts deleted file mode 100644 index a3b5ec733195c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/legacy-octal-escape-sequence-strict.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-template-literal-lexical-components -description: LegacyOctalEscapeSequence is not available in template literals -info: | - TemplateCharacter :: - $ [lookahead ≠ {] - \ TemplateEscapeSequence - \ NotEscapeSequence - LineContinuation - LineTerminatorSequence - SourceCharacter but not one of ` or \ or $ or LineTerminator - TemplateEscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence -flags: [onlyStrict] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\1'; diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts deleted file mode 100644 index caed8287e412c..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-double.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - DoubleStringCharacters:: - DoubleStringCharacter DoubleStringCharacters opt - - DoubleStringCharacter:: - SourceCharacter but not one of " or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u{1F_639}" diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts deleted file mode 100644 index b43ad79b29cbe..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/unicode-escape-nls-err-single.ts +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (C) 2017 Valerie Young. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters) -info: | - StringLiteral:: - "DoubleStringCharacters opt" - 'SingleStringCharacters opt' - - SingleStringCharacters:: - SingleStringCharacterSingleStringCharactersopt - - SingleStringCharacter:: - SourceCharacterbut not one of ' or \ or LineTerminator - \ EscapeSequence - LineContinuation - - EscapeSequence:: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - uHex4Digits - u{CodePoint} - - CodePoint :: - HexDigit but only if MV of HexDigits ≤ 0x10FFFF - CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF - - CodePointDigits :: - HexDigit - CodePointDigitsHexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -features: [numeric-separator-literal] -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u{1F_639}'; diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts deleted file mode 100644 index dee44abd81f60..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-double.ts +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - DoubleStringCharacters :: - DoubleStringCharacter DoubleStringCharacters_opt - - DoubleStringCharacter :: - SourceCharacter but not one of " or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -"\u" diff --git a/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts b/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts deleted file mode 100644 index d35cf4dc379e3..0000000000000 --- a/tests/cases/conformance/test262/language/literals/string/unicode-escape-no-hex-err-single.ts +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (C) 2020 Alexey Shvayka. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: prod-StringLiteral -description: > - \u is at the end of string, Hex4Digits is required. -info: | - StringLiteral :: - " DoubleStringCharacters_opt " - ' SingleStringCharacters_opt ' - - SingleStringCharacters :: - SingleStringCharacter SingleStringCharacters_opt - - SingleStringCharacter :: - SourceCharacter but not one of ' or \ or LineTerminator - - - \ EscapeSequence - LineContinuation - - EscapeSequence :: - CharacterEscapeSequence - 0 [lookahead ∁EDecimalDigit] - HexEscapeSequence - UnicodeEscapeSequence - - UnicodeEscapeSequence :: - u Hex4Digits - u{ CodePoint } - - Hex4Digits :: - HexDigit HexDigit HexDigit HexDigit - - HexDigit :: one of - 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F - -negative: - phase: parse - type: SyntaxError ----*/ - - -'\u' From 6c55c0461c86d30cd9d637c3e7aecd8516d5cb0e Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Tue, 31 Oct 2023 16:52:13 +0800 Subject: [PATCH 06/10] Make `RegularExpressionFlags` Internal --- src/compiler/types.ts | 1 + tests/baselines/reference/api/typescript.d.ts | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 096671351082f..6dd05f3d42d97 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2730,6 +2730,7 @@ export interface RegularExpressionLiteral extends LiteralExpression { } // dprint-ignore +/** @internal */ export const enum RegularExpressionFlags { None = 0, HasIndices = 1 << 0, // d diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 40e6e8261d2df..bc0c1b0679b6e 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -5445,19 +5445,6 @@ declare namespace ts { interface RegularExpressionLiteral extends LiteralExpression { readonly kind: SyntaxKind.RegularExpressionLiteral; } - enum RegularExpressionFlags { - None = 0, - HasIndices = 1, - Global = 2, - IgnoreCase = 4, - Multiline = 8, - DotAll = 16, - Unicode = 32, - UnicodeSets = 64, - Sticky = 128, - UnicodeMode = 96, - Modifiers = 28, - } interface NoSubstitutionTemplateLiteral extends LiteralExpression, TemplateLiteralLikeNode, Declaration { readonly kind: SyntaxKind.NoSubstitutionTemplateLiteral; } From d72a849aed85ac5edaddce471be3d56845250b5d Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Fri, 12 Apr 2024 06:38:12 +0800 Subject: [PATCH 07/10] Fix CI Errors --- src/compiler/scanner.ts | 4 +++- ...codeExtendedEscapesInRegularExpressions01_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions01_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions02_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions02_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions03_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions03_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions04_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions04_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions12_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions12_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions13_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions13_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions14_ES5.types | 10 ---------- ...codeExtendedEscapesInRegularExpressions14_ES6.types | 10 ---------- ...codeExtendedEscapesInRegularExpressions15_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions15_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions16_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions16_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions17_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions17_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions18_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions18_ES6.types | 9 --------- ...codeExtendedEscapesInRegularExpressions19_ES5.types | 9 --------- ...codeExtendedEscapesInRegularExpressions19_ES6.types | 9 --------- 25 files changed, 3 insertions(+), 219 deletions(-) delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types delete mode 100644 tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 65680cd5b7e09..e956104861556 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -2761,7 +2761,9 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } // falls through default: - scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape(); + // The scanEscapeSequence call in scanCharacterEscape must return non-empty strings + // since there must not be line breaks in a regex literal + Debug.assert(scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape()); break; } } diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types deleted file mode 100644 index 01777b6fa42d7..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions01_ES5.ts === -var x = /\u{0}/g; ->x : RegExp -> : ^^^^^^ ->/\u{0}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types deleted file mode 100644 index a31d148f7a4b6..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions01_ES6.ts === -var x = /\u{0}/g; ->x : RegExp -> : ^^^^^^ ->/\u{0}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types deleted file mode 100644 index 68692949be255..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions02_ES5.ts === -var x = /\u{00}/g; ->x : RegExp -> : ^^^^^^ ->/\u{00}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types deleted file mode 100644 index 87b7d9b64ecc0..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions02_ES6.ts === -var x = /\u{00}/g; ->x : RegExp -> : ^^^^^^ ->/\u{00}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types deleted file mode 100644 index ab1cd9d35efef..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions03_ES5.ts === -var x = /\u{0000}/g; ->x : RegExp -> : ^^^^^^ ->/\u{0000}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types deleted file mode 100644 index c07cba62a503b..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions03_ES6.ts === -var x = /\u{0000}/g; ->x : RegExp -> : ^^^^^^ ->/\u{0000}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types deleted file mode 100644 index 95fdef4f602b1..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions04_ES5.ts === -var x = /\u{00000000}/g; ->x : RegExp -> : ^^^^^^ ->/\u{00000000}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types deleted file mode 100644 index d6b4abb714dcb..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions04_ES6.ts === -var x = /\u{00000000}/g; ->x : RegExp -> : ^^^^^^ ->/\u{00000000}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types deleted file mode 100644 index 06260c88a23b5..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions12_ES5.ts === -var x = /\u{FFFFFFFF}/g; ->x : RegExp -> : ^^^^^^ ->/\u{FFFFFFFF}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types deleted file mode 100644 index 041dc3b3acf3e..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions12_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions12_ES6.ts === -var x = /\u{FFFFFFFF}/g; ->x : RegExp -> : ^^^^^^ ->/\u{FFFFFFFF}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types deleted file mode 100644 index f4936e8b9416d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions13_ES5.ts === -var x = /\u{DDDDD}/g; ->x : RegExp -> : ^^^^^^ ->/\u{DDDDD}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types deleted file mode 100644 index 933796d134754..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions13_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions13_ES6.ts === -var x = /\u{DDDDD}/g; ->x : RegExp -> : ^^^^^^ ->/\u{DDDDD}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types deleted file mode 100644 index 4f01b781a63e4..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES5.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions14_ES5.ts === -// Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; ->x : RegExp -> : ^^^^^^ ->/\u{-DDDD}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types deleted file mode 100644 index 4a109502271ad..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14_ES6.types +++ /dev/null @@ -1,10 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions14_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions14_ES6.ts === -// Shouldn't work, negatives are not allowed. -var x = /\u{-DDDD}/g; ->x : RegExp -> : ^^^^^^ ->/\u{-DDDD}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types deleted file mode 100644 index 0c5873e8be34a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions15_ES5.ts === -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; ->x : RegExp -> : ^^^^^^ ->/\u{abcd}\u{ef12}\u{3456}\u{7890}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types deleted file mode 100644 index f93d946ce6bcb..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions15_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions15_ES6.ts === -var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/g; ->x : RegExp -> : ^^^^^^ ->/\u{abcd}\u{ef12}\u{3456}\u{7890}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types deleted file mode 100644 index 93b864540532d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions16_ES5.ts === -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; ->x : RegExp -> : ^^^^^^ ->/\u{ABCD}\u{EF12}\u{3456}\u{7890}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types deleted file mode 100644 index 6bea0c9408f77..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions16_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions16_ES6.ts === -var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/g; ->x : RegExp -> : ^^^^^^ ->/\u{ABCD}\u{EF12}\u{3456}\u{7890}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types deleted file mode 100644 index 34ef186c1a315..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions17_ES5.ts === -var x = /\u{r}\u{n}\u{t}/g; ->x : RegExp -> : ^^^^^^ ->/\u{r}\u{n}\u{t}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types deleted file mode 100644 index 05240e13cd361..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions17_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions17_ES6.ts === -var x = /\u{r}\u{n}\u{t}/g; ->x : RegExp -> : ^^^^^^ ->/\u{r}\u{n}\u{t}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types deleted file mode 100644 index d1ff42df0b74a..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions18_ES5.ts === -var x = /\u{65}\u{65}/g; ->x : RegExp -> : ^^^^^^ ->/\u{65}\u{65}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types deleted file mode 100644 index 2b836e0cfe75d..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions18_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions18_ES6.ts === -var x = /\u{65}\u{65}/g; ->x : RegExp -> : ^^^^^^ ->/\u{65}\u{65}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types deleted file mode 100644 index 14c2b8b7b5108..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES5.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES5.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions19_ES5.ts === -var x = /\u{}/g; ->x : RegExp -> : ^^^^^^ ->/\u{}/g : RegExp -> : ^^^^^^ - diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types deleted file mode 100644 index 1c80f52ce2d61..0000000000000 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19_ES6.types +++ /dev/null @@ -1,9 +0,0 @@ -//// [tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions19_ES6.ts] //// - -=== unicodeExtendedEscapesInRegularExpressions19_ES6.ts === -var x = /\u{}/g; ->x : RegExp -> : ^^^^^^ ->/\u{}/g : RegExp -> : ^^^^^^ - From 7d6c4651e7af16c74311629edf3e3e3658dfe941 Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Fri, 19 Apr 2024 08:47:37 +0800 Subject: [PATCH 08/10] Revise According to Suggestions --- src/compiler/commandLineParser.ts | 2 + src/compiler/diagnosticMessages.json | 2 +- src/compiler/program.ts | 4 +- src/compiler/scanner.ts | 50 +- src/compiler/types.ts | 2 +- src/compiler/utilities.ts | 6 + src/compiler/watch.ts | 5 +- .../callChainWithSuper(target=es2023).js | 20 + .../callChainWithSuper(target=es2024).js | 20 + .../Parse empty options of --target.js | 2 +- ...arget to compiler-options with json api.js | 2 +- ...ompiler-options with jsonSourceFile api.js | 2 +- ...invalid strings with jsonSourceFile api.js | 2 +- ...acketInCharClass(target=es2015).errors.txt | 15 + ...thOpenBracketInCharClass(target=es2015).js | 16 + ...nBracketInCharClass(target=es2015).symbols | 12 + ...penBracketInCharClass(target=es2015).types | 23 + ...nBracketInCharClass(target=es5).errors.txt | 18 + ...pWithOpenBracketInCharClass(target=es5).js | 16 + ...OpenBracketInCharClass(target=es5).symbols | 12 + ...thOpenBracketInCharClass(target=es5).types | 23 + ...acketInCharClass(target=esnext).errors.txt | 12 + ...thOpenBracketInCharClass(target=esnext).js | 16 + ...nBracketInCharClass(target=esnext).symbols | 12 + ...penBracketInCharClass(target=esnext).types | 23 + ...pressionScanning(target=es2015).errors.txt | 186 ++--- ...egularExpressionScanning(target=es2015).js | 4 +- ...rExpressionScanning(target=es2015).symbols | 2 +- ...larExpressionScanning(target=es2015).types | 6 +- ...rExpressionScanning(target=es3).errors.txt | 742 ------------------ .../regularExpressionScanning(target=es3).js | 92 --- ...ularExpressionScanning(target=es3).symbols | 50 -- ...egularExpressionScanning(target=es3).types | 154 ---- ...rExpressionScanning(target=es5).errors.txt | 214 ++--- .../regularExpressionScanning(target=es5).js | 4 +- ...ularExpressionScanning(target=es5).symbols | 2 +- ...egularExpressionScanning(target=es5).types | 6 +- ...pressionScanning(target=esnext).errors.txt | 118 +-- ...egularExpressionScanning(target=esnext).js | 4 +- ...rExpressionScanning(target=esnext).symbols | 2 +- ...larExpressionScanning(target=esnext).types | 6 +- ...pertyValueExpressionSuggestions.errors.txt | 4 +- ...does-not-add-color-when-NO_COLOR-is-set.js | 2 +- ...-when-host-can't-provide-terminal-width.js | 2 +- ...tatus.DiagnosticsPresent_OutputsSkipped.js | 2 +- ...egularExpressions01(target=es5).errors.txt | 4 +- ...egularExpressions02(target=es5).errors.txt | 4 +- ...egularExpressions03(target=es5).errors.txt | 4 +- ...egularExpressions04(target=es5).errors.txt | 4 +- ...egularExpressions05(target=es5).errors.txt | 4 +- ...egularExpressions06(target=es5).errors.txt | 4 +- ...egularExpressions07(target=es5).errors.txt | 4 +- ...egularExpressions08(target=es5).errors.txt | 4 +- ...egularExpressions09(target=es5).errors.txt | 4 +- ...egularExpressions10(target=es5).errors.txt | 4 +- ...egularExpressions11(target=es5).errors.txt | 4 +- ...egularExpressions12(target=es5).errors.txt | 4 +- ...egularExpressions13(target=es5).errors.txt | 4 +- ...egularExpressions14(target=es5).errors.txt | 4 +- ...egularExpressions15(target=es5).errors.txt | 4 +- ...egularExpressions16(target=es5).errors.txt | 4 +- ...egularExpressions17(target=es5).errors.txt | 4 +- ...egularExpressions18(target=es5).errors.txt | 4 +- ...egularExpressions19(target=es5).errors.txt | 4 +- .../regExpWithOpenBracketInCharClass.ts | 7 + .../compiler/regularExpressionScanning.ts | 4 +- 66 files changed, 614 insertions(+), 1392 deletions(-) create mode 100644 tests/baselines/reference/callChainWithSuper(target=es2023).js create mode 100644 tests/baselines/reference/callChainWithSuper(target=es2024).js create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).js create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).symbols create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).types create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).js create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).symbols create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).types create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).errors.txt create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).js create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).symbols create mode 100644 tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).types delete mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt delete mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).js delete mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).symbols delete mode 100644 tests/baselines/reference/regularExpressionScanning(target=es3).types create mode 100644 tests/cases/compiler/regExpWithOpenBracketInCharClass.ts diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index ade646ba086d0..2c33d72895a8d 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -534,6 +534,8 @@ export const targetOptionDeclaration: CommandLineOptionOfCustomType = { es2020: ScriptTarget.ES2020, es2021: ScriptTarget.ES2021, es2022: ScriptTarget.ES2022, + es2023: ScriptTarget.ES2023, + es2024: ScriptTarget.ES2024, esnext: ScriptTarget.ESNext, })), affectsSourceFile: true, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index c6430818a77b5..366d7651ee0ea 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1789,7 +1789,7 @@ "category": "Error", "code": 1534 }, - "'\\{0}' is not a valid character escape.": { + "This character cannot be escaped in a regular expression.": { "category": "Error", "code": 1535 }, diff --git a/src/compiler/program.ts b/src/compiler/program.ts index c46e910a53d2b..b19b813cf68ef 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -126,6 +126,7 @@ import { getLineStarts, getMatchedFileSpec, getMatchedIncludeSpec, + getNameOfScriptTarget, getNewLineCharacter, getNormalizedAbsolutePath, getNormalizedAbsolutePathWithoutRoot, @@ -306,7 +307,6 @@ import { SyntaxKind, sys, System, - targetOptionDeclaration, toFileNameLowerCase, tokenToString, toPath as ts_toPath, @@ -4712,7 +4712,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg message = Diagnostics.File_is_library_specified_here; break; } - const target = forEachEntry(targetOptionDeclaration.type, (value, key) => value === getEmitScriptTarget(options) ? key : undefined); + const target = getNameOfScriptTarget(getEmitScriptTarget(options)); configFileNode = target ? getOptionsSyntaxByValue("target", target) : undefined; message = Diagnostics.File_is_default_library_for_target_specified_here; break; diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index e956104861556..0d588895f8349 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -12,6 +12,7 @@ import { DiagnosticMessage, Diagnostics, forEach, + getNameOfScriptTarget, getSpellingSuggestion, identity, JSDocParsingMode, @@ -428,10 +429,6 @@ export function characterToRegularExpressionFlag(c: string): RegularExpressionFl return charToRegExpFlag.get(c); } -function regularExpressionFlagToFirstAvailableLanguageVersion(f: RegularExpressionFlags): ScriptTarget | undefined { - return regExpFlagToFirstAvailableLanguageVersion.get(f); -} - /** @internal */ export function computeLineStarts(text: string): number[] { const result: number[] = []; @@ -1627,13 +1624,13 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean return ""; default: if (isRegularExpression && (shouldEmitInvalidEscapeError || isIdentifierPart(ch, languageVersion))) { - error(Diagnostics._0_is_not_a_valid_character_escape, pos - 2, 2, String.fromCharCode(ch)); + error(Diagnostics.This_character_cannot_be_escaped_in_a_regular_expression, pos - 2, 2); } return String.fromCharCode(ch); } } - function scanExtendedUnicodeEscape(shouldEmitInvalidEscapeError = true): string { + function scanExtendedUnicodeEscape(shouldEmitInvalidEscapeError: boolean): string { const start = pos; pos += 3; const escapedStart = pos; @@ -1717,7 +1714,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean else if (ch === CharacterCodes.backslash) { ch = peekExtendedUnicodeEscape(); if (ch >= 0 && isIdentifierPart(ch, languageVersion)) { - result += scanExtendedUnicodeEscape(); + result += scanExtendedUnicodeEscape(/*shouldEmitInvalidEscapeError*/ true); start = pos; continue; } @@ -2243,7 +2240,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean case CharacterCodes.backslash: const extendedCookedChar = peekExtendedUnicodeEscape(); if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts(); + tokenValue = scanExtendedUnicodeEscape(/*shouldEmitInvalidEscapeError*/ true) + scanIdentifierParts(); return token = getIdentifierToken(); } @@ -2270,7 +2267,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean pos++; const extendedCookedChar = peekExtendedUnicodeEscape(); if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - tokenValue = "#" + scanExtendedUnicodeEscape() + scanIdentifierParts(); + tokenValue = "#" + scanExtendedUnicodeEscape(/*shouldEmitInvalidEscapeError*/ true) + scanIdentifierParts(); return token = SyntaxKind.PrivateIdentifier; } @@ -2402,9 +2399,12 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean // Quickly get to the end of regex such that we know the flags let p = tokenStart + 1; let inEscape = false; - // Although nested character class is allowed in Unicode Sets mode, - // an unescaped slash is nevertheless invalid even in character class in Unicode mode. - // Thus we can simply ignore nested character class in the first pass. + // Although nested character classes are allowed in Unicode Sets mode, + // an unescaped slash is nevertheless invalid even in a character class in Unicode mode. + // Additionally, parsing nested character classes will misinterpret regexes like `/[[]/` + // as unterminated, consuming characters beyond the slash. (This even applies to `/[[]/v`, + // which should be parsed as a well-terminated regex with an incomplete character class.) + // Thus we must not handle nested character classes in the first pass. let inCharacterClass = false; while (true) { // If we reach the end of a file, or hit a newline, then this is an unterminated @@ -2464,9 +2464,9 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } else { regExpFlags |= flag; - const availableFrom = regularExpressionFlagToFirstAvailableLanguageVersion(flag)!; + const availableFrom = regExpFlagToFirstAvailableLanguageVersion.get(flag)!; if (languageVersion < availableFrom) { - error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, p, 1, ScriptTarget[availableFrom]); + error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, p, 1, getNameOfScriptTarget(availableFrom)); } } p++; @@ -2474,7 +2474,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean pos = tokenStart + 1; const saveTokenPos = tokenStart; const saveTokenFlags = tokenFlags; - scanRegularExpressionWorker(text.slice(0, endOfBody), endOfBody, regExpFlags, isUnterminated); + scanRegularExpressionWorker(text, endOfBody, regExpFlags, isUnterminated); if (!isUnterminated) { pos = p; } @@ -2486,14 +2486,22 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean return token; function scanRegularExpressionWorker(text: string, end: number, regExpFlags: RegularExpressionFlags, isUnterminated: boolean) { + /** Grammar parameter */ const unicodeMode = !!(regExpFlags & RegularExpressionFlags.UnicodeMode); + /** Grammar parameter */ const unicodeSetsMode = !!(regExpFlags & RegularExpressionFlags.UnicodeSets); + /** @see {scanClassSetExpression} */ let mayContainStrings = false; + /** The number of numeric (anonymous) capturing groups defined in the regex. */ let numberOfCapturingGroups = 0; + /** All named capturing groups defined in the regex. */ const groupSpecifiers = new Set(); + /** All references to named capturing groups in the regex. */ const groupNameReferences: (TextRange & { name: string; })[] = []; + /** All numeric backreferences within the regex. */ const decimalEscapes: (TextRange & { value: number; })[] = []; + /** A stack of scopes for named capturing groups. @see {scanGroupName} */ const namedCapturingGroups: Set[] = []; // Disjunction ::= Alternative ('|' Alternative)* @@ -2595,7 +2603,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean break; default: const start = pos; - const setFlags = scanPatternModifiers(); + const setFlags = scanPatternModifiers(RegularExpressionFlags.None); if (text.charCodeAt(pos) === CharacterCodes.minus) { pos++; scanPatternModifiers(setFlags); @@ -2689,7 +2697,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean // Assume what starting from the character to be outside of the regex return; } - if (unicodeMode) { + if (unicodeMode || ch === CharacterCodes.closeParen) { error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); } pos++; @@ -2706,7 +2714,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } } - function scanPatternModifiers(currFlags = RegularExpressionFlags.None): RegularExpressionFlags { + function scanPatternModifiers(currFlags: RegularExpressionFlags): RegularExpressionFlags { while (pos < end) { const ch = text.charCodeAt(pos); if (!isIdentifierPart(ch, languageVersion)) { @@ -2724,9 +2732,9 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean } else { currFlags |= flag; - const availableFrom = regularExpressionFlagToFirstAvailableLanguageVersion(flag)!; + const availableFrom = regExpFlagToFirstAvailableLanguageVersion.get(flag)!; if (languageVersion < availableFrom) { - error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos, 1, ScriptTarget[availableFrom]); + error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos, 1, getNameOfScriptTarget(availableFrom)); } } pos++; @@ -3702,7 +3710,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean pos--; const extendedCookedChar = peekExtendedUnicodeEscape(); if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts(); + tokenValue = scanExtendedUnicodeEscape(/*shouldEmitInvalidEscapeError*/ true) + scanIdentifierParts(); return token = getIdentifierToken(); } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 9c4dc32fe3b4b..d61a9d6cb2efb 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -7366,7 +7366,7 @@ export const enum ScriptKind { // NOTE: We must reevaluate the target for upcoming features when each successive TC39 edition is ratified in // June of each year. This includes changes to `LanguageFeatureMinimumTarget`, `ScriptTarget`, // transformers/esnext.ts, commandLineParser.ts, and the contents of each lib/esnext.*.d.ts file. -export enum ScriptTarget { +export const enum ScriptTarget { /** @deprecated */ ES3 = 0, ES5 = 1, diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 8b862d2f838aa..74dd2d09f429e 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -514,6 +514,7 @@ import { SymbolTable, SyntaxKind, TaggedTemplateExpression, + targetOptionDeclaration, TemplateExpression, TemplateLiteral, TemplateLiteralLikeNode, @@ -8921,6 +8922,11 @@ export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: Str return compilerOptions[flag] === undefined ? !!compilerOptions.strict : !!compilerOptions[flag]; } +/** @internal */ +export function getNameOfScriptTarget(scriptTarget: ScriptTarget): string | undefined { + return forEachEntry(targetOptionDeclaration.type, (value, key) => value === scriptTarget ? key : undefined); +} + /** @internal */ export function getEmitStandardClassFields(compilerOptions: CompilerOptions) { return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= ScriptTarget.ES2022; diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 2e89d636e0c71..a54496d1e6b75 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -46,7 +46,6 @@ import { find, flattenDiagnosticMessageText, forEach, - forEachEntry, ForegroundColorEscapeSequences, formatColorAndReset, formatDiagnostic, @@ -57,6 +56,7 @@ import { getDirectoryPath, getEmitScriptTarget, getLineAndCharacterOfPosition, + getNameOfScriptTarget, getNewLineCharacter, getNormalizedAbsolutePath, getParsedCommandLineOfConfigFile, @@ -93,7 +93,6 @@ import { sourceMapCommentRegExpDontCareLineStart, sys, System, - targetOptionDeclaration, WatchCompilerHost, WatchCompilerHostOfConfigFile, WatchCompilerHostOfFilesAndCompilerOptions, @@ -537,7 +536,7 @@ export function fileIncludeReasonToDiagnostics(program: Program, reason: FileInc } case FileIncludeKind.LibFile: { if (reason.index !== undefined) return chainDiagnosticMessages(/*details*/ undefined, Diagnostics.Library_0_specified_in_compilerOptions, options.lib![reason.index]); - const target = forEachEntry(targetOptionDeclaration.type, (value, key) => value === getEmitScriptTarget(options) ? key : undefined); + const target = getNameOfScriptTarget(getEmitScriptTarget(options)); const messageAndArgs: DiagnosticAndArguments = target ? [Diagnostics.Default_library_for_target_0, target] : [Diagnostics.Default_library]; return chainDiagnosticMessages(/*details*/ undefined, ...messageAndArgs); } diff --git a/tests/baselines/reference/callChainWithSuper(target=es2023).js b/tests/baselines/reference/callChainWithSuper(target=es2023).js new file mode 100644 index 0000000000000..96be01245bfa7 --- /dev/null +++ b/tests/baselines/reference/callChainWithSuper(target=es2023).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/expressions/optionalChaining/callChain/callChainWithSuper.ts] //// + +//// [callChainWithSuper.ts] +// GH#34952 +class Base { method?() {} } +class Derived extends Base { + method1() { return super.method?.(); } + method2() { return super["method"]?.(); } +} + +//// [callChainWithSuper.js] +"use strict"; +// GH#34952 +class Base { + method() { } +} +class Derived extends Base { + method1() { return super.method?.(); } + method2() { return super["method"]?.(); } +} diff --git a/tests/baselines/reference/callChainWithSuper(target=es2024).js b/tests/baselines/reference/callChainWithSuper(target=es2024).js new file mode 100644 index 0000000000000..96be01245bfa7 --- /dev/null +++ b/tests/baselines/reference/callChainWithSuper(target=es2024).js @@ -0,0 +1,20 @@ +//// [tests/cases/conformance/expressions/optionalChaining/callChain/callChainWithSuper.ts] //// + +//// [callChainWithSuper.ts] +// GH#34952 +class Base { method?() {} } +class Derived extends Base { + method1() { return super.method?.(); } + method2() { return super["method"]?.(); } +} + +//// [callChainWithSuper.js] +"use strict"; +// GH#34952 +class Base { + method() { } +} +class Derived extends Base { + method1() { return super.method?.(); } + method2() { return super["method"]?.(); } +} diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js index 315e2343c7e98..6c8e2c7f578eb 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js @@ -7,4 +7,4 @@ FileNames:: 0.ts Errors:: error TS6044: Compiler option 'target' expects an argument. -error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. +error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js index 57c0d1a0336c3..2ac60b21d1d85 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js @@ -23,5 +23,5 @@ CompilerOptions:: "configFilePath": "tsconfig.json" } Errors:: -error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. +error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js index 69558be1110af..bab1e516a742d 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js @@ -23,7 +23,7 @@ CompilerOptions:: "configFilePath": "tsconfig.json" } Errors:: -tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. +tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. 3 "target": "",    ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js index 009f13cf4e714..feab3aefeff39 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js @@ -47,7 +47,7 @@ Errors::   ~~~  19 }   ~ -tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'. +tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. 3 "target": "<%- options.useTsWithBabel ? 'esnext' : 'es5' %>",    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt new file mode 100644 index 0000000000000..86e97bc3edce0 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt @@ -0,0 +1,15 @@ +regExpWithOpenBracketInCharClass.ts(4,7): error TS1005: ']' expected. +regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. + + +==== regExpWithOpenBracketInCharClass.ts (2 errors) ==== + const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class + +!!! error TS1005: ']' expected. + ~ +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).js b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).js new file mode 100644 index 0000000000000..b5d29338747b6 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +//// [regExpWithOpenBracketInCharClass.ts] +const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; + + +//// [regExpWithOpenBracketInCharClass.js] +const regexes = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).symbols b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).symbols new file mode 100644 index 0000000000000..8e1686c25168d --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +=== regExpWithOpenBracketInCharClass.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regExpWithOpenBracketInCharClass.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) + + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; + diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).types b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).types new file mode 100644 index 0000000000000..455d1a7e1d1cb --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +=== regExpWithOpenBracketInCharClass.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +> : ^^^^^^^^ +>[ /[[]/, // Valid /[[]/u, // Valid /[[]/v, // Well-terminated regex with an incomplete character class] : RegExp[] +> : ^^^^^^^^ + + /[[]/, // Valid +>/[[]/ : RegExp +> : ^^^^^^ + + /[[]/u, // Valid +>/[[]/u : RegExp +> : ^^^^^^ + + /[[]/v, // Well-terminated regex with an incomplete character class +>/[[]/v : RegExp +> : ^^^^^^ + +]; + diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt new file mode 100644 index 0000000000000..b73fabe019701 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt @@ -0,0 +1,18 @@ +regExpWithOpenBracketInCharClass.ts(3,8): error TS1501: This regular expression flag is only available when targeting 'es6' or later. +regExpWithOpenBracketInCharClass.ts(4,7): error TS1005: ']' expected. +regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. + + +==== regExpWithOpenBracketInCharClass.ts (3 errors) ==== + const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + ~ +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. + /[[]/v, // Well-terminated regex with an incomplete character class + +!!! error TS1005: ']' expected. + ~ +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).js b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).js new file mode 100644 index 0000000000000..39669f032a6e5 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +//// [regExpWithOpenBracketInCharClass.ts] +const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; + + +//// [regExpWithOpenBracketInCharClass.js] +var regexes = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).symbols b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).symbols new file mode 100644 index 0000000000000..f7b4063c86979 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +=== regExpWithOpenBracketInCharClass.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regExpWithOpenBracketInCharClass.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; + diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).types b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).types new file mode 100644 index 0000000000000..455d1a7e1d1cb --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +=== regExpWithOpenBracketInCharClass.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +> : ^^^^^^^^ +>[ /[[]/, // Valid /[[]/u, // Valid /[[]/v, // Well-terminated regex with an incomplete character class] : RegExp[] +> : ^^^^^^^^ + + /[[]/, // Valid +>/[[]/ : RegExp +> : ^^^^^^ + + /[[]/u, // Valid +>/[[]/u : RegExp +> : ^^^^^^ + + /[[]/v, // Well-terminated regex with an incomplete character class +>/[[]/v : RegExp +> : ^^^^^^ + +]; + diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).errors.txt b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).errors.txt new file mode 100644 index 0000000000000..fb5540bc6ba7e --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).errors.txt @@ -0,0 +1,12 @@ +regExpWithOpenBracketInCharClass.ts(4,7): error TS1005: ']' expected. + + +==== regExpWithOpenBracketInCharClass.ts (1 errors) ==== + const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class + +!!! error TS1005: ']' expected. + ]; + \ No newline at end of file diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).js b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).js new file mode 100644 index 0000000000000..b5d29338747b6 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +//// [regExpWithOpenBracketInCharClass.ts] +const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; + + +//// [regExpWithOpenBracketInCharClass.js] +const regexes = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).symbols b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).symbols new file mode 100644 index 0000000000000..2c0d9c229ba64 --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).symbols @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +=== regExpWithOpenBracketInCharClass.ts === +const regexes: RegExp[] = [ +>regexes : Symbol(regexes, Decl(regExpWithOpenBracketInCharClass.ts, 0, 5)) +>RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.regexp.d.ts, --, --) ... and 3 more) + + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; + diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).types b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).types new file mode 100644 index 0000000000000..455d1a7e1d1cb --- /dev/null +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=esnext).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/regExpWithOpenBracketInCharClass.ts] //// + +=== regExpWithOpenBracketInCharClass.ts === +const regexes: RegExp[] = [ +>regexes : RegExp[] +> : ^^^^^^^^ +>[ /[[]/, // Valid /[[]/u, // Valid /[[]/v, // Well-terminated regex with an incomplete character class] : RegExp[] +> : ^^^^^^^^ + + /[[]/, // Valid +>/[[]/ : RegExp +> : ^^^^^^ + + /[[]/u, // Valid +>/[[]/u : RegExp +> : ^^^^^^ + + /[[]/v, // Well-terminated regex with an incomplete character class +>/[[]/v : RegExp +> : ^^^^^^ + +]; + diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt index 635214438591b..ae8cc0c19810b 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt @@ -1,12 +1,12 @@ -regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'es2018' or later. regularExpressionScanning.ts(3,10): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. regularExpressionScanning.ts(3,11): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,12): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,13): error TS1500: Duplicate regular expression flag. regularExpressionScanning.ts(3,14): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,15): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. -regularExpressionScanning.ts(3,16): error TS1501: This regular expression flag is only available when targeting 'ES2022' or later. +regularExpressionScanning.ts(3,16): error TS1501: This regular expression flag is only available when targeting 'es2022' or later. regularExpressionScanning.ts(3,17): error TS1500: Duplicate regular expression flag. regularExpressionScanning.ts(3,18): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,19): error TS1499: Unknown regular expression flag. @@ -66,7 +66,7 @@ regularExpressionScanning.ts(16,28): error TS1529: Unknown Unicode property name regularExpressionScanning.ts(16,62): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(17,28): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(17,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(18,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(18,6): error TS1524: Unknown Unicode property name. regularExpressionScanning.ts(18,28): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -102,7 +102,7 @@ regularExpressionScanning.ts(20,53): error TS1531: '\p' must be followed by a Un regularExpressionScanning.ts(20,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. regularExpressionScanning.ts(20,62): error TS1527: Expected a Unicode property name or value. regularExpressionScanning.ts(20,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(21,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,6): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,16): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -118,65 +118,65 @@ regularExpressionScanning.ts(22,47): error TS1528: Any Unicode property that wou regularExpressionScanning.ts(23,19): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,31): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,47): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(25,17): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(25,23): error TS1535: '\C' is not a valid character escape. +regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(25,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(25,23): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,3): error TS1512: '\c' must be followed by an ASCII letter. regularExpressionScanning.ts(26,6): error TS1512: '\c' must be followed by an ASCII letter. regularExpressionScanning.ts(26,15): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,17): error TS1535: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,17): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,20): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,23): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(27,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,39): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,43): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,7): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,14): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,39): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(26,23): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,3): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,10): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,21): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,24): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,39): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,43): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,3): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,7): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,10): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,14): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,21): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,24): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,39): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(28,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(28,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,43): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(28,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,3): error TS1511: '\q' is only available inside character class. -regularExpressionScanning.ts(29,7): error TS1535: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,7): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,10): error TS1521: '\q' must be followed by string alternatives enclosed in braces. -regularExpressionScanning.ts(29,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(29,21): error TS1535: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(29,21): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,23): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,38): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,39): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,39): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,43): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,46): error TS1005: '}' expected. -regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(31,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,34): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(31,42): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(31,55): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,55): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(31,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(31,76): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,76): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(32,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(32,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(32,19): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,50): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,51): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,55): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,55): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(32,57): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,61): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(32,76): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,76): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(33,8): error TS1005: '--' expected. regularExpressionScanning.ts(33,9): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,11): error TS1520: Expected a class set oprand. @@ -196,32 +196,32 @@ regularExpressionScanning.ts(33,67): error TS1005: '--' expected. regularExpressionScanning.ts(33,70): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,75): error TS1508: Unexpected '&'. Did you mean to escape it with backslash? regularExpressionScanning.ts(33,85): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(34,56): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. -regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(36,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(36,30): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(37,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,28): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,53): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(39,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(39,34): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(40,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,32): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,61): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(41,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(41,79): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(42,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. ==== regularExpressionScanning.ts (224 errors) ==== @@ -229,9 +229,9 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag // Flags /foo/visualstudiocode, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2018' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2018' or later. ~ !!! error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. ~ @@ -245,7 +245,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~ !!! error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2022' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2022' or later. ~ !!! error TS1500: Duplicate regular expression flag. ~ @@ -268,7 +268,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1509: This regular expression flag cannot be toggled within a subpattern. ~ !!! error TS1500: Duplicate regular expression flag. - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, ~~ !!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. @@ -379,7 +379,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~ !!! error TS1529: Unknown Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, ~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -454,7 +454,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1527: Expected a Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, ~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -489,13 +489,13 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\c[\c0\ca\cQ\c\C]\c1\C/u, ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. @@ -504,80 +504,80 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, ~~ !!! error TS1511: '\q' is only available inside character class. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ !!! error TS1521: '\q' must be followed by string alternatives enclosed in braces. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? !!! error TS1005: '}' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, ~~~ @@ -589,11 +589,11 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~~ !!! error TS1517: Range out of order in character class. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, ~~~ !!! error TS1517: Range out of order in character class. @@ -606,7 +606,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ @@ -614,7 +614,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~ !!! error TS1517: Range out of order in character class. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, !!! error TS1005: '--' expected. @@ -655,24 +655,24 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1520: Expected a class set oprand. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, ~~ !!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. !!! error TS1005: '&&' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -681,17 +681,17 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -700,20 +700,20 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. ]; \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).js b/tests/baselines/reference/regularExpressionScanning(target=es2015).js index ff2963d7bb907..11109bee884c3 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es2015).js +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).js @@ -6,7 +6,7 @@ const regexes: RegExp[] = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, @@ -52,7 +52,7 @@ const regexes = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols b/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols index 191a4538b9c43..129a4de38a1e4 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).symbols @@ -9,7 +9,7 @@ const regexes: RegExp[] = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).types b/tests/baselines/reference/regularExpressionScanning(target=es2015).types index 88608d2ce32e4..17d45a2050585 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es2015).types +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).types @@ -4,8 +4,8 @@ const regexes: RegExp[] = [ >regexes : RegExp[] > : ^^^^^^^^ ->[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] -> : ^^^^^^^^ +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] +> : ^^^^^^^^ // Flags /foo/visualstudiocode, @@ -17,7 +17,7 @@ const regexes: RegExp[] = [ >/(?med-ium:bar)/ : RegExp > : ^^^^^^ - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, >/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp > : ^^^^^^ diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt deleted file mode 100644 index 3f905ce991cc3..0000000000000 --- a/tests/baselines/reference/regularExpressionScanning(target=es3).errors.txt +++ /dev/null @@ -1,742 +0,0 @@ -error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration. -regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(3,10): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. -regularExpressionScanning.ts(3,11): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(3,12): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(3,13): error TS1500: Duplicate regular expression flag. -regularExpressionScanning.ts(3,14): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(3,15): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. -regularExpressionScanning.ts(3,16): error TS1501: This regular expression flag is only available when targeting 'ES2022' or later. -regularExpressionScanning.ts(3,17): error TS1500: Duplicate regular expression flag. -regularExpressionScanning.ts(3,18): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(3,19): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(3,20): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(3,21): error TS1500: Duplicate regular expression flag. -regularExpressionScanning.ts(3,22): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(5,6): error TS1499: Unknown regular expression flag. -regularExpressionScanning.ts(5,7): error TS1509: This regular expression flag cannot be toggled within a subpattern. -regularExpressionScanning.ts(5,10): error TS1509: This regular expression flag cannot be toggled within a subpattern. -regularExpressionScanning.ts(5,11): error TS1500: Duplicate regular expression flag. -regularExpressionScanning.ts(7,9): error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. -regularExpressionScanning.ts(7,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. -regularExpressionScanning.ts(7,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. -regularExpressionScanning.ts(7,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. -regularExpressionScanning.ts(7,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. -regularExpressionScanning.ts(7,42): error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. -regularExpressionScanning.ts(7,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. -regularExpressionScanning.ts(8,9): error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. -regularExpressionScanning.ts(8,24): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. -regularExpressionScanning.ts(8,26): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. -regularExpressionScanning.ts(8,29): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. -regularExpressionScanning.ts(8,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. -regularExpressionScanning.ts(8,42): error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. -regularExpressionScanning.ts(8,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. -regularExpressionScanning.ts(8,48): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(9,5): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(9,14): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(9,29): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(9,45): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(9,57): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(10,15): error TS1532: There is no capturing group named 'absent' in this regular expression. -regularExpressionScanning.ts(10,24): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(10,36): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(10,45): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(10,58): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. -regularExpressionScanning.ts(10,59): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. -regularExpressionScanning.ts(12,31): error TS1507: There is nothing available for repetition. -regularExpressionScanning.ts(12,32): error TS1506: Numbers out of order in quantifier. -regularExpressionScanning.ts(12,40): error TS1507: There is nothing available for repetition. -regularExpressionScanning.ts(12,61): error TS1505: Incomplete quantifier. Digit expected. -regularExpressionScanning.ts(14,12): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(14,15): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(14,22): error TS1516: A character class range must not be bounded by another character class. -regularExpressionScanning.ts(14,28): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(14,33): error TS1516: A character class range must not be bounded by another character class. -regularExpressionScanning.ts(14,36): error TS1516: A character class range must not be bounded by another character class. -regularExpressionScanning.ts(15,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,8): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,16): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,25): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,28): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(15,37): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,42): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,50): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,59): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(15,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(16,28): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(16,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(16,72): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(17,28): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(17,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(18,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,6): error TS1524: Unknown Unicode property name. -regularExpressionScanning.ts(18,28): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,31): error TS1523: Expected a Unicode property name. -regularExpressionScanning.ts(18,32): error TS1525: Expected a Unicode property value. -regularExpressionScanning.ts(18,33): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,39): error TS1525: Expected a Unicode property value. -regularExpressionScanning.ts(18,40): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,43): error TS1523: Expected a Unicode property name. -regularExpressionScanning.ts(18,49): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,52): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(18,59): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,62): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(18,63): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(18,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(19,6): error TS1524: Unknown Unicode property name. -regularExpressionScanning.ts(19,31): error TS1523: Expected a Unicode property name. -regularExpressionScanning.ts(19,32): error TS1525: Expected a Unicode property value. -regularExpressionScanning.ts(19,39): error TS1525: Expected a Unicode property value. -regularExpressionScanning.ts(19,43): error TS1523: Expected a Unicode property name. -regularExpressionScanning.ts(19,52): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(19,53): error TS1531: '\p' must be followed by a Unicode property value expression enclosed in braces. -regularExpressionScanning.ts(19,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. -regularExpressionScanning.ts(19,62): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(19,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(19,67): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(20,6): error TS1524: Unknown Unicode property name. -regularExpressionScanning.ts(20,31): error TS1523: Expected a Unicode property name. -regularExpressionScanning.ts(20,32): error TS1525: Expected a Unicode property value. -regularExpressionScanning.ts(20,39): error TS1525: Expected a Unicode property value. -regularExpressionScanning.ts(20,43): error TS1523: Expected a Unicode property name. -regularExpressionScanning.ts(20,52): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,53): error TS1531: '\p' must be followed by a Unicode property value expression enclosed in braces. -regularExpressionScanning.ts(20,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. -regularExpressionScanning.ts(20,62): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(21,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,6): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,16): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,19): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,31): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,34): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,44): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(21,47): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(22,6): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(22,19): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(22,34): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(22,47): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(22,59): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(23,19): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,31): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,47): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(25,17): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(25,23): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(26,3): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,6): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,15): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,17): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(26,20): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,23): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(26,26): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(27,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,39): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,43): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,7): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,14): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,39): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,43): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,47): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(29,3): error TS1511: '\q' is only available inside character class. -regularExpressionScanning.ts(29,7): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(29,10): error TS1521: '\q' must be followed by string alternatives enclosed in braces. -regularExpressionScanning.ts(29,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(29,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(29,23): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,38): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,39): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(29,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,43): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(29,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,46): error TS1005: '}' expected. -regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(31,4): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(31,8): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(31,34): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(31,42): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(31,55): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(31,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(31,76): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(32,4): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(32,8): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(32,19): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,50): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,51): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,55): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(32,57): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,61): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(32,76): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(32,87): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(33,8): error TS1005: '--' expected. -regularExpressionScanning.ts(33,9): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,11): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,12): error TS1005: '--' expected. -regularExpressionScanning.ts(33,15): error TS1522: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? -regularExpressionScanning.ts(33,20): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. -regularExpressionScanning.ts(33,28): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. -regularExpressionScanning.ts(33,40): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. -regularExpressionScanning.ts(33,47): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. -regularExpressionScanning.ts(33,49): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. -regularExpressionScanning.ts(33,50): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,55): error TS1511: '\q' is only available inside character class. -regularExpressionScanning.ts(33,57): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(33,61): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(33,66): error TS1508: Unexpected '-'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(33,67): error TS1005: '--' expected. -regularExpressionScanning.ts(33,70): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,75): error TS1508: Unexpected '&'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(33,85): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(34,56): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. -regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. -regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(36,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(36,30): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(37,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,28): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,53): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(39,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(39,34): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(40,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,32): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,61): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(41,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(41,79): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(42,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - - -!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration. -==== regularExpressionScanning.ts (231 errors) ==== - const regexes: RegExp[] = [ - // Flags - /foo/visualstudiocode, - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2018' or later. - ~ -!!! error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1500: Duplicate regular expression flag. - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2022' or later. - ~ -!!! error TS1500: Duplicate regular expression flag. - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1500: Duplicate regular expression flag. - ~ -!!! error TS1499: Unknown regular expression flag. - // Pattern modifiers - /(?med-ium:bar)/, - ~ -!!! error TS1499: Unknown regular expression flag. - ~ -!!! error TS1509: This regular expression flag cannot be toggled within a subpattern. - ~ -!!! error TS1509: This regular expression flag cannot be toggled within a subpattern. - ~ -!!! error TS1500: Duplicate regular expression flag. - // Capture groups - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, - ~~ -!!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - ~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - ~~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. - ~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. - ~ -!!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. - ~~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, - ~~ -!!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. - ~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - ~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x01'. - ~~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x53'. - ~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. - ~ -!!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. - ~~~~ -!!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, - ~~~~~~ -!!! error TS1532: There is no capturing group named 'absent' in this regular expression. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~~~ -!!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. - ~~~ -!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. - // Quantifiers - /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, - ~~~~~~~ -!!! error TS1507: There is nothing available for repetition. - ~~~~~ -!!! error TS1506: Numbers out of order in quantifier. - ~~~~~~~~~ -!!! error TS1507: There is nothing available for repetition. - -!!! error TS1505: Incomplete quantifier. Digit expected. - // Character classes - /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, - ~~~ -!!! error TS1517: Range out of order in character class. - ~~~ -!!! error TS1517: Range out of order in character class. - ~~ -!!! error TS1516: A character class range must not be bounded by another character class. - ~~~~~ -!!! error TS1517: Range out of order in character class. - ~~ -!!! error TS1516: A character class range must not be bounded by another character class. - ~~ -!!! error TS1516: A character class range must not be bounded by another character class. - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, - ~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~ -!!! error TS1529: Unknown Unicode property name or value. - ~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~ -!!! error TS1529: Unknown Unicode property name or value. - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, - ~~~~~~~ -!!! error TS1529: Unknown Unicode property name or value. - ~~~~~~~ -!!! error TS1529: Unknown Unicode property name or value. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, - ~~~~~~~ -!!! error TS1529: Unknown Unicode property name or value. - ~~~~~~~ -!!! error TS1529: Unknown Unicode property name or value. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, - ~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~~~~~~~ -!!! error TS1524: Unknown Unicode property name. - ~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - -!!! error TS1523: Expected a Unicode property name. - -!!! error TS1525: Expected a Unicode property value. - ~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - -!!! error TS1525: Expected a Unicode property value. - ~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - -!!! error TS1523: Expected a Unicode property name. - ~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - -!!! error TS1527: Expected a Unicode property name or value. - ~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - -!!! error TS1527: Expected a Unicode property name or value. - ~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - -!!! error TS1527: Expected a Unicode property name or value. - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, - ~~~~~~~~~~~~~~~ -!!! error TS1524: Unknown Unicode property name. - -!!! error TS1523: Expected a Unicode property name. - -!!! error TS1525: Expected a Unicode property value. - -!!! error TS1525: Expected a Unicode property value. - -!!! error TS1523: Expected a Unicode property name. - -!!! error TS1527: Expected a Unicode property name or value. - ~~ -!!! error TS1531: '\p' must be followed by a Unicode property value expression enclosed in braces. - ~~ -!!! error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. - -!!! error TS1527: Expected a Unicode property name or value. - -!!! error TS1527: Expected a Unicode property name or value. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, - ~~~~~~~~~~~~~~~ -!!! error TS1524: Unknown Unicode property name. - -!!! error TS1523: Expected a Unicode property name. - -!!! error TS1525: Expected a Unicode property value. - -!!! error TS1525: Expected a Unicode property value. - -!!! error TS1523: Expected a Unicode property name. - -!!! error TS1527: Expected a Unicode property name or value. - ~~ -!!! error TS1531: '\p' must be followed by a Unicode property value expression enclosed in braces. - ~~ -!!! error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. - -!!! error TS1527: Expected a Unicode property name or value. - -!!! error TS1527: Expected a Unicode property name or value. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, - ~~~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~~~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~~~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~~~~~~~~~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~~~~~~~~~ -!!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, - ~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - // Character escapes - /\c[\c0\ca\cQ\c\C]\c1\C/, - ~~ -!!! error TS1535: '\C' is not a valid character escape. - ~~ -!!! error TS1535: '\C' is not a valid character escape. - /\c[\c0\ca\cQ\c\C]\c1\C/u, - ~~ -!!! error TS1512: '\c' must be followed by an ASCII letter. - ~~ -!!! error TS1512: '\c' must be followed by an ASCII letter. - ~~ -!!! error TS1512: '\c' must be followed by an ASCII letter. - ~~ -!!! error TS1535: '\C' is not a valid character escape. - ~~ -!!! error TS1512: '\c' must be followed by an ASCII letter. - ~~ -!!! error TS1535: '\C' is not a valid character escape. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\Q' is not a valid character escape. - ~~ -!!! error TS1535: '\Q' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\`' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\`' is not a valid character escape. - ~~ -!!! error TS1535: '\Q' is not a valid character escape. - ~~ -!!! error TS1535: '\Q' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, - ~~ -!!! error TS1511: '\q' is only available inside character class. - ~~ -!!! error TS1535: '\`' is not a valid character escape. - ~~ -!!! error TS1521: '\q' must be followed by string alternatives enclosed in braces. - ~~ -!!! error TS1535: '\Q' is not a valid character escape. - ~~ -!!! error TS1535: '\Q' is not a valid character escape. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - -!!! error TS1005: '}' expected. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - // Unicode sets notation - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, - ~~~ -!!! error TS1517: Range out of order in character class. - ~~~ -!!! error TS1517: Range out of order in character class. - ~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~~~~ -!!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~~~ -!!! error TS1517: Range out of order in character class. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, - ~~~ -!!! error TS1517: Range out of order in character class. - ~~~ -!!! error TS1517: Range out of order in character class. - ~ -!!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected '}'. Did you mean to escape it with backslash? - ~~~ -!!! error TS1517: Range out of order in character class. - ~~ -!!! error TS1535: '\q' is not a valid character escape. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, - -!!! error TS1005: '--' expected. - -!!! error TS1520: Expected a class set oprand. - -!!! error TS1520: Expected a class set oprand. - -!!! error TS1005: '--' expected. - ~~ -!!! error TS1522: A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? - ~~ -!!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. - ~~ -!!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. - ~~ -!!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. - ~ -!!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. - ~ -!!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. - -!!! error TS1520: Expected a class set oprand. - ~~ -!!! error TS1511: '\q' is only available inside character class. - ~ -!!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected '}'. Did you mean to escape it with backslash? - ~ -!!! error TS1508: Unexpected '-'. Did you mean to escape it with backslash? - -!!! error TS1005: '--' expected. - -!!! error TS1520: Expected a class set oprand. - ~ -!!! error TS1508: Unexpected '&'. Did you mean to escape it with backslash? - -!!! error TS1520: Expected a class set oprand. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, - ~~ -!!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. - -!!! error TS1005: '&&' expected. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, - ~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, - ~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, - ~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, - ~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, - ~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, - ~~~~~~~~~~~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~~~~~~~~~ -!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. - ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. - ]; - \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).js b/tests/baselines/reference/regularExpressionScanning(target=es3).js deleted file mode 100644 index bd76252b82a90..0000000000000 --- a/tests/baselines/reference/regularExpressionScanning(target=es3).js +++ /dev/null @@ -1,92 +0,0 @@ -//// [tests/cases/compiler/regularExpressionScanning.ts] //// - -//// [regularExpressionScanning.ts] -const regexes: RegExp[] = [ - // Flags - /foo/visualstudiocode, - // Pattern modifiers - /(?med-ium:bar)/, - // Capture groups - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, - /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, - /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, - // Quantifiers - /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, - // Character classes - /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, - // Character escapes - /\c[\c0\ca\cQ\c\C]\c1\C/, - /\c[\c0\ca\cQ\c\C]\c1\C/u, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, - // Unicode sets notation - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, - /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, - /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, - /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, - /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, - /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, - /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, - /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, - /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, - /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, -]; - - -//// [regularExpressionScanning.js] -var regexes = [ - // Flags - /foo/visualstudiocode, - // Pattern modifiers - /(?med-ium:bar)/, - // Capture groups - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, - /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, - /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, - // Quantifiers - /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, - // Character classes - /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, - // Character escapes - /\c[\c0\ca\cQ\c\C]\c1\C/, - /\c[\c0\ca\cQ\c\C]\c1\C/u, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, - // Unicode sets notation - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, - /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, - /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, - /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, - /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, - /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, - /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, - /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, - /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, - /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, -]; diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).symbols b/tests/baselines/reference/regularExpressionScanning(target=es3).symbols deleted file mode 100644 index dd5083f5873b5..0000000000000 --- a/tests/baselines/reference/regularExpressionScanning(target=es3).symbols +++ /dev/null @@ -1,50 +0,0 @@ -//// [tests/cases/compiler/regularExpressionScanning.ts] //// - -=== regularExpressionScanning.ts === -const regexes: RegExp[] = [ ->regexes : Symbol(regexes, Decl(regularExpressionScanning.ts, 0, 5)) ->RegExp : Symbol(RegExp, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) - - // Flags - /foo/visualstudiocode, - // Pattern modifiers - /(?med-ium:bar)/, - // Capture groups - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, - /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, - /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, - // Quantifiers - /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, - // Character classes - /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, - // Character escapes - /\c[\c0\ca\cQ\c\C]\c1\C/, - /\c[\c0\ca\cQ\c\C]\c1\C/u, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, - // Unicode sets notation - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, - /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, - /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, - /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, - /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, - /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, - /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, - /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, - /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, - /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, -]; - diff --git a/tests/baselines/reference/regularExpressionScanning(target=es3).types b/tests/baselines/reference/regularExpressionScanning(target=es3).types deleted file mode 100644 index 88608d2ce32e4..0000000000000 --- a/tests/baselines/reference/regularExpressionScanning(target=es3).types +++ /dev/null @@ -1,154 +0,0 @@ -//// [tests/cases/compiler/regularExpressionScanning.ts] //// - -=== regularExpressionScanning.ts === -const regexes: RegExp[] = [ ->regexes : RegExp[] -> : ^^^^^^^^ ->[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] -> : ^^^^^^^^ - - // Flags - /foo/visualstudiocode, ->/foo/visualstudiocode : RegExp -> : ^^^^^^ - - // Pattern modifiers - /(?med-ium:bar)/, ->/(?med-ium:bar)/ : RegExp -> : ^^^^^^ - - // Capture groups - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, ->/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp -> : ^^^^^^ - - /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, ->/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u : RegExp -> : ^^^^^^ - - /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, ->/(?)((?bar)bar)(?baz)|(foo(?foo))(?)/ : RegExp -> : ^^^^^^ - - /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, ->/(\k)\k(?foo)|(?)((?)|(bar(?bar)))/ : RegExp -> : ^^^^^^ - - // Quantifiers - /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, ->/{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/ : RegExp -> : ^^^^^^ - - // Character classes - /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, ->/[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/ : RegExp -> : ^^^^^^ - - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, ->/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/ : RegExp -> : ^^^^^^ - - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, ->/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u : RegExp -> : ^^^^^^ - - /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, ->/\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v : RegExp -> : ^^^^^^ - - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, ->/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/ : RegExp -> : ^^^^^^ - - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, ->/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u : RegExp -> : ^^^^^^ - - /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, ->/\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v : RegExp -> : ^^^^^^ - - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, ->/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/ : RegExp -> : ^^^^^^ - - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, ->/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u : RegExp -> : ^^^^^^ - - /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, ->/\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v : RegExp -> : ^^^^^^ - - // Character escapes - /\c[\c0\ca\cQ\c\C]\c1\C/, ->/\c[\c0\ca\cQ\c\C]\c1\C/ : RegExp -> : ^^^^^^ - - /\c[\c0\ca\cQ\c\C]\c1\C/u, ->/\c[\c0\ca\cQ\c\C]\c1\C/u : RegExp -> : ^^^^^^ - - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, ->/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/ : RegExp -> : ^^^^^^ - - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, ->/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u : RegExp -> : ^^^^^^ - - /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, ->/\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v : RegExp -> : ^^^^^^ - - // Unicode sets notation - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, ->/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/ : RegExp -> : ^^^^^^ - - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, ->/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u : RegExp -> : ^^^^^^ - - /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, ->/[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v : RegExp -> : ^^^^^^ - - /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, ->/[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v : RegExp -> : ^^^^^^ - - /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, ->/[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v : RegExp -> : ^^^^^^ - - /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, ->/[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v : RegExp -> : ^^^^^^ - - /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, ->/[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v : RegExp -> : ^^^^^^ - - /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, ->/[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v : RegExp -> : ^^^^^^ - - /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, ->/[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v : RegExp -> : ^^^^^^ - - /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, ->/[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v : RegExp -> : ^^^^^^ - - /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ->/[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp -> : ^^^^^^ - - /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ->/[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v : RegExp -> : ^^^^^^ - -]; - diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt index 6f4f27d7baac6..9dbdc5177265d 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt @@ -1,12 +1,12 @@ -regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'ES2018' or later. +regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'es2018' or later. regularExpressionScanning.ts(3,10): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. regularExpressionScanning.ts(3,11): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,12): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,13): error TS1500: Duplicate regular expression flag. regularExpressionScanning.ts(3,14): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,15): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. -regularExpressionScanning.ts(3,16): error TS1501: This regular expression flag is only available when targeting 'ES2022' or later. +regularExpressionScanning.ts(3,16): error TS1501: This regular expression flag is only available when targeting 'es2022' or later. regularExpressionScanning.ts(3,17): error TS1500: Duplicate regular expression flag. regularExpressionScanning.ts(3,18): error TS1499: Unknown regular expression flag. regularExpressionScanning.ts(3,19): error TS1499: Unknown regular expression flag. @@ -31,7 +31,7 @@ regularExpressionScanning.ts(8,29): error TS1487: Octal escape sequences are not regularExpressionScanning.ts(8,37): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x03'. regularExpressionScanning.ts(8,42): error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. regularExpressionScanning.ts(8,43): error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. -regularExpressionScanning.ts(8,48): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(8,48): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(9,5): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. regularExpressionScanning.ts(9,14): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. regularExpressionScanning.ts(9,29): error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. @@ -65,10 +65,10 @@ regularExpressionScanning.ts(15,59): error TS1530: Unicode property value expres regularExpressionScanning.ts(15,62): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(16,28): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(16,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(16,72): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(16,72): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(17,28): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(17,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(18,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(18,6): error TS1524: Unknown Unicode property name. regularExpressionScanning.ts(18,28): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -94,7 +94,7 @@ regularExpressionScanning.ts(19,53): error TS1531: '\p' must be followed by a Un regularExpressionScanning.ts(19,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. regularExpressionScanning.ts(19,62): error TS1527: Expected a Unicode property name or value. regularExpressionScanning.ts(19,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(19,67): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(19,67): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(20,6): error TS1524: Unknown Unicode property name. regularExpressionScanning.ts(20,31): error TS1523: Expected a Unicode property name. regularExpressionScanning.ts(20,32): error TS1525: Expected a Unicode property value. @@ -105,7 +105,7 @@ regularExpressionScanning.ts(20,53): error TS1531: '\p' must be followed by a Un regularExpressionScanning.ts(20,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. regularExpressionScanning.ts(20,62): error TS1527: Expected a Unicode property name or value. regularExpressionScanning.ts(20,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(21,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,6): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,16): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -118,72 +118,72 @@ regularExpressionScanning.ts(22,6): error TS1528: Any Unicode property that woul regularExpressionScanning.ts(22,19): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. regularExpressionScanning.ts(22,34): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. regularExpressionScanning.ts(22,47): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(22,59): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(22,59): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(23,19): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,31): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,47): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(25,17): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(25,23): error TS1535: '\C' is not a valid character escape. +regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(25,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(25,23): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,3): error TS1512: '\c' must be followed by an ASCII letter. regularExpressionScanning.ts(26,6): error TS1512: '\c' must be followed by an ASCII letter. regularExpressionScanning.ts(26,15): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,17): error TS1535: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,17): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,20): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,23): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(26,26): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. -regularExpressionScanning.ts(27,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,39): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,43): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,7): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,14): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,39): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(26,23): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(26,26): error TS1501: This regular expression flag is only available when targeting 'es6' or later. +regularExpressionScanning.ts(27,3): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,10): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,21): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,24): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,39): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,43): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,3): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,7): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,10): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,14): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,21): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,24): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,39): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(28,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(28,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,43): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(28,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,47): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(28,47): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(29,3): error TS1511: '\q' is only available inside character class. -regularExpressionScanning.ts(29,7): error TS1535: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,7): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,10): error TS1521: '\q' must be followed by string alternatives enclosed in braces. -regularExpressionScanning.ts(29,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(29,21): error TS1535: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(29,21): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,23): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,38): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,39): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,39): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,43): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,46): error TS1005: '}' expected. -regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(31,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,34): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(31,42): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(31,55): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,55): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(31,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(31,76): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,76): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(32,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(32,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(32,19): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,50): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,51): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,55): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,55): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(32,57): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,61): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(32,76): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(32,87): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionScanning.ts(32,76): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(32,87): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(33,8): error TS1005: '--' expected. regularExpressionScanning.ts(33,9): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,11): error TS1520: Expected a class set oprand. @@ -203,32 +203,32 @@ regularExpressionScanning.ts(33,67): error TS1005: '--' expected. regularExpressionScanning.ts(33,70): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,75): error TS1508: Unexpected '&'. Did you mean to escape it with backslash? regularExpressionScanning.ts(33,85): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(34,56): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. -regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(36,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(36,30): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(37,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,28): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,53): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. -regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(39,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(39,34): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(40,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,32): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,61): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(41,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(41,79): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. regularExpressionScanning.ts(42,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. ==== regularExpressionScanning.ts (231 errors) ==== @@ -236,9 +236,9 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag // Flags /foo/visualstudiocode, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2018' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2018' or later. ~ !!! error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. ~ @@ -252,7 +252,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~ !!! error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2022' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2022' or later. ~ !!! error TS1500: Duplicate regular expression flag. ~ @@ -275,7 +275,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1509: This regular expression flag cannot be toggled within a subpattern. ~ !!! error TS1500: Duplicate regular expression flag. - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, ~~ !!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. @@ -307,7 +307,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~ !!! error TS1487: Octal escape sequences are not allowed. Use the syntax '\x05'. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, ~~~~~ !!! error TS1503: Named capturing groups are only available when targeting 'ES2018' or later. @@ -383,14 +383,14 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~ !!! error TS1529: Unknown Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, ~~~~~~~ !!! error TS1529: Unknown Unicode property name or value. ~~~~~~~ !!! error TS1529: Unknown Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, ~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -444,7 +444,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1527: Expected a Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, ~~~~~~~~~~~~~~~ !!! error TS1524: Unknown Unicode property name. @@ -467,7 +467,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1527: Expected a Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, ~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -495,7 +495,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~ !!! error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -504,13 +504,13 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\c[\c0\ca\cQ\c\C]\c1\C/u, ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. @@ -519,84 +519,84 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, ~~ !!! error TS1511: '\q' is only available inside character class. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ !!! error TS1521: '\q' must be followed by string alternatives enclosed in braces. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? !!! error TS1005: '}' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, ~~~ @@ -608,11 +608,11 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~~ !!! error TS1517: Range out of order in character class. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, ~~~ !!! error TS1517: Range out of order in character class. @@ -625,7 +625,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ @@ -633,9 +633,9 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~ !!! error TS1517: Range out of order in character class. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, !!! error TS1005: '--' expected. @@ -676,24 +676,24 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1520: Expected a class set oprand. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, ~~ !!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. !!! error TS1005: '&&' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -702,17 +702,17 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -721,20 +721,20 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. ]; \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).js b/tests/baselines/reference/regularExpressionScanning(target=es5).js index bd76252b82a90..7398dfd0d533f 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es5).js +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).js @@ -6,7 +6,7 @@ const regexes: RegExp[] = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, @@ -52,7 +52,7 @@ var regexes = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).symbols b/tests/baselines/reference/regularExpressionScanning(target=es5).symbols index dd5083f5873b5..33232d175f545 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es5).symbols +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).symbols @@ -9,7 +9,7 @@ const regexes: RegExp[] = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).types b/tests/baselines/reference/regularExpressionScanning(target=es5).types index 88608d2ce32e4..17d45a2050585 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es5).types +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).types @@ -4,8 +4,8 @@ const regexes: RegExp[] = [ >regexes : RegExp[] > : ^^^^^^^^ ->[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] -> : ^^^^^^^^ +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] +> : ^^^^^^^^ // Flags /foo/visualstudiocode, @@ -17,7 +17,7 @@ const regexes: RegExp[] = [ >/(?med-ium:bar)/ : RegExp > : ^^^^^^ - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, >/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp > : ^^^^^^ diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt index 72167a86b6192..75619a28c11a9 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).errors.txt @@ -104,63 +104,63 @@ regularExpressionScanning.ts(22,47): error TS1528: Any Unicode property that wou regularExpressionScanning.ts(23,19): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,31): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,47): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(25,17): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(25,23): error TS1535: '\C' is not a valid character escape. +regularExpressionScanning.ts(25,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(25,23): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,3): error TS1512: '\c' must be followed by an ASCII letter. regularExpressionScanning.ts(26,6): error TS1512: '\c' must be followed by an ASCII letter. regularExpressionScanning.ts(26,15): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,17): error TS1535: '\C' is not a valid character escape. +regularExpressionScanning.ts(26,17): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,20): error TS1512: '\c' must be followed by an ASCII letter. -regularExpressionScanning.ts(26,23): error TS1535: '\C' is not a valid character escape. -regularExpressionScanning.ts(27,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(27,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,39): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(27,43): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,3): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,7): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,10): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,14): error TS1535: '\`' is not a valid character escape. -regularExpressionScanning.ts(28,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,21): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(28,24): error TS1535: '\q' is not a valid character escape. -regularExpressionScanning.ts(28,39): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(26,23): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,3): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,10): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,21): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,24): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,39): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(27,43): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,3): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,7): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,10): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,14): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,21): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,24): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(28,39): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(28,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(28,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(28,43): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(28,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(28,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,3): error TS1511: '\q' is only available inside character class. -regularExpressionScanning.ts(29,7): error TS1535: '\`' is not a valid character escape. +regularExpressionScanning.ts(29,7): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,10): error TS1521: '\q' must be followed by string alternatives enclosed in braces. -regularExpressionScanning.ts(29,17): error TS1535: '\Q' is not a valid character escape. -regularExpressionScanning.ts(29,21): error TS1535: '\Q' is not a valid character escape. +regularExpressionScanning.ts(29,17): error TS1535: This character cannot be escaped in a regular expression. +regularExpressionScanning.ts(29,21): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,23): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,38): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,39): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,39): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,41): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,42): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(29,43): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(29,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,46): error TS1005: '}' expected. regularExpressionScanning.ts(31,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,34): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(31,42): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. -regularExpressionScanning.ts(31,55): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,55): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(31,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(31,76): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(31,76): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(32,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(32,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(32,19): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,50): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,51): error TS1508: Unexpected ']'. Did you mean to escape it with backslash? -regularExpressionScanning.ts(32,55): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,55): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(32,57): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,61): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? regularExpressionScanning.ts(32,63): error TS1517: Range out of order in character class. -regularExpressionScanning.ts(32,76): error TS1535: '\q' is not a valid character escape. +regularExpressionScanning.ts(32,76): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(33,8): error TS1005: '--' expected. regularExpressionScanning.ts(33,9): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,11): error TS1520: Expected a class set oprand. @@ -236,7 +236,7 @@ regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly !!! error TS1509: This regular expression flag cannot be toggled within a subpattern. ~ !!! error TS1500: Duplicate regular expression flag. - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, ~~ !!! error TS1533: A decimal escape must refer to an existent capturing group. There are only 4 capturing groups in this regular expression. @@ -437,9 +437,9 @@ regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\c[\c0\ca\cQ\c\C]\c1\C/u, ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. @@ -448,74 +448,74 @@ regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ !!! error TS1512: '\c' must be followed by an ASCII letter. ~~ -!!! error TS1535: '\C' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, ~~ !!! error TS1511: '\q' is only available inside character class. ~~ -!!! error TS1535: '\`' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ !!! error TS1521: '\q' must be followed by string alternatives enclosed in braces. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~ -!!! error TS1535: '\Q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? @@ -531,11 +531,11 @@ regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly ~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~~~ !!! error TS1517: Range out of order in character class. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, ~~~ !!! error TS1517: Range out of order in character class. @@ -548,7 +548,7 @@ regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly ~ !!! error TS1508: Unexpected ']'. Did you mean to escape it with backslash? ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. ~ !!! error TS1508: Unexpected '{'. Did you mean to escape it with backslash? ~ @@ -556,7 +556,7 @@ regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly ~~~ !!! error TS1517: Range out of order in character class. ~~ -!!! error TS1535: '\q' is not a valid character escape. +!!! error TS1535: This character cannot be escaped in a regular expression. /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, !!! error TS1005: '--' expected. diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).js b/tests/baselines/reference/regularExpressionScanning(target=esnext).js index ff2963d7bb907..11109bee884c3 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=esnext).js +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).js @@ -6,7 +6,7 @@ const regexes: RegExp[] = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, @@ -52,7 +52,7 @@ const regexes = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols b/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols index 378087b58b242..d62c186dc8c3d 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).symbols @@ -9,7 +9,7 @@ const regexes: RegExp[] = [ /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, diff --git a/tests/baselines/reference/regularExpressionScanning(target=esnext).types b/tests/baselines/reference/regularExpressionScanning(target=esnext).types index 88608d2ce32e4..17d45a2050585 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=esnext).types +++ b/tests/baselines/reference/regularExpressionScanning(target=esnext).types @@ -4,8 +4,8 @@ const regexes: RegExp[] = [ >regexes : RegExp[] > : ^^^^^^^^ ->[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capture groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] -> : ^^^^^^^^ +>[ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, /(\k)\k(?foo)|(?)((?)|(bar(?bar)))/, // Quantifiers /{}{1,2}_{3}.{4,}?(foo){008}${32,16}\b{064,128}.+&*?\???\n{,256}{\\{,/, // Character classes /[-A-Za-z-z-aZ-A\d_-\d-.-.\r-\n\w-\W]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/u, /\p{L}\p{gc=L}\p{ASCII}\p{Invalid}[\p{L}\p{gc=L}\P{ASCII}\p{Invalid}]/v, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/u, /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/v, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/u, /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/v, // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, /\c[\c0\ca\cQ\c\C]\c1\C/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/u, /\q\\\`[\q\\\`[\Q\\\Q{\q{foo|bar|baz]\q{]\q{/v, // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/u, /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/v, /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v,] : RegExp[] +> : ^^^^^^^^ // Flags /foo/visualstudiocode, @@ -17,7 +17,7 @@ const regexes: RegExp[] = [ >/(?med-ium:bar)/ : RegExp > : ^^^^^^ - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, >/\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/ : RegExp > : ^^^^^^ diff --git a/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt index 78e3fdc2e13bb..18133b69068e7 100644 --- a/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt +++ b/tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt @@ -1,7 +1,7 @@ regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,19): error TS1529: Unknown Unicode property name or value. regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,28): error TS1524: Unknown Unicode property name. regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,45): error TS1526: Unknown Unicode property value. -regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,55): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,55): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== regularExpressionUnicodePropertyValueExpressionSuggestions.ts (4 errors) ==== @@ -16,5 +16,5 @@ regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,55): error TS150 !!! error TS1526: Unknown Unicode property value. !!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:45: Did you mean 'Unknown'? ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js b/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js index 0da50d90ce6d0..e7a75ca729839 100644 --- a/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js +++ b/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js @@ -101,7 +101,7 @@ default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, esnext +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext default: es5 --module, -m diff --git a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js index 948f93ad35f21..1d9724f9ea654 100644 --- a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js +++ b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js @@ -101,7 +101,7 @@ default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, esnext +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext default: es5 --module, -m diff --git a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index 948f93ad35f21..1d9724f9ea654 100644 --- a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -101,7 +101,7 @@ default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, esnext +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext default: es5 --module, -m diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt index 7cbe6bc6c8527..ab854267f49de 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions01.ts(1,17): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions01.ts(1,17): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions01.ts (1 errors) ==== var x = /\u{0}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt index b5fd95a3d3587..7c8275c32bc78 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions02.ts(1,18): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions02.ts(1,18): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions02.ts (1 errors) ==== var x = /\u{00}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt index 260895c521699..21b3b2e4daea7 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions03.ts(1,20): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions03.ts(1,20): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions03.ts (1 errors) ==== var x = /\u{0000}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt index be6d8c305bc50..9282d070a9742 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions04.ts(1,24): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions04.ts(1,24): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions04.ts (1 errors) ==== var x = /\u{00000000}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt index 3735662d5258d..42b296e64af31 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions05.ts(1,78): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions05.ts(1,78): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions05.ts (1 errors) ==== var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt index f18016554f423..1c254e3b6b053 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06(target=es5).errors.txt @@ -1,4 +1,4 @@ -unicodeExtendedEscapesInRegularExpressions06.ts(3,22): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions06.ts(3,22): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions06.ts (1 errors) ==== @@ -6,5 +6,5 @@ unicodeExtendedEscapesInRegularExpressions06.ts(3,22): error TS1501: This regula // 1. Assert: 0 ≤ cp ≤ 0x10FFFF. var x = /\u{10FFFF}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt index d08aab183a0a1..1234f30a12e2c 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07(target=es5).errors.txt @@ -1,5 +1,5 @@ unicodeExtendedEscapesInRegularExpressions07.ts(3,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. -unicodeExtendedEscapesInRegularExpressions07.ts(3,22): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions07.ts(3,22): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions07.ts (2 errors) ==== @@ -9,5 +9,5 @@ unicodeExtendedEscapesInRegularExpressions07.ts(3,22): error TS1501: This regula ~~~~~~ !!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt index 172756f2dce9e..a3b5b30aac479 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08(target=es5).errors.txt @@ -1,4 +1,4 @@ -unicodeExtendedEscapesInRegularExpressions08.ts(4,20): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions08.ts(4,20): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions08.ts (1 errors) ==== @@ -7,5 +7,5 @@ unicodeExtendedEscapesInRegularExpressions08.ts(4,20): error TS1501: This regula // (FFFF == 65535) var x = /\u{FFFF}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt index 2e6f30c5f509d..95d5dd12e3b24 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09(target=es5).errors.txt @@ -1,4 +1,4 @@ -unicodeExtendedEscapesInRegularExpressions09.ts(4,21): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions09.ts(4,21): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions09.ts (1 errors) ==== @@ -7,5 +7,5 @@ unicodeExtendedEscapesInRegularExpressions09.ts(4,21): error TS1501: This regula // (10000 == 65536) var x = /\u{10000}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt index 5f082393dff78..a3e4686d217e2 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10(target=es5).errors.txt @@ -1,4 +1,4 @@ -unicodeExtendedEscapesInRegularExpressions10.ts(5,20): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions10.ts(5,20): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions10.ts (1 errors) ==== @@ -8,5 +8,5 @@ unicodeExtendedEscapesInRegularExpressions10.ts(5,20): error TS1501: This regula // this is a useful edge-case test. var x = /\u{D800}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt index 198a795425594..4f04207f550cc 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11(target=es5).errors.txt @@ -1,4 +1,4 @@ -unicodeExtendedEscapesInRegularExpressions11.ts(5,20): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions11.ts(5,20): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions11.ts (1 errors) ==== @@ -8,5 +8,5 @@ unicodeExtendedEscapesInRegularExpressions11.ts(5,20): error TS1501: This regula // this is a useful edge-case test. var x = /\u{DC00}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt index 83f547fc40238..01a2ed15ccb52 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions12(target=es5).errors.txt @@ -1,5 +1,5 @@ unicodeExtendedEscapesInRegularExpressions12.ts(1,13): error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. -unicodeExtendedEscapesInRegularExpressions12.ts(1,24): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions12.ts(1,24): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions12.ts (2 errors) ==== @@ -7,5 +7,5 @@ unicodeExtendedEscapesInRegularExpressions12.ts(1,24): error TS1501: This regula ~~~~~~~~ !!! error TS1198: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt index 48ce2ad7697f0..f307764d37902 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions13(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions13.ts(1,21): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions13.ts(1,21): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions13.ts (1 errors) ==== var x = /\u{DDDDD}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt index c82261f8177e2..9a108e96403cb 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions14(target=es5).errors.txt @@ -1,6 +1,6 @@ unicodeExtendedEscapesInRegularExpressions14.ts(2,13): error TS1125: Hexadecimal digit expected. unicodeExtendedEscapesInRegularExpressions14.ts(2,18): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? -unicodeExtendedEscapesInRegularExpressions14.ts(2,21): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions14.ts(2,21): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions14.ts (3 errors) ==== @@ -11,5 +11,5 @@ unicodeExtendedEscapesInRegularExpressions14.ts(2,21): error TS1501: This regula ~ !!! error TS1508: Unexpected '}'. Did you mean to escape it with backslash? ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt index 163c7ad3acaea..10f023bfa0f5e 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions15(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions15.ts(1,44): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions15.ts(1,44): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions15.ts (1 errors) ==== var x = /\u{abcd}\u{ef12}\u{3456}\u{7890}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt index b71a8df9f5c1b..736b8082149e6 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions16(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions16.ts(1,44): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions16.ts(1,44): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions16.ts (1 errors) ==== var x = /\u{ABCD}\u{EF12}\u{3456}\u{7890}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt index 7804bf54a3ec3..d2eca7a5a4ace 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions17(target=es5).errors.txt @@ -4,7 +4,7 @@ unicodeExtendedEscapesInRegularExpressions17.ts(1,18): error TS1125: Hexadecimal unicodeExtendedEscapesInRegularExpressions17.ts(1,19): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? unicodeExtendedEscapesInRegularExpressions17.ts(1,23): error TS1125: Hexadecimal digit expected. unicodeExtendedEscapesInRegularExpressions17.ts(1,24): error TS1508: Unexpected '}'. Did you mean to escape it with backslash? -unicodeExtendedEscapesInRegularExpressions17.ts(1,27): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions17.ts(1,27): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions17.ts (7 errors) ==== @@ -22,5 +22,5 @@ unicodeExtendedEscapesInRegularExpressions17.ts(1,27): error TS1501: This regula ~ !!! error TS1508: Unexpected '}'. Did you mean to escape it with backslash? ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt index 62be405338bf0..d3c12b909f223 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions18(target=es5).errors.txt @@ -1,8 +1,8 @@ -unicodeExtendedEscapesInRegularExpressions18.ts(1,24): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions18.ts(1,24): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions18.ts (1 errors) ==== var x = /\u{65}\u{65}/gu; ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt index 2959bd364fa97..d1507998bd49f 100644 --- a/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt +++ b/tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions19(target=es5).errors.txt @@ -1,5 +1,5 @@ unicodeExtendedEscapesInRegularExpressions19.ts(1,13): error TS1125: Hexadecimal digit expected. -unicodeExtendedEscapesInRegularExpressions19.ts(1,16): error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +unicodeExtendedEscapesInRegularExpressions19.ts(1,16): error TS1501: This regular expression flag is only available when targeting 'es6' or later. ==== unicodeExtendedEscapesInRegularExpressions19.ts (2 errors) ==== @@ -7,5 +7,5 @@ unicodeExtendedEscapesInRegularExpressions19.ts(1,16): error TS1501: This regula !!! error TS1125: Hexadecimal digit expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'ES2015' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'es6' or later. \ No newline at end of file diff --git a/tests/cases/compiler/regExpWithOpenBracketInCharClass.ts b/tests/cases/compiler/regExpWithOpenBracketInCharClass.ts new file mode 100644 index 0000000000000..94db65df7c0db --- /dev/null +++ b/tests/cases/compiler/regExpWithOpenBracketInCharClass.ts @@ -0,0 +1,7 @@ +// @target: es5,es2015,esnext + +const regexes: RegExp[] = [ + /[[]/, // Valid + /[[]/u, // Valid + /[[]/v, // Well-terminated regex with an incomplete character class +]; diff --git a/tests/cases/compiler/regularExpressionScanning.ts b/tests/cases/compiler/regularExpressionScanning.ts index d8620523362ec..214ff8e9f4033 100644 --- a/tests/cases/compiler/regularExpressionScanning.ts +++ b/tests/cases/compiler/regularExpressionScanning.ts @@ -1,11 +1,11 @@ -// @target: es3,es5,es2015,esnext +// @target: es5,es2015,esnext const regexes: RegExp[] = [ // Flags /foo/visualstudiocode, // Pattern modifiers /(?med-ium:bar)/, - // Capture groups + // Capturing groups /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/, /\2()(\12)(foo)\1\0[\0\1\01\123](\3\03)\5\005/u, /(?)((?bar)bar)(?baz)|(foo(?foo))(?)/, From 7eaf7a8487b7d3a0eaeab2ca5d12e9f4e1109a9c Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 19 Apr 2024 15:21:55 -0700 Subject: [PATCH 09/10] Make v flag be ESNext until ES2024 is ratified --- src/compiler/commandLineParser.ts | 1 - src/compiler/scanner.ts | 2 +- src/compiler/types.ts | 1 - src/server/protocol.ts | 1 - tests/baselines/reference/api/typescript.d.ts | 2 - .../Parse empty options of --target.js | 2 +- ...arget to compiler-options with json api.js | 2 +- ...ompiler-options with jsonSourceFile api.js | 2 +- ...invalid strings with jsonSourceFile api.js | 2 +- ...acketInCharClass(target=es2015).errors.txt | 4 +- ...nBracketInCharClass(target=es5).errors.txt | 4 +- ...pressionScanning(target=es2015).errors.txt | 60 +++++++++---------- ...rExpressionScanning(target=es5).errors.txt | 60 +++++++++---------- ...does-not-add-color-when-NO_COLOR-is-set.js | 2 +- ...-when-host-can't-provide-terminal-width.js | 2 +- ...tatus.DiagnosticsPresent_OutputsSkipped.js | 2 +- 16 files changed, 72 insertions(+), 77 deletions(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index bde20c26135ce..4aff5cdc2648e 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -538,7 +538,6 @@ export const targetOptionDeclaration: CommandLineOptionOfCustomType = { es2021: ScriptTarget.ES2021, es2022: ScriptTarget.ES2022, es2023: ScriptTarget.ES2023, - es2024: ScriptTarget.ES2024, esnext: ScriptTarget.ESNext, })), affectsSourceFile: true, diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index a59fc0c987c30..01dc3b1b31494 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -298,7 +298,7 @@ const regExpFlagToFirstAvailableLanguageVersion = new Map([ [RegularExpressionFlags.Multiline, ScriptTarget.ES3], [RegularExpressionFlags.DotAll, ScriptTarget.ES2018], [RegularExpressionFlags.Unicode, ScriptTarget.ES2015], - [RegularExpressionFlags.UnicodeSets, ScriptTarget.ES2024], + [RegularExpressionFlags.UnicodeSets, ScriptTarget.ESNext], [RegularExpressionFlags.Sticky, ScriptTarget.ES2015], ]); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 0c1358942cc08..ba7f911d17862 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -7445,7 +7445,6 @@ export const enum ScriptTarget { ES2021 = 8, ES2022 = 9, ES2023 = 10, - ES2024 = 11, ESNext = 99, JSON = 100, Latest = ESNext, diff --git a/src/server/protocol.ts b/src/server/protocol.ts index 157ae79501840..b27fb4d5c3dc1 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -3143,7 +3143,6 @@ export const enum ScriptTarget { ES2021 = "es2021", ES2022 = "es2022", ES2023 = "es2023", - ES2024 = "es2024", ESNext = "esnext", JSON = "json", Latest = ESNext, diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 7f35dab2847e3..3fa0b1c91162f 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2417,7 +2417,6 @@ declare namespace ts { ES2021 = "es2021", ES2022 = "es2022", ES2023 = "es2023", - ES2024 = "es2024", ESNext = "esnext", JSON = "json", Latest = "esnext", @@ -7064,7 +7063,6 @@ declare namespace ts { ES2021 = 8, ES2022 = 9, ES2023 = 10, - ES2024 = 11, ESNext = 99, JSON = 100, Latest = 99, diff --git a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js index 6c8e2c7f578eb..149d87a41590c 100644 --- a/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js +++ b/tests/baselines/reference/config/commandLineParsing/parseCommandLine/Parse empty options of --target.js @@ -7,4 +7,4 @@ FileNames:: 0.ts Errors:: error TS6044: Compiler option 'target' expects an argument. -error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. +error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js index b6a032226b147..2ebee617e2d85 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with json api.js @@ -23,5 +23,5 @@ CompilerOptions:: "configFilePath": "/apath/tsconfig.json" } Errors:: -error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. +error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext'. diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js index 84a12546e9ba4..3be09424e2bf0 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert incorrect option of target to compiler-options with jsonSourceFile api.js @@ -23,7 +23,7 @@ CompilerOptions:: "configFilePath": "/apath/tsconfig.json" } Errors:: -tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. +tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext'. 3 "target": "",    ~~ diff --git a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js index 5f7b31f5d8a6d..84bc05f9ef8eb 100644 --- a/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js +++ b/tests/baselines/reference/config/convertCompilerOptionsFromJson/Convert tsconfig options when there are multiple invalid strings with jsonSourceFile api.js @@ -47,7 +47,7 @@ Errors::   ~~~  19 }   ~ -tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'es2024', 'esnext'. +tsconfig.json:3:15 - error TS6046: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext'. 3 "target": "<%- options.useTsWithBabel ? 'esnext' : 'es5' %>",    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt index 86e97bc3edce0..eb71d3c815391 100644 --- a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es2015).errors.txt @@ -1,5 +1,5 @@ regExpWithOpenBracketInCharClass.ts(4,7): error TS1005: ']' expected. -regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ==== regExpWithOpenBracketInCharClass.ts (2 errors) ==== @@ -10,6 +10,6 @@ regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression !!! error TS1005: ']' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ]; \ No newline at end of file diff --git a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt index b73fabe019701..ef21d90567f5e 100644 --- a/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt +++ b/tests/baselines/reference/regExpWithOpenBracketInCharClass(target=es5).errors.txt @@ -1,6 +1,6 @@ regExpWithOpenBracketInCharClass.ts(3,8): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regExpWithOpenBracketInCharClass.ts(4,7): error TS1005: ']' expected. -regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ==== regExpWithOpenBracketInCharClass.ts (3 errors) ==== @@ -13,6 +13,6 @@ regExpWithOpenBracketInCharClass.ts(4,8): error TS1501: This regular expression !!! error TS1005: ']' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ]; \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt index ae8cc0c19810b..45e837e1bf737 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt +++ b/tests/baselines/reference/regularExpressionScanning(target=es2015).errors.txt @@ -1,4 +1,4 @@ -regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'es2018' or later. regularExpressionScanning.ts(3,10): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. regularExpressionScanning.ts(3,11): error TS1499: Unknown regular expression flag. @@ -66,7 +66,7 @@ regularExpressionScanning.ts(16,28): error TS1529: Unknown Unicode property name regularExpressionScanning.ts(16,62): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(17,28): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(17,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(18,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(18,6): error TS1524: Unknown Unicode property name. regularExpressionScanning.ts(18,28): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -102,7 +102,7 @@ regularExpressionScanning.ts(20,53): error TS1531: '\p' must be followed by a Un regularExpressionScanning.ts(20,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. regularExpressionScanning.ts(20,62): error TS1527: Expected a Unicode property name or value. regularExpressionScanning.ts(20,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(21,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,6): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,16): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -118,7 +118,7 @@ regularExpressionScanning.ts(22,47): error TS1528: Any Unicode property that wou regularExpressionScanning.ts(23,19): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,31): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,47): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(25,17): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(25,23): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,3): error TS1512: '\c' must be followed by an ASCII letter. @@ -159,7 +159,7 @@ regularExpressionScanning.ts(29,42): error TS1508: Unexpected ']'. Did you mean regularExpressionScanning.ts(29,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,46): error TS1005: '}' expected. -regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(31,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,34): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -196,32 +196,32 @@ regularExpressionScanning.ts(33,67): error TS1005: '--' expected. regularExpressionScanning.ts(33,70): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,75): error TS1508: Unexpected '&'. Did you mean to escape it with backslash? regularExpressionScanning.ts(33,85): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(34,56): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. -regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. -regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. +regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(36,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(36,30): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(37,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,28): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,53): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. -regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. +regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(39,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(39,34): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(40,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,32): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,61): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(41,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(41,79): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(42,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ==== regularExpressionScanning.ts (224 errors) ==== @@ -229,7 +229,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag // Flags /foo/visualstudiocode, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ~ !!! error TS1501: This regular expression flag is only available when targeting 'es2018' or later. ~ @@ -379,7 +379,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~ !!! error TS1529: Unknown Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, ~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -454,7 +454,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1527: Expected a Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, ~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -489,7 +489,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, ~~ @@ -577,7 +577,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1005: '}' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, ~~~ @@ -655,24 +655,24 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1520: Expected a class set oprand. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, ~~ !!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. !!! error TS1005: '&&' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -681,17 +681,17 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -700,20 +700,20 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ]; \ No newline at end of file diff --git a/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt b/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt index 9dbdc5177265d..33da1f9c67165 100644 --- a/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt +++ b/tests/baselines/reference/regularExpressionScanning(target=es5).errors.txt @@ -1,4 +1,4 @@ -regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(3,7): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(3,9): error TS1501: This regular expression flag is only available when targeting 'es2018' or later. regularExpressionScanning.ts(3,10): error TS1502: The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. regularExpressionScanning.ts(3,11): error TS1499: Unknown regular expression flag. @@ -68,7 +68,7 @@ regularExpressionScanning.ts(16,62): error TS1529: Unknown Unicode property name regularExpressionScanning.ts(16,72): error TS1501: This regular expression flag is only available when targeting 'es6' or later. regularExpressionScanning.ts(17,28): error TS1529: Unknown Unicode property name or value. regularExpressionScanning.ts(17,62): error TS1529: Unknown Unicode property name or value. -regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(17,72): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(18,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(18,6): error TS1524: Unknown Unicode property name. regularExpressionScanning.ts(18,28): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -105,7 +105,7 @@ regularExpressionScanning.ts(20,53): error TS1531: '\p' must be followed by a Un regularExpressionScanning.ts(20,57): error TS1531: '\P' must be followed by a Unicode property value expression enclosed in braces. regularExpressionScanning.ts(20,62): error TS1527: Expected a Unicode property name or value. regularExpressionScanning.ts(20,66): error TS1527: Expected a Unicode property name or value. -regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(20,67): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(21,3): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,6): error TS1528: Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. regularExpressionScanning.ts(21,16): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -122,7 +122,7 @@ regularExpressionScanning.ts(22,59): error TS1501: This regular expression flag regularExpressionScanning.ts(23,19): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,31): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(23,47): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(23,59): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(25,17): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(25,23): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(26,3): error TS1512: '\c' must be followed by an ASCII letter. @@ -165,7 +165,7 @@ regularExpressionScanning.ts(29,42): error TS1508: Unexpected ']'. Did you mean regularExpressionScanning.ts(29,43): error TS1535: This character cannot be escaped in a regular expression. regularExpressionScanning.ts(29,45): error TS1508: Unexpected '{'. Did you mean to escape it with backslash? regularExpressionScanning.ts(29,46): error TS1005: '}' expected. -regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(29,47): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(31,4): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,8): error TS1517: Range out of order in character class. regularExpressionScanning.ts(31,34): error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -203,32 +203,32 @@ regularExpressionScanning.ts(33,67): error TS1005: '--' expected. regularExpressionScanning.ts(33,70): error TS1520: Expected a class set oprand. regularExpressionScanning.ts(33,75): error TS1508: Unexpected '&'. Did you mean to escape it with backslash? regularExpressionScanning.ts(33,85): error TS1520: Expected a class set oprand. -regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(33,87): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(34,56): error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. regularExpressionScanning.ts(34,67): error TS1005: '&&' expected. -regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. -regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(34,77): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. +regularExpressionScanning.ts(35,83): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(36,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(36,30): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(36,83): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(37,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,28): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(37,53): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. -regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(37,77): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. +regularExpressionScanning.ts(38,95): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(39,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(39,34): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(39,95): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(40,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,32): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(40,61): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(40,89): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(41,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(41,79): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(41,91): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. regularExpressionScanning.ts(42,5): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. regularExpressionScanning.ts(42,89): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. -regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ==== regularExpressionScanning.ts (231 errors) ==== @@ -236,7 +236,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag // Flags /foo/visualstudiocode, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ~ !!! error TS1501: This regular expression flag is only available when targeting 'es2018' or later. ~ @@ -390,7 +390,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~ !!! error TS1529: Unknown Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /\p{InvalidProperty=Value}\p{=}\p{sc=}\P{=foo}[\p{}\p\\\P\P{]\p{/, ~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -467,7 +467,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1527: Expected a Unicode property name or value. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /\p{RGI_Emoji}\P{RGI_Emoji}[^\p{RGI_Emoji}\P{RGI_Emoji}]/, ~~~~~~~~~~~~~ !!! error TS1530: Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. @@ -504,7 +504,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. // Character escapes /\c[\c0\ca\cQ\c\C]\c1\C/, ~~ @@ -596,7 +596,7 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1005: '}' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. // Unicode sets notation /[a--b[--][\d++[]]&&[[&0-9--]&&[\p{L}]--\P{L}-_-]]&&&\q{foo}[0---9][&&q&&&\q{bar}&&]/, ~~~ @@ -676,24 +676,24 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag !!! error TS1520: Expected a class set oprand. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[[^\P{Decimal_Number}&&[0-9]]&&\p{L}&&\p{ID_Continue}--\p{ASCII}\p{CWCF}]/v, ~~ !!! error TS1519: Operators must not be mixed within a character class. Wrap it in a nested class instead. !!! error TS1005: '&&' expected. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{Emoji}\p{RGI_Emoji}][^\p{Emoji}--\p{RGI_Emoji}][^\p{Emoji}&&\p{RGI_Emoji}]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{RGI_Emoji}\p{Emoji}][^\p{RGI_Emoji}--\p{Emoji}][^\p{RGI_Emoji}&&\p{Emoji}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{RGI_Emoji}\q{foo}][^\p{RGI_Emoji}--\q{foo}][^\p{RGI_Emoji}&&\q{foo}]/v, ~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -702,17 +702,17 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\p{Emoji}[[\p{RGI_Emoji}]]][^\p{Emoji}--[[\p{RGI_Emoji}]]][^\p{Emoji}&&[[\p{RGI_Emoji}]]]/v, ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^[[\p{RGI_Emoji}]]\p{Emoji}][^[[\p{RGI_Emoji}]]--\p{Emoji}][^[[\p{RGI_Emoji}]]&&\p{Emoji}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^[[\p{RGI_Emoji}]]\q{foo}][^[[\p{RGI_Emoji}]]--\q{foo}][^[[\p{RGI_Emoji}]]&&\q{foo}]/v, ~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. @@ -721,20 +721,20 @@ regularExpressionScanning.ts(42,101): error TS1501: This regular expression flag ~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^\q{foo|bar|baz}--\q{foo}--\q{bar}--\q{baz}][^\p{L}--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. /[^[[\q{foo|bar|baz}]]--\q{foo}--\q{bar}--\q{baz}][^[^[^\p{L}]]--\q{foo}--[\q{bar}]--[^[\q{baz}]]]/v, ~~~~~~~~~~~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~~~~~~~~~ !!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class. ~ -!!! error TS1501: This regular expression flag is only available when targeting 'es2024' or later. +!!! error TS1501: This regular expression flag is only available when targeting 'esnext' or later. ]; \ No newline at end of file diff --git a/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js b/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js index e7a75ca729839..97c9057dd03b3 100644 --- a/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js +++ b/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js @@ -101,7 +101,7 @@ default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, esnext default: es5 --module, -m diff --git a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js index 1d9724f9ea654..8191f56bbf51a 100644 --- a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js +++ b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js @@ -101,7 +101,7 @@ default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, esnext default: es5 --module, -m diff --git a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index 1d9724f9ea654..8191f56bbf51a 100644 --- a/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -101,7 +101,7 @@ default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. -one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, esnext default: es5 --module, -m From 5aa3574608f7e7004d272dbc4d9f84465550a4a2 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 19 Apr 2024 15:48:49 -0700 Subject: [PATCH 10/10] remove baseline --- .../callChainWithSuper(target=es2024).js | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/baselines/reference/callChainWithSuper(target=es2024).js diff --git a/tests/baselines/reference/callChainWithSuper(target=es2024).js b/tests/baselines/reference/callChainWithSuper(target=es2024).js deleted file mode 100644 index 96be01245bfa7..0000000000000 --- a/tests/baselines/reference/callChainWithSuper(target=es2024).js +++ /dev/null @@ -1,20 +0,0 @@ -//// [tests/cases/conformance/expressions/optionalChaining/callChain/callChainWithSuper.ts] //// - -//// [callChainWithSuper.ts] -// GH#34952 -class Base { method?() {} } -class Derived extends Base { - method1() { return super.method?.(); } - method2() { return super["method"]?.(); } -} - -//// [callChainWithSuper.js] -"use strict"; -// GH#34952 -class Base { - method() { } -} -class Derived extends Base { - method1() { return super.method?.(); } - method2() { return super["method"]?.(); } -}