mirror of https://github.com/tc39/test262.git
22 lines
563 B
JavaScript
22 lines
563 B
JavaScript
// Copyright 2018 Mathias Bynens. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
author: Mathias Bynens
|
|
description: >
|
|
This tests violations of the grammar starting here:
|
|
|
|
CharacterClassEscape[U]::
|
|
[+U] p{ UnicodePropertyValueExpression }
|
|
[+U] P{ UnicodePropertyValueExpression }
|
|
esid: prod-CharacterClassEscape
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
features: [regexp-unicode-property-escapes]
|
|
---*/
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
/\P{General_Category:Letter}/u;
|