Enable strict mode testing for sm/object

This commit is contained in:
André Bargull 2025-04-30 14:16:34 +02:00 committed by Philip Chimento
parent cd870e9520
commit 14e84721c9
60 changed files with 2 additions and 120 deletions

View File

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

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
Object.keys(O) Object.keys(O)
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.getOwnPropertyNames should play nicely with enumerator caching Object.getOwnPropertyNames should play nicely with enumerator caching
esid: pending esid: pending

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
Object.getOwnPropertyNames: array objects Object.getOwnPropertyNames: array objects
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.getOwnPropertyNames: function objects Object.getOwnPropertyNames: function objects
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.getOwnPropertyNames: regular expression objects Object.getOwnPropertyNames: regular expression objects
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.create(O [, Properties]) Object.create(O [, Properties])
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Do not assert: !(attrs & (JSPROP_GETTER | JSPROP_SETTER)) with Object.defineProperty Do not assert: !(attrs & (JSPROP_GETTER | JSPROP_SETTER)) with Object.defineProperty
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.defineProperties(O, Properties) Object.defineProperties(O, Properties)
esid: pending esid: pending

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [propertyHelper.js] includes: [propertyHelper.js]
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

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

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

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

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

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Properly handle GC of a dictionary accessor property whose [[Get]] or [[Set]] has been changed to |undefined| Properly handle GC of a dictionary accessor property whose [[Get]] or [[Set]] has been changed to |undefined|
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

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

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
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
@ -13,6 +11,8 @@ esid: pending
* These tests modify the tests in test262 to reflect this change. * These tests modify the tests in test262 to reflect this change.
*/ */
var a;
// test262/ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js // test262/ch11/11.1/11.1.5/11.1.5-4-4-a-1-s.js
a = function() { "use strict"; return { foo: 0, foo : 1 }}; a = function() { "use strict"; return { foo: 0, foo : 1 }};
assert.sameValue(a().foo, 1); assert.sameValue(a().foo, 1);

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [deepEqual.js] includes: [deepEqual.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Implement Object.preventExtensions, Object.isExtensible Implement Object.preventExtensions, Object.isExtensible
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.freeze() should return its argument with no conversion when the argument is a primitive value Object.freeze() should return its argument with no conversion when the argument is a primitive value
esid: pending esid: pending

View File

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

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [deepEqual.js] includes: [deepEqual.js]
flags:
- noStrict
description: | description: |
Coerce the argument passed to Object.getOwnPropertyDescriptor using ToObject Coerce the argument passed to Object.getOwnPropertyDescriptor using ToObject
esid: pending esid: pending

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
The [[Prototype]] of an object whose prototype chain contains an array isn't that array's [[Prototype]] The [[Prototype]] of an object whose prototype chain contains an array isn't that array's [[Prototype]]
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Coerce the argument passed to Object.getPrototypeOf using ToObject Coerce the argument passed to Object.getPrototypeOf using ToObject
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: |
Object accessors should have get prefix Object accessors should have get prefix
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: |
Object.isExtensible() should return false when given primitive values as input Object.isExtensible() should return false when given primitive values as input
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.isFrozen() should return true when given primitive values as input Object.isFrozen() should return true when given primitive values as input
esid: pending esid: pending

View File

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

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.isSealed() should return true when given primitive values as input Object.isSealed() should return true when given primitive values as input
esid: pending esid: pending

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
Coerce the argument passed to Object.keys using ToObject Coerce the argument passed to Object.keys using ToObject
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

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.is{Sealed,Frozen}, Object.{seal,freeze} Object.is{Sealed,Frozen}, Object.{seal,freeze}
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

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
({}).toString.call(null) == "[object Null]", ({}).toString.call(undefined) == "[object Undefined]" ({}).toString.call(null) == "[object Null]", ({}).toString.call(undefined) == "[object Undefined]"
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.preventExtensions should be idempotent Object.preventExtensions should be idempotent
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.preventExtensions() should return its argument with no conversion when the argument is a primitive value Object.preventExtensions() should return its argument with no conversion when the argument is a primitive value
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

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

View File

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

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.seal() should return its argument with no conversion when the argument is a primitive value Object.seal() should return its argument with no conversion when the argument is a primitive value
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

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

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Object.prototype.toLocaleString Object.prototype.toLocaleString
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

View File

@ -4,8 +4,6 @@
*/ */
/*--- /*---
flags:
- noStrict
description: | description: |
Using a name referring to a { get: undefined, set: undefined } descriptor shouldn't assert Using a name referring to a { get: undefined, set: undefined } descriptor shouldn't assert
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -3,8 +3,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending

View File

@ -5,8 +5,6 @@
/*--- /*---
includes: [compareArray.js] includes: [compareArray.js]
flags:
- noStrict
description: | description: |
pending pending
esid: pending esid: pending