From 4e85cd06bd59d46a7e7406ec023296edf04c2495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 30 Apr 2025 14:16:39 +0200 Subject: [PATCH] Enable strict mode testing for sm/String --- test/staging/sm/String/15.5.4.11-01.js | 2 -- test/staging/sm/String/15.5.4.7.js | 2 -- test/staging/sm/String/AdvanceStringIndex.js | 2 -- test/staging/sm/String/IsRegExp.js | 2 -- test/staging/sm/String/at.js | 2 -- test/staging/sm/String/codePointAt.js | 2 -- test/staging/sm/String/defaultvalue.js | 2 -- test/staging/sm/String/fromCodePoint.js | 2 -- test/staging/sm/String/internalUsage.js | 2 -- test/staging/sm/String/iterator_edge_cases.js | 2 -- test/staging/sm/String/match-GetMethod.js | 2 -- test/staging/sm/String/match-defines-match-elements.js | 2 -- test/staging/sm/String/match-forward-lookahead.js | 2 -- .../sm/String/match-throws-nonwritable-lastIndex-global.js | 2 -- test/staging/sm/String/match-updates-global-lastIndex.js | 2 -- test/staging/sm/String/match.js | 2 -- test/staging/sm/String/matchAll.js | 2 -- test/staging/sm/String/normalize-form-non-atom.js | 2 -- test/staging/sm/String/normalize-generateddata-input.js | 2 -- test/staging/sm/String/normalize-generic.js | 2 -- test/staging/sm/String/normalize-parameter.js | 2 -- test/staging/sm/String/normalize-rope.js | 2 -- test/staging/sm/String/raw.js | 2 -- test/staging/sm/String/regress-369778.js | 2 -- test/staging/sm/String/replace-GetMethod.js | 2 -- test/staging/sm/String/replace-bad-dollar-single-quote.js | 2 -- test/staging/sm/String/replace-flags.js | 2 -- test/staging/sm/String/replace-math.js | 2 -- .../sm/String/replace-throws-nonwritable-lastIndex-global.js | 2 -- test/staging/sm/String/replace-updates-global-lastIndex.js | 2 -- test/staging/sm/String/replace.js | 2 -- test/staging/sm/String/replaceAll.js | 2 -- test/staging/sm/String/search-GetMethod.js | 2 -- test/staging/sm/String/search.js | 2 -- test/staging/sm/String/split-01.js | 2 -- test/staging/sm/String/split-GetMethod.js | 2 -- test/staging/sm/String/split-order.js | 2 -- test/staging/sm/String/split-undefined-separator.js | 2 -- test/staging/sm/String/split-xregexp.js | 2 -- test/staging/sm/String/split.js | 2 -- test/staging/sm/String/string-code-point-upper-lower-mapping.js | 2 -- test/staging/sm/String/string-pad-start-end.js | 2 -- test/staging/sm/String/string-space-trim.js | 2 -- test/staging/sm/String/string-upper-lower-mapping.js | 2 -- test/staging/sm/String/two-length-nonlatin-indexOf.js | 2 -- test/staging/sm/String/unicode-braced.js | 2 -- 46 files changed, 92 deletions(-) diff --git a/test/staging/sm/String/15.5.4.11-01.js b/test/staging/sm/String/15.5.4.11-01.js index 386ff97390..d349c38ed6 100644 --- a/test/staging/sm/String/15.5.4.11-01.js +++ b/test/staging/sm/String/15.5.4.11-01.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.replace with non-regexp searchValue esid: pending diff --git a/test/staging/sm/String/15.5.4.7.js b/test/staging/sm/String/15.5.4.7.js index 950e6155e7..37c4bf9dec 100644 --- a/test/staging/sm/String/15.5.4.7.js +++ b/test/staging/sm/String/15.5.4.7.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.indexOf with empty searchString esid: pending diff --git a/test/staging/sm/String/AdvanceStringIndex.js b/test/staging/sm/String/AdvanceStringIndex.js index 68d97abc76..d570e935a3 100644 --- a/test/staging/sm/String/AdvanceStringIndex.js +++ b/test/staging/sm/String/AdvanceStringIndex.js @@ -3,8 +3,6 @@ /*--- includes: [compareArray.js] -flags: - - noStrict description: | Implement RegExp unicode flag -- AdvanceStringIndex in global match and replace. esid: pending diff --git a/test/staging/sm/String/IsRegExp.js b/test/staging/sm/String/IsRegExp.js index 83c58becdd..d89c3108ae 100644 --- a/test/staging/sm/String/IsRegExp.js +++ b/test/staging/sm/String/IsRegExp.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.{startsWith,endsWith,includes} should call IsRegExp. esid: pending diff --git a/test/staging/sm/String/at.js b/test/staging/sm/String/at.js index 3a43ce8968..06200c9a08 100644 --- a/test/staging/sm/String/at.js +++ b/test/staging/sm/String/at.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/codePointAt.js b/test/staging/sm/String/codePointAt.js index 58ad3ad56a..fcbce876bd 100644 --- a/test/staging/sm/String/codePointAt.js +++ b/test/staging/sm/String/codePointAt.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.codePointAt esid: pending diff --git a/test/staging/sm/String/defaultvalue.js b/test/staging/sm/String/defaultvalue.js index 1f4f1fa2ba..c2367efc94 100644 --- a/test/staging/sm/String/defaultvalue.js +++ b/test/staging/sm/String/defaultvalue.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | [[DefaultValue]] behavior wrong for String with overridden valueOf/toString esid: pending diff --git a/test/staging/sm/String/fromCodePoint.js b/test/staging/sm/String/fromCodePoint.js index 58b68759eb..169ca4a72d 100644 --- a/test/staging/sm/String/fromCodePoint.js +++ b/test/staging/sm/String/fromCodePoint.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.fromCodePoint esid: pending diff --git a/test/staging/sm/String/internalUsage.js b/test/staging/sm/String/internalUsage.js index abf9b2e749..8d5413cf62 100644 --- a/test/staging/sm/String/internalUsage.js +++ b/test/staging/sm/String/internalUsage.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | Internal usage of split should not be affected by prototpe change esid: pending diff --git a/test/staging/sm/String/iterator_edge_cases.js b/test/staging/sm/String/iterator_edge_cases.js index f1adb68acb..31a0e0cd2c 100644 --- a/test/staging/sm/String/iterator_edge_cases.js +++ b/test/staging/sm/String/iterator_edge_cases.js @@ -3,8 +3,6 @@ /*--- includes: [deepEqual.js] -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/match-GetMethod.js b/test/staging/sm/String/match-GetMethod.js index 1bbb07f56c..88b1cafaa8 100644 --- a/test/staging/sm/String/match-GetMethod.js +++ b/test/staging/sm/String/match-GetMethod.js @@ -3,8 +3,6 @@ /*--- includes: [deepEqual.js] -flags: - - noStrict description: | String.prototype.match should call GetMethod. esid: pending diff --git a/test/staging/sm/String/match-defines-match-elements.js b/test/staging/sm/String/match-defines-match-elements.js index 83abb082d5..681b299f2d 100644 --- a/test/staging/sm/String/match-defines-match-elements.js +++ b/test/staging/sm/String/match-defines-match-elements.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.match must define matches on the returned array, not set them esid: pending diff --git a/test/staging/sm/String/match-forward-lookahead.js b/test/staging/sm/String/match-forward-lookahead.js index a36ca2e932..2628a745d9 100644 --- a/test/staging/sm/String/match-forward-lookahead.js +++ b/test/staging/sm/String/match-forward-lookahead.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.match behavior with zero-length matches involving forward lookahead esid: pending diff --git a/test/staging/sm/String/match-throws-nonwritable-lastIndex-global.js b/test/staging/sm/String/match-throws-nonwritable-lastIndex-global.js index eb71e0b4ca..8991cbbabc 100644 --- a/test/staging/sm/String/match-throws-nonwritable-lastIndex-global.js +++ b/test/staging/sm/String/match-throws-nonwritable-lastIndex-global.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.match should throw when called with a global RegExp whose .lastIndex is non-writable esid: pending diff --git a/test/staging/sm/String/match-updates-global-lastIndex.js b/test/staging/sm/String/match-updates-global-lastIndex.js index 816c02de31..94c7dda1e0 100644 --- a/test/staging/sm/String/match-updates-global-lastIndex.js +++ b/test/staging/sm/String/match-updates-global-lastIndex.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.match should zero the .lastIndex when called with a global RegExp esid: pending diff --git a/test/staging/sm/String/match.js b/test/staging/sm/String/match.js index fcd1d4186e..6b0878b546 100644 --- a/test/staging/sm/String/match.js +++ b/test/staging/sm/String/match.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | Call RegExp.prototype[@@match] from String.prototype.match. esid: pending diff --git a/test/staging/sm/String/matchAll.js b/test/staging/sm/String/matchAll.js index 3fa8749d8c..3d7fb6a128 100644 --- a/test/staging/sm/String/matchAll.js +++ b/test/staging/sm/String/matchAll.js @@ -3,8 +3,6 @@ /*--- includes: [compareArray.js] -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/normalize-form-non-atom.js b/test/staging/sm/String/normalize-form-non-atom.js index e141da20bc..457a151e94 100644 --- a/test/staging/sm/String/normalize-form-non-atom.js +++ b/test/staging/sm/String/normalize-form-non-atom.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.normalize error when normalization form parameter is not an atom esid: pending diff --git a/test/staging/sm/String/normalize-generateddata-input.js b/test/staging/sm/String/normalize-generateddata-input.js index 573160069b..37c87fa15b 100644 --- a/test/staging/sm/String/normalize-generateddata-input.js +++ b/test/staging/sm/String/normalize-generateddata-input.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/normalize-generic.js b/test/staging/sm/String/normalize-generic.js index 2afc1e905b..a583539cc5 100644 --- a/test/staging/sm/String/normalize-generic.js +++ b/test/staging/sm/String/normalize-generic.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.normalize - normalize no String object esid: pending diff --git a/test/staging/sm/String/normalize-parameter.js b/test/staging/sm/String/normalize-parameter.js index c81813cb7e..9874bfc3bd 100644 --- a/test/staging/sm/String/normalize-parameter.js +++ b/test/staging/sm/String/normalize-parameter.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.normalize - passing wrong parameter esid: pending diff --git a/test/staging/sm/String/normalize-rope.js b/test/staging/sm/String/normalize-rope.js index 1a894095d8..6fd9e54812 100644 --- a/test/staging/sm/String/normalize-rope.js +++ b/test/staging/sm/String/normalize-rope.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.normalize - normalize rope string esid: pending diff --git a/test/staging/sm/String/raw.js b/test/staging/sm/String/raw.js index 9ffcadabd3..adba51510e 100644 --- a/test/staging/sm/String/raw.js +++ b/test/staging/sm/String/raw.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.raw esid: pending diff --git a/test/staging/sm/String/regress-369778.js b/test/staging/sm/String/regress-369778.js index 04ef997a06..ceeec3f58f 100644 --- a/test/staging/sm/String/regress-369778.js +++ b/test/staging/sm/String/regress-369778.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | RegExpStatics::makeMatch should make an undefined value when the last match had an undefined capture. esid: pending diff --git a/test/staging/sm/String/replace-GetMethod.js b/test/staging/sm/String/replace-GetMethod.js index 40d7c5b2a4..bb0b61d953 100644 --- a/test/staging/sm/String/replace-GetMethod.js +++ b/test/staging/sm/String/replace-GetMethod.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.replace should call GetMethod. esid: pending diff --git a/test/staging/sm/String/replace-bad-dollar-single-quote.js b/test/staging/sm/String/replace-bad-dollar-single-quote.js index ebf8945f28..954c59be87 100644 --- a/test/staging/sm/String/replace-bad-dollar-single-quote.js +++ b/test/staging/sm/String/replace-bad-dollar-single-quote.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/replace-flags.js b/test/staging/sm/String/replace-flags.js index 4b9028e57c..58427d1309 100644 --- a/test/staging/sm/String/replace-flags.js +++ b/test/staging/sm/String/replace-flags.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/replace-math.js b/test/staging/sm/String/replace-math.js index e8a2ea7af7..6914b4b3fe 100644 --- a/test/staging/sm/String/replace-math.js +++ b/test/staging/sm/String/replace-math.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | Be more careful with string math to avoid wrong results esid: pending diff --git a/test/staging/sm/String/replace-throws-nonwritable-lastIndex-global.js b/test/staging/sm/String/replace-throws-nonwritable-lastIndex-global.js index af6564bac6..8e76f2056d 100644 --- a/test/staging/sm/String/replace-throws-nonwritable-lastIndex-global.js +++ b/test/staging/sm/String/replace-throws-nonwritable-lastIndex-global.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.replace should throw when called with a global RegExp whose .lastIndex is non-writable esid: pending diff --git a/test/staging/sm/String/replace-updates-global-lastIndex.js b/test/staging/sm/String/replace-updates-global-lastIndex.js index cb93200a5b..45cb8d0767 100644 --- a/test/staging/sm/String/replace-updates-global-lastIndex.js +++ b/test/staging/sm/String/replace-updates-global-lastIndex.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | String.prototype.relace should zero the .lastIndex when called with a global RegExp esid: pending diff --git a/test/staging/sm/String/replace.js b/test/staging/sm/String/replace.js index 180fa99736..a3630a6774 100644 --- a/test/staging/sm/String/replace.js +++ b/test/staging/sm/String/replace.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | Call RegExp.prototype[@@replace] from String.prototype.replace. esid: pending diff --git a/test/staging/sm/String/replaceAll.js b/test/staging/sm/String/replaceAll.js index 4d4e064d5a..35052e072e 100644 --- a/test/staging/sm/String/replaceAll.js +++ b/test/staging/sm/String/replaceAll.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/search-GetMethod.js b/test/staging/sm/String/search-GetMethod.js index 637954a582..06415b7c19 100644 --- a/test/staging/sm/String/search-GetMethod.js +++ b/test/staging/sm/String/search-GetMethod.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.search should call GetMethod. esid: pending diff --git a/test/staging/sm/String/search.js b/test/staging/sm/String/search.js index 6d4c3db176..378f2539e6 100644 --- a/test/staging/sm/String/search.js +++ b/test/staging/sm/String/search.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | Call RegExp.prototype[@@search] from String.prototype.search. esid: pending diff --git a/test/staging/sm/String/split-01.js b/test/staging/sm/String/split-01.js index 9867a0d622..a3036f3ee0 100644 --- a/test/staging/sm/String/split-01.js +++ b/test/staging/sm/String/split-01.js @@ -5,8 +5,6 @@ /*--- includes: [compareArray.js] -flags: - - noStrict description: | String.prototype.split tests esid: pending diff --git a/test/staging/sm/String/split-GetMethod.js b/test/staging/sm/String/split-GetMethod.js index 73f9ae6441..3d1b566482 100644 --- a/test/staging/sm/String/split-GetMethod.js +++ b/test/staging/sm/String/split-GetMethod.js @@ -3,8 +3,6 @@ /*--- includes: [compareArray.js] -flags: - - noStrict description: | String.prototype.split should call GetMethod. esid: pending diff --git a/test/staging/sm/String/split-order.js b/test/staging/sm/String/split-order.js index c22b8c920b..225be1fc5e 100644 --- a/test/staging/sm/String/split-order.js +++ b/test/staging/sm/String/split-order.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.split should call ToUint32(limit) before ToString(separator). esid: pending diff --git a/test/staging/sm/String/split-undefined-separator.js b/test/staging/sm/String/split-undefined-separator.js index a60ccb7a07..a9c6aa4c91 100644 --- a/test/staging/sm/String/split-undefined-separator.js +++ b/test/staging/sm/String/split-undefined-separator.js @@ -5,8 +5,6 @@ /*--- includes: [compareArray.js] -flags: - - noStrict description: | String.prototype.split with undefined separator esid: pending diff --git a/test/staging/sm/String/split-xregexp.js b/test/staging/sm/String/split-xregexp.js index d51d4a18b2..6a94c1d2cd 100644 --- a/test/staging/sm/String/split-xregexp.js +++ b/test/staging/sm/String/split-xregexp.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | String.prototype.split with regexp separator esid: pending diff --git a/test/staging/sm/String/split.js b/test/staging/sm/String/split.js index 7cb90f94ad..deef6a8502 100644 --- a/test/staging/sm/String/split.js +++ b/test/staging/sm/String/split.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | Call RegExp.prototype[@@split] from String.prototype.split. esid: pending diff --git a/test/staging/sm/String/string-code-point-upper-lower-mapping.js b/test/staging/sm/String/string-code-point-upper-lower-mapping.js index 66ca27a151..21009ccab9 100644 --- a/test/staging/sm/String/string-code-point-upper-lower-mapping.js +++ b/test/staging/sm/String/string-code-point-upper-lower-mapping.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/string-pad-start-end.js b/test/staging/sm/String/string-pad-start-end.js index cd6dd230f8..0c7b39f8e3 100644 --- a/test/staging/sm/String/string-pad-start-end.js +++ b/test/staging/sm/String/string-pad-start-end.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/string-space-trim.js b/test/staging/sm/String/string-space-trim.js index a1534524d7..17ad608fa4 100644 --- a/test/staging/sm/String/string-space-trim.js +++ b/test/staging/sm/String/string-space-trim.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/string-upper-lower-mapping.js b/test/staging/sm/String/string-upper-lower-mapping.js index 1ac8852839..aaf9e0dd42 100644 --- a/test/staging/sm/String/string-upper-lower-mapping.js +++ b/test/staging/sm/String/string-upper-lower-mapping.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/two-length-nonlatin-indexOf.js b/test/staging/sm/String/two-length-nonlatin-indexOf.js index 0d021da373..8fe33af067 100644 --- a/test/staging/sm/String/two-length-nonlatin-indexOf.js +++ b/test/staging/sm/String/two-length-nonlatin-indexOf.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | pending esid: pending diff --git a/test/staging/sm/String/unicode-braced.js b/test/staging/sm/String/unicode-braced.js index 0342f3876f..2e7b2a2746 100644 --- a/test/staging/sm/String/unicode-braced.js +++ b/test/staging/sm/String/unicode-braced.js @@ -2,8 +2,6 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -flags: - - noStrict description: | Add \\u{xxxxxx} string literals esid: pending