test262/test/language/identifiers/part-unicode-5.2.0-class.js
Mathias Bynens f864edbc1c Add identifier tests for private class fields specifically
@bathos discovered that multiple engines implement this incorrectly:
https://twitter.com/bhathos/status/1478370049303928832

With that in mind, it’s probably worth adding some test coverage.
Test generator patch: https://github.com/mathiasbynens/caniunicode/pull/6
2022-01-05 14:24:20 -05:00

18 lines
1.1 KiB
JavaScript

// Copyright 2022 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 v5.2.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 _ {
#_᩿᪀᪁᪂᪃᪄᪅᪆᪇᪈᪉᪐᪑᪒᪓᪔᪕᪖᪗᪘᪙ꦿ꧐꧑꧒꧓꧔꧕꧖꧗꧘꧙꪿꯰꯱꯲꯳꯴꯵꯶꯷꯸꯹𑂀𑂁𑂂𑂰𑂱𑂲𑂳𑂴𑂵𑂶𑂷𑂸𑂺𑂹;
};