mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
This functionality is part of the RegExp `v` flag proposal: https://github.com/tc39/proposal-regexp-set-notation
21 lines
580 B
JavaScript
21 lines
580 B
JavaScript
// Copyright 2021 Mathias Bynens. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
author: Mathias Bynens
|
|
description: >
|
|
Negating Unicode property escapes for `Emoji_Test` (property of strings) with `\P{…}` throws an early error.
|
|
info: |
|
|
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
|
|
Unicode v14.0.0
|
|
esid: sec-isvalidregularexpressionliteral
|
|
features: [regexp-unicode-property-escapes, regexp-v-flag]
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
|
|
/\P{Emoji_Test}/v;
|