blob: 424f52d063582ff21d2805654bf833a6b148b6f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// |reftest| error:SyntaxError
// Copyright 2023 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Some previously valid patterns with the `u` flag are now expected to
throw an early SyntaxError with the `v` flag.
https://github.com/tc39/proposal-regexp-v-flag#how-is-the-v-flag-different-from-the-u-flag
esid: sec-parsepattern
negative:
phase: parse
type: SyntaxError
features: [regexp-v-flag]
---*/
$DONOTEVALUATE();
/[%%]/v;
|