mirror of https://github.com/tc39/test262.git
Object.seal: fix esids
This commit is contained in:
parent
e9f7b74855
commit
32334e52ac
|
@ -2,10 +2,8 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-0-1
|
||||
description: Object.seal must exist as a function
|
||||
esid: sec-object.seal
|
||||
description: Object.seal is a function
|
||||
---*/
|
||||
|
||||
var f = Object.seal;
|
||||
|
||||
assert.sameValue(typeof(f), "function", 'typeof(f)');
|
||||
assert.sameValue(typeof Object.seal, "function", 'typeof(f)');
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-0-2
|
||||
description: Object.seal must exist as a function taking 1 parameter
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.seal.length, 1, 'Object.seal.length');
|
|
@ -2,10 +2,12 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-1-1
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal does not throw TypeError if type of first param is
|
||||
undefined
|
||||
info: |
|
||||
If Type(O) is not Object, return O.
|
||||
---*/
|
||||
|
||||
Object.seal(undefined);
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-1-2
|
||||
description: Object.seal does not throw TypeError if type of first param is null
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal does not throw TypeError if type of first param is
|
||||
null
|
||||
info: |
|
||||
If Type(O) is not Object, return O.
|
||||
---*/
|
||||
|
||||
Object.seal(null);
|
||||
|
|
|
@ -2,10 +2,13 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-1-3
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal does not throw TypeError if type of first param is a
|
||||
boolean primitive
|
||||
Object.seal does not throw TypeError if type of first param is
|
||||
a boolean primitive
|
||||
info: |
|
||||
If Type(O) is not Object, return O.
|
||||
---*/
|
||||
|
||||
|
||||
Object.seal(false);
|
||||
|
|
|
@ -2,10 +2,12 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-1-4
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal does not throw TypeError if type of first param is a
|
||||
string primitive
|
||||
Object.seal does not throw TypeError if type of first param is
|
||||
a string primitive
|
||||
info: |
|
||||
If Type(O) is not Object, return O.
|
||||
---*/
|
||||
|
||||
Object.seal("abc");
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-1
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal does not throw TypeError if type of first param is not
|
||||
Object
|
||||
Object.seal does not throw TypeError if type of first param is
|
||||
a number primitive
|
||||
info: |
|
||||
If Type(O) is not Object, return O.
|
||||
---*/
|
||||
|
||||
Object.seal(0);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-1
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal - extensible of 'O' is set as false even if 'O' has no
|
||||
own property
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-2
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - inherited data properties are ignored
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-3
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - inherited accessor properties are ignored
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-4
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - non-enumerable own property of 'O' is sealed
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-1
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'P' is own data property
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-10
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of a Boolean object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-11
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of a Number object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-12
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of a Date object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-13
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of a RegExp object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-14
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of an Error object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-15
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of an Arguments object which
|
||||
implements its own [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-2
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own data property that overrides an inherited
|
||||
data property
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-3
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own data property that overrides an inherited
|
||||
accessor property
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-4
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'P' is own accessor property
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-5
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own accessor property that overrides an
|
||||
inherited data property
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-6
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own accessor property that overrides an
|
||||
inherited accessor property
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-7
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of a Function object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-8
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of an Array object that uses
|
||||
Object's [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-a-9
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - 'P' is own property of a String object which
|
||||
implements its own [[GetOwnProperty]]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-b-1
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - the [[Configurable]] attribute of own data property
|
||||
of 'O' is set from true to false and other attributes of the
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-b-2
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - the [[Configurable]] attribute of own accessor
|
||||
property of 'O' is set from true to false and other attributes of
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-b-3
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - the [[Configurable]] attribute of all own properties
|
||||
of 'O' are set from true to false and other attributes of the
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-b-4
|
||||
esid: sec-setintegritylevel
|
||||
description: >
|
||||
Object.seal - all own properties of 'O' are already
|
||||
non-configurable
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-1
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is a Function object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-2
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is an Array object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-3
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is a String object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-4
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is a Boolean object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-5
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is a Number object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-6
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is a Date object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-7
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is a RegExp object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-8
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is an Error object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-2-c-9
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is an Arguments object
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-3-1
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - returned object is not extensible
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-4-1
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is sealed already
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-4-2
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - 'O' is frozen already
|
||||
---*/
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es5id: 15.2.3.8-4-3
|
||||
esid: sec-setintegritylevel
|
||||
description: Object.seal - the extension of 'O' is prevented already
|
||||
---*/
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-ecmascript-standard-built-in-objects
|
||||
description: Object.seal '`length` property'
|
||||
info: |
|
||||
ECMAScript Standard Built-in Objects
|
||||
|
||||
Every built-in function object, including constructors, has a "length" property whose value is an integer. Unless otherwise specified, this value is equal to the number of required parameters shown in the subclause headings for the function description. Optional parameters and rest parameters are not included in the parameter count.
|
||||
|
||||
Unless otherwise specified, the "length" property of a built-in function object has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.seal.length, 1);
|
||||
|
||||
verifyNotEnumerable(Object.seal, "length");
|
||||
verifyNotWritable(Object.seal, "length");
|
||||
verifyConfigurable(Object.seal, "length");
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 19.1.2.17
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal.name is "seal".
|
||||
info: |
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 19.4
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal(obj) where obj contains symbol properties.
|
||||
flags: [noStrict]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 19.4
|
||||
esid: sec-object.seal
|
||||
description: >
|
||||
Object.seal(obj) where obj contains symbol properties.
|
||||
flags: [onlyStrict]
|
||||
|
|
Loading…
Reference in New Issue