summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/identifiers/part-unicode-15.1.0-escaped.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/identifiers/part-unicode-15.1.0-escaped.js')
-rw-r--r--js/src/tests/test262/language/identifiers/part-unicode-15.1.0-escaped.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/identifiers/part-unicode-15.1.0-escaped.js b/js/src/tests/test262/language/identifiers/part-unicode-15.1.0-escaped.js
new file mode 100644
index 0000000000..4528c26214
--- /dev/null
+++ b/js/src/tests/test262/language/identifiers/part-unicode-15.1.0-escaped.js
@@ -0,0 +1,18 @@
+// Copyright 2023 Mathias Bynens. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+author: Mathias Bynens
+esid: sec-names-and-keywords
+description: |
+ Test that Unicode v15.1.0 ID_Continue characters are accepted as
+ identifier part characters in escaped form, i.e.
+ - \uXXXX or \u{XXXX} for BMP symbols
+ - \u{XXXXXX} for astral symbols
+info: |
+ Generated by https://github.com/mathiasbynens/caniunicode
+---*/
+
+var _\u200C\u200D;
+
+reportCompare(0, 0);