mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 00:44:32 +02:00
Adds syntax tests for the RegExp modifiers proposal
Based on PR #3807 which had generated these tests from templates, but was stuck due to issue #3808. Co-Authored-By: Guillaume Emont <guijemont@igalia.com> Co-Authored-By: Ioanna M. Dimitriou H <idimitriou@igalia.com>
This commit is contained in:
parent
46871db0c2
commit
49a58a4716
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?ii:a)", "");
|
||||
}, 'RegExp("(?ii:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?imsi:a)", "");
|
||||
}, 'RegExp("(?imsi:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?1:a)", "");
|
||||
}, 'RegExp("(?1:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?iͥ:a)", "");
|
||||
}, 'RegExp("(?iͥ:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?mͫ:a)", "");
|
||||
}, 'RegExp("(?mͫ:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s̀:a)", "");
|
||||
}, 'RegExp("(?s̀:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?d:a)", "");
|
||||
}, 'RegExp("(?d:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?g:a)", "");
|
||||
}, 'RegExp("(?g:a)", ""): ');
|
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s:a)", "");
|
||||
}, 'RegExp("(?s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?Q:a)", "");
|
||||
}, 'RegExp("(?Q:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?u:a)", "");
|
||||
}, 'RegExp("(?u:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?y:a)", "");
|
||||
}, 'RegExp("(?y:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s:a)", "");
|
||||
}, 'RegExp("(?s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s:a)", "");
|
||||
}, 'RegExp("(?s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s:a)", "");
|
||||
}, 'RegExp("(?s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?I:a)", "i");
|
||||
}, 'RegExp("(?I:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?M:a)", "i");
|
||||
}, 'RegExp("(?M:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?S:a)", "i");
|
||||
}, 'RegExp("(?S:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?İ:a)", "iu");
|
||||
}, 'RegExp("(?İ:a)", "iu"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?ſ:a)", "u");
|
||||
}, 'RegExp("(?ſ:a)", "u"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?i-i:a)", "");
|
||||
}, 'RegExp("(?i-i:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?m-m:a)", "");
|
||||
}, 'RegExp("(?m-m:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?ims-m:a)", "");
|
||||
}, 'RegExp("(?ims-m:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?\u{0073}-s:a)", "");
|
||||
}, 'RegExp("(?\u{0073}-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-s:a)", "");
|
||||
}, 'RegExp("(?s-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by the first RegularExpressionFlags and the source text matched by the second RegularExpressionFlags are both empty. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-:a)", "");
|
||||
}, 'RegExp("(?-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-ii:a)", "");
|
||||
}, 'RegExp("(?-ii:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-imsi:a)", "");
|
||||
}, 'RegExp("(?-imsi:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-1:a)", "");
|
||||
}, 'RegExp("(?-1:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-iͥ:a)", "");
|
||||
}, 'RegExp("(?-iͥ:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-mͫ:a)", "");
|
||||
}, 'RegExp("(?-mͫ:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-s̀:a)", "");
|
||||
}, 'RegExp("(?-s̀:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-d:a)", "");
|
||||
}, 'RegExp("(?-d:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-g:a)", "");
|
||||
}, 'RegExp("(?-g:a)", ""): ');
|
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-s:a)", "");
|
||||
}, 'RegExp("(?-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-Q:a)", "");
|
||||
}, 'RegExp("(?-Q:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-u:a)", "");
|
||||
}, 'RegExp("(?-u:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-y:a)", "");
|
||||
}, 'RegExp("(?-y:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-s:a)", "");
|
||||
}, 'RegExp("(?-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-s:a)", "");
|
||||
}, 'RegExp("(?-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-s:a)", "");
|
||||
}, 'RegExp("(?-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?i-i:a)", "");
|
||||
}, 'RegExp("(?i-i:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?m-m:a)", "");
|
||||
}, 'RegExp("(?m-m:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?m-ims:a)", "");
|
||||
}, 'RegExp("(?m-ims:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-\u{0073}:a)", "");
|
||||
}, 'RegExp("(?s-\u{0073}:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-s:a)", "");
|
||||
}, 'RegExp("(?s-s:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?ii-:a)", "");
|
||||
}, 'RegExp("(?ii-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?imsi-:a)", "");
|
||||
}, 'RegExp("(?imsi-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?1-:a)", "");
|
||||
}, 'RegExp("(?1-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?iͥ-:a)", "");
|
||||
}, 'RegExp("(?iͥ-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?mͫ-:a)", "");
|
||||
}, 'RegExp("(?mͫ-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s̀-:a)", "");
|
||||
}, 'RegExp("(?s̀-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?d-:a)", "");
|
||||
}, 'RegExp("(?d-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?g-:a)", "");
|
||||
}, 'RegExp("(?g-:a)", ""): ');
|
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-:a)", "");
|
||||
}, 'RegExp("(?s-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?Q-:a)", "");
|
||||
}, 'RegExp("(?Q-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?u-:a)", "");
|
||||
}, 'RegExp("(?u-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?y-:a)", "");
|
||||
}, 'RegExp("(?y-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-:a)", "");
|
||||
}, 'RegExp("(?s-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-:a)", "");
|
||||
}, 'RegExp("(?s-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?s-:a)", "");
|
||||
}, 'RegExp("(?s-:a)", ""): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?I-:a)", "i");
|
||||
}, 'RegExp("(?I-:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?M-:a)", "i");
|
||||
}, 'RegExp("(?M-:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?S-:a)", "i");
|
||||
}, 'RegExp("(?S-:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?İ-:a)", "iu");
|
||||
}, 'RegExp("(?İ-:a)", "iu"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?ſ-:a)", "u");
|
||||
}, 'RegExp("(?ſ-:a)", "u"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-I:a)", "i");
|
||||
}, 'RegExp("(?-I:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-M:a)", "i");
|
||||
}, 'RegExp("(?-M:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-S:a)", "i");
|
||||
}, 'RegExp("(?-S:a)", "i"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-İ:a)", "iu");
|
||||
}, 'RegExp("(?-İ:a)", "iu"): ');
|
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
assert.throws(SyntaxError, function () {
|
||||
RegExp("(?-ſ:a)", "u");
|
||||
}, 'RegExp("(?-ſ:a)", "u"): ');
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?i-i:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?m-m:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?ims-m:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?\u{0073}-s:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?s-s:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by the first RegularExpressionFlags and the source text matched by the second RegularExpressionFlags are both empty. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-ii:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-imsi:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Regular expression modifiers should not parse without the colon.
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?ms-i)/;
|
@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Regular expression modifiers should not parse without the colon.
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-s)/;
|
@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Regular expression modifiers should not parse without the colon.
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?i-)/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-1:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-iͥ:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-mͫ:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-s̀:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-d:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-g:a)//*{ global-modifiers }*/;
|
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-s:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-Q:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-u:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-y:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-s:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-s:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code point other than i, m, or s, or if it contains the same code point more than once. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?-s:a)//*{ global-modifiers }*/;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: It is a Syntax Error if the any code point in the source text matched by the first RegularExpressionFlags is also contained in the source text matched by the second RegularExpressionFlags. (arithmetic regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
|
||||
...
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?i-i:a)//*{ global-modifiers }*/;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user