mirror of https://github.com/tc39/test262.git
Add tests for RegExp `v` flag errors that were allowed with `u`
https://github.com/tc39/proposal-regexp-v-flag#how-is-the-v-flag-different-from-the-u-flag Issue: #3496 Issue: https://github.com/tc39/proposal-regexp-v-flag/issues/52
This commit is contained in:
parent
72c0c5e163
commit
1010e63caf
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-01.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-01.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-02.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-02.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-03.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-03.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-04.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-04.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-05.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-05.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-06.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-06.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-07.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-07.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-08.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-08.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-09.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-09.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-10.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-10.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-11.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-11.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-12.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-12.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-13.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-13.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-14.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-14.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-15.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-15.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-16.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-16.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-17.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-17.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-18.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-18.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-19.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-19.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-20.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-20.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-21.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-21.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-22.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-22.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-23.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-23.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-24.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-24.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-25.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-25.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-26.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-26.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-27.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-27.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-28.js
vendored
Normal file
19
test/built-ins/RegExp/prototype/unicodeSets/breaking-change-from-u-to-v-28.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
Loading…
Reference in New Issue