syntax-err-arithmetic-modifiers-should-not-unicode-case-fold-s.js (573B)
1 // Copyright (C) 2024 Igalia, S.L. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: Code points other than "i", "m", "s" should not be case-folded to "i", "m", or "s" (arithmetic regular expression flags) 6 esid: sec-patterns-static-semantics-early-errors 7 features: [regexp-modifiers] 8 info: | 9 Atom :: ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction ) 10 ... 11 12 ---*/ 13 14 assert.throws(SyntaxError, function () { 15 RegExp("(?-ſ:a)", "u"); 16 }, 'RegExp("(?-ſ:a)", "u"): '); 17 18 reportCompare(0, 0);