-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for escapes in strings, regexes, and templates.
- Loading branch information
1 parent
d1df797
commit f16e875
Showing
348 changed files
with
2,814 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions01_ES5.ts] | ||
|
||
var x = /\u{0}/g; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions01_ES5.js] | ||
var x = /\u{0}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES5.ts === | ||
|
||
var x = /\u{0}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions01_ES6.ts] | ||
|
||
var x = /\u{0}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions01_ES6.js] | ||
var x = /\u{0}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions01_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions01_ES6.ts === | ||
|
||
var x = /\u{0}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions02_ES5.ts] | ||
|
||
var x = /\u{00}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions02_ES5.js] | ||
var x = /\u{00}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES5.ts === | ||
|
||
var x = /\u{00}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions02_ES6.ts] | ||
|
||
var x = /\u{00}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions02_ES6.js] | ||
var x = /\u{00}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions02_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions02_ES6.ts === | ||
|
||
var x = /\u{00}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions03_ES5.ts] | ||
|
||
var x = /\u{0000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions03_ES5.js] | ||
var x = /\u{0000}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES5.ts === | ||
|
||
var x = /\u{0000}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions03_ES6.ts] | ||
|
||
var x = /\u{0000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions03_ES6.js] | ||
var x = /\u{0000}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions03_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions03_ES6.ts === | ||
|
||
var x = /\u{0000}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions04_ES5.ts] | ||
|
||
var x = /\u{00000000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions04_ES5.js] | ||
var x = /\u{00000000}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES5.ts === | ||
|
||
var x = /\u{00000000}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions04_ES6.ts] | ||
|
||
var x = /\u{00000000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions04_ES6.js] | ||
var x = /\u{00000000}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions04_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions04_ES6.ts === | ||
|
||
var x = /\u{00000000}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions05_ES5.ts] | ||
|
||
var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions05_ES5.js] | ||
var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES5.ts === | ||
|
||
var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; | ||
>x : RegExp | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions05_ES6.ts] | ||
|
||
var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions05_ES6.js] | ||
var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; |
5 changes: 5 additions & 0 deletions
5
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions05_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions05_ES6.ts === | ||
|
||
var x = /\u{48}\u{65}\u{6c}\u{6c}\u{6f}\u{20}\u{77}\u{6f}\u{72}\u{6c}\u{64}/g; | ||
>x : RegExp | ||
|
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions06_ES5.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{10FFFF}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions06_ES5.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{10FFFF}/g; |
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES5.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{10FFFF}/g; | ||
>x : RegExp | ||
|
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions06_ES6.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{10FFFF}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions06_ES6.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{10FFFF}/g; |
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions06_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions06_ES6.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{10FFFF}/g; | ||
>x : RegExp | ||
|
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions07_ES5.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{110000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions07_ES5.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{110000}/g; |
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES5.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{110000}/g; | ||
>x : RegExp | ||
|
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions07_ES6.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{110000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions07_ES6.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{110000}/g; |
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions07_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions07_ES6.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 1. Assert: 0 ≤ cp ≤ 0x10FFFF. | ||
var x = /\u{110000}/g; | ||
>x : RegExp | ||
|
13 changes: 13 additions & 0 deletions
13
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions08_ES5.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (FFFF == 65535) | ||
var x = /\u{FFFF}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions08_ES5.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (FFFF == 65535) | ||
var x = /\u{FFFF}/g; |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES5.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (FFFF == 65535) | ||
var x = /\u{FFFF}/g; | ||
>x : RegExp | ||
|
13 changes: 13 additions & 0 deletions
13
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions08_ES6.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (FFFF == 65535) | ||
var x = /\u{FFFF}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions08_ES6.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (FFFF == 65535) | ||
var x = /\u{FFFF}/g; |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions08_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions08_ES6.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (FFFF == 65535) | ||
var x = /\u{FFFF}/g; | ||
>x : RegExp | ||
|
13 changes: 13 additions & 0 deletions
13
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions09_ES5.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (10000 == 65536) | ||
var x = /\u{10000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions09_ES5.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (10000 == 65536) | ||
var x = /\u{10000}/g; |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES5.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (10000 == 65536) | ||
var x = /\u{10000}/g; | ||
>x : RegExp | ||
|
13 changes: 13 additions & 0 deletions
13
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions09_ES6.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (10000 == 65536) | ||
var x = /\u{10000}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions09_ES6.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (10000 == 65536) | ||
var x = /\u{10000}/g; |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions09_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions09_ES6.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. If cp ≤ 65535, return cp. | ||
// (10000 == 65536) | ||
var x = /\u{10000}/g; | ||
>x : RegExp | ||
|
15 changes: 15 additions & 0 deletions
15
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions10_ES5.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. | ||
// Although we should just get back a single code point value of 0xD800, | ||
// this is a useful edge-case test. | ||
var x = /\u{D800}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions10_ES5.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. | ||
// Although we should just get back a single code point value of 0xD800, | ||
// this is a useful edge-case test. | ||
var x = /\u{D800}/g; |
9 changes: 9 additions & 0 deletions
9
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES5.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. | ||
// Although we should just get back a single code point value of 0xD800, | ||
// this is a useful edge-case test. | ||
var x = /\u{D800}/g; | ||
>x : RegExp | ||
|
15 changes: 15 additions & 0 deletions
15
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions10_ES6.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. | ||
// Although we should just get back a single code point value of 0xD800, | ||
// this is a useful edge-case test. | ||
var x = /\u{D800}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions10_ES6.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. | ||
// Although we should just get back a single code point value of 0xD800, | ||
// this is a useful edge-case test. | ||
var x = /\u{D800}/g; |
9 changes: 9 additions & 0 deletions
9
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions10_ES6.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions10_ES6.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. | ||
// Although we should just get back a single code point value of 0xD800, | ||
// this is a useful edge-case test. | ||
var x = /\u{D800}/g; | ||
>x : RegExp | ||
|
15 changes: 15 additions & 0 deletions
15
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//// [unicodeExtendedEscapesInRegularExpressions11_ES5.ts] | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. | ||
// Although we should just get back a single code point value of 0xDC00, | ||
// this is a useful edge-case test. | ||
var x = /\u{DC00}/g; | ||
|
||
|
||
//// [unicodeExtendedEscapesInRegularExpressions11_ES5.js] | ||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. | ||
// Although we should just get back a single code point value of 0xDC00, | ||
// this is a useful edge-case test. | ||
var x = /\u{DC00}/g; |
9 changes: 9 additions & 0 deletions
9
tests/baselines/reference/unicodeExtendedEscapesInRegularExpressions11_ES5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=== tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInRegularExpressions11_ES5.ts === | ||
|
||
// ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp) | ||
// 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. | ||
// Although we should just get back a single code point value of 0xDC00, | ||
// this is a useful edge-case test. | ||
var x = /\u{DC00}/g; | ||
>x : RegExp | ||
|
Oops, something went wrong.
Should we warn the users that we don't support the feature