52dc1d799f
Unicode v12 was released today: https://unicode.org/versions/Unicode12.0.0/ This patch updates the following sequence property escapes per Unicode 12: - Emoji_Flag_Sequence (no changes) - Emoji_Keycap_Sequence (no changes) - Emoji_Tag_Sequence (no changes) - Emoji_ZWJ_Sequence Note that Emoji_Modifier_Sequence is still using Unicode 11 data. This will be fixed automatically once a version of ICU with Unicode 12 support rolls into V8, at which point I'll update the relevant tests. Bug: v8:7467 Change-Id: Iba575a471382ba7b029da06c2868c368ff43c649 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1503764 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org> Cr-Commit-Position: refs/heads/master@{#60052}
25 lines
868 B
JavaScript
25 lines
868 B
JavaScript
// Copyright 2019 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --harmony-regexp-sequence
|
|
|
|
// These tests have been generated by the script at
|
|
// https://gist.github.com/mathiasbynens/3b42c99a227521dabfe68d9e63f00f42.
|
|
// Do not modify this file directly!
|
|
|
|
const re = /\p{Emoji_Keycap_Sequence}/u;
|
|
|
|
assertTrue(re.test('#\uFE0F\u20E3'));
|
|
assertTrue(re.test('9\uFE0F\u20E3'));
|
|
assertTrue(re.test('0\uFE0F\u20E3'));
|
|
assertTrue(re.test('1\uFE0F\u20E3'));
|
|
assertTrue(re.test('2\uFE0F\u20E3'));
|
|
assertTrue(re.test('3\uFE0F\u20E3'));
|
|
assertTrue(re.test('*\uFE0F\u20E3'));
|
|
assertTrue(re.test('5\uFE0F\u20E3'));
|
|
assertTrue(re.test('6\uFE0F\u20E3'));
|
|
assertTrue(re.test('7\uFE0F\u20E3'));
|
|
assertTrue(re.test('8\uFE0F\u20E3'));
|
|
assertTrue(re.test('4\uFE0F\u20E3'));
|