diff options
Diffstat (limited to 'js/src/tests/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.js')
-rw-r--r-- | js/src/tests/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.js b/js/src/tests/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.js new file mode 100644 index 0000000000..e2c7bdb4fb --- /dev/null +++ b/js/src/tests/test262/language/literals/regexp/named-groups/invalid-unterminated-groupspecifier.js @@ -0,0 +1,16 @@ +// |reftest| error:SyntaxError +// Copyright 2017 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: GroupSpecifier must be identifier-like. +esid: prod-GroupSpecifier +negative: + phase: parse + type: SyntaxError +features: [regexp-named-groups] +---*/ + +$DONOTEVALUATE(); + +/(?<aa)/; |