Enable strict mode testing for sm/misc

This commit is contained in:
André Bargull 2025-04-30 14:16:34 +02:00 committed by Philip Chimento
parent 10f049068e
commit a216e703d1
15 changed files with 6 additions and 35 deletions

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
---*/ ---*/
if (typeof window === "undefined")
window = this; if (typeof window === "undefined") {
var window = this;
}
Object.defineProperty(window, "foo", { Object.defineProperty(window, "foo", {
get: function() { return 5; }, get: function() { return 5; },
@ -18,4 +18,3 @@ Object.defineProperty(window, "foo", {
for (var i = 0; i < 100; ++i) for (var i = 0; i < 100; ++i)
assert.sameValue(window.foo, 5); assert.sameValue(window.foo, 5);

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
ECMAScript built-in methods that immediately throw when |this| is |undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString) ECMAScript built-in methods that immediately throw when |this| is |undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString)
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
JS_EnumerateStandardClasses uses wrong attributes for undefined JS_EnumerateStandardClasses uses wrong attributes for undefined
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Properly handle explicitly-undefined optional arguments to a bunch of functions Properly handle explicitly-undefined optional arguments to a bunch of functions
esid: pending esid: pending

View File

@ -2,17 +2,16 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending
---*/ ---*/
if (typeof window === "undefined") { if (typeof window === "undefined") {
// This test is meant to run in the browser, but it's easy to // This test is meant to run in the browser, but it's easy to
// run it in the shell as well, even though it has no inner/outer // run it in the shell as well, even though it has no inner/outer
// windows. // windows.
window = this; var window = this;
} }
var res = false; var res = false;
@ -27,4 +26,3 @@ Object.defineProperty(this, "foo", {configurable: true,
assert.sameValue(window.foo, true, "getter"); assert.sameValue(window.foo, true, "getter");
} }
})(); })();

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the LineTerminator production when parsing code U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the LineTerminator production when parsing code
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
|var| statements for existing, read-only/permanent properties should not be errors |var| statements for existing, read-only/permanent properties should not be errors
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Syntax errors at the end of |for| statement header parts shouldn't cause crashes Syntax errors at the end of |for| statement header parts shouldn't cause crashes
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending