| 1 |
// Copyright 2017 Mathias Bynens. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
author: Mathias Bynens |
| 6 |
description: > |
| 7 |
Non-existent properties must not be supported in Unicode property escapes. |
| 8 |
esid: sec-static-semantics-unicodematchproperty-p |
| 9 |
features: [regexp-unicode-property-escapes] |
| 10 |
---*/ |
| 11 |
|
| 12 |
assert.throws.early(SyntaxError, "/\\p{UnknownBinaryProperty}/u"); |
| 13 |
assert.throws.early(SyntaxError, "/\\P{UnknownBinaryProperty}/u"); |
| 14 |
|
| 15 |
assert.throws.early(SyntaxError, "/\\p{Line_Breakz=Alphabetic}/u"); |
| 16 |
assert.throws.early(SyntaxError, "/\\P{Line_Breakz=Alphabetic}/u"); |