Bug 1897989 - Add Wasm exception-handling tests for JSPI. r=rhunt
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / syntax-err-arithmetic-modifiers-add-remove-s-escape.js
blob3efc2308c11a79aa22d005d63c05479579c2bdd3
1 // |reftest| skip -- regexp-modifiers is not supported
2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 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)
7 esid: sec-patterns-static-semantics-early-errors
8 features: [regexp-modifiers]
9 info: |
10     Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction )
11     ...
13 ---*/
15 assert.throws(SyntaxError, function () {
16   RegExp("(?\u{0073}-s:a)", "");
17 }, 'RegExp("(?\u{0073}-s:a)", ""): ');
19 reportCompare(0, 0);