test262/test/language/literals/regexp/named-groups/invalid-u-escape-in-groupsp...

16 lines
361 B
JavaScript

// Copyright 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: \u{} escapes in GroupSpecifier allowed only in Unicode mode
esid: prod-GroupSpecifier
negative:
phase: parse
type: SyntaxError
features: [regexp-named-groups]
---*/
$DONOTEVALUATE();
/(?<\u{03C0}>a)/;