summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/prototype/unicodeSets/uv-flags-constructor.js
blob: 1974aaa7c8a4bdf7a7a91aae028c722e12ba8f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);