Add Unicode v15.1.0-sensitive `IdentifierPart` tests (#3833)

Ref. https://github.com/tc39/ecma262/issues/3073
This commit is contained in:
Mathias Bynens 2023-09-15 12:27:42 +02:00 committed by GitHub
parent 3c9b3913b2
commit 59bad89898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// Copyright 2023 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
esid: prod-PrivateIdentifier
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
in private class fields.
info: |
Generated by https://github.com/mathiasbynens/caniunicode
features: [class, class-fields-private]
---*/
class _ {
#_\u200C\u200D;
};

View File

@ -0,0 +1,17 @@
// Copyright 2023 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
esid: prod-PrivateIdentifier
description: |
Test that Unicode v15.1.0 ID_Continue characters are accepted as
identifier part characters in private class fields.
info: |
Generated by https://github.com/mathiasbynens/caniunicode
features: [class, class-fields-private]
---*/
class _ {
#_;
};

View File

@ -0,0 +1,16 @@
// 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;

View File

@ -0,0 +1,14 @@
// 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.
info: |
Generated by https://github.com/mathiasbynens/caniunicode
---*/
var _;