summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js b/js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js
new file mode 100644
index 0000000000..1974aaa7c8
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js
@@ -0,0 +1,16 @@
+// Copyright 2022 Mathias Bynens. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+author: Mathias Bynens
+description: >
+ Setting the `u` and `v` flag at the same time produces an error.
+esid: sec-parsepattern
+features: [regexp-v-flag]
+---*/
+
+assert.throws(SyntaxError, function() {
+ new RegExp(".", "uv");
+});
+
+reportCompare(0, 0);