1 // Copyright (C) 2015 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 description: B.1.4 is not applied for Unicode RegExp - Standalone brackets
7 The compatibility extensions defined in B.1.4 Regular Expressions Patterns
8 are not applied for Unicode RegExp.
9 Tested extension: "Atom[U] :: PatternCharacter"
13 // Single parentheses and brackets.
14 assert.throws(SyntaxError, function() {
16 }, 'RegExp("(", "u"): ');
17 assert.throws(SyntaxError, function() {
19 }, 'RegExp(")", "u"): ');
20 assert.throws(SyntaxError, function() {
22 }, 'RegExp("[", "u"): ');
23 assert.throws(SyntaxError, function() {
25 }, 'RegExp("]", "u"): ');
26 assert.throws(SyntaxError, function() {
28 }, 'RegExp("{", "u"): ');
29 assert.throws(SyntaxError, function() {
31 }, 'RegExp("}", "u"): ');