mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 21:14:45 +02:00
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.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-0-1
|
esid: sec-object.seal
|
||||||
description: Object.seal must exist as a function
|
description: Object.seal is a function
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var f = Object.seal;
|
assert.sameValue(typeof Object.seal, "function", 'typeof(f)');
|
||||||
|
|
||||||
assert.sameValue(typeof(f), "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.
|
// 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: >
|
description: >
|
||||||
Object.seal does not throw TypeError if type of first param is
|
Object.seal does not throw TypeError if type of first param is
|
||||||
undefined
|
undefined
|
||||||
|
info: |
|
||||||
|
If Type(O) is not Object, return O.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.seal(undefined);
|
Object.seal(undefined);
|
||||||
|
@ -2,8 +2,12 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-1-2
|
esid: sec-object.seal
|
||||||
description: Object.seal does not throw TypeError if type of first param is null
|
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);
|
Object.seal(null);
|
||||||
|
@ -2,10 +2,13 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-1-3
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal does not throw TypeError if type of first param is a
|
Object.seal does not throw TypeError if type of first param is
|
||||||
boolean primitive
|
a boolean primitive
|
||||||
|
info: |
|
||||||
|
If Type(O) is not Object, return O.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
Object.seal(false);
|
Object.seal(false);
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-1-4
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal does not throw TypeError if type of first param is a
|
Object.seal does not throw TypeError if type of first param is
|
||||||
string primitive
|
a string primitive
|
||||||
|
info: |
|
||||||
|
If Type(O) is not Object, return O.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.seal("abc");
|
Object.seal("abc");
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-1
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal does not throw TypeError if type of first param is not
|
Object.seal does not throw TypeError if type of first param is
|
||||||
Object
|
a number primitive
|
||||||
|
info: |
|
||||||
|
If Type(O) is not Object, return O.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.seal(0);
|
Object.seal(0);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-1
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal - extensible of 'O' is set as false even if 'O' has no
|
Object.seal - extensible of 'O' is set as false even if 'O' has no
|
||||||
own property
|
own property
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-2
|
esid: sec-setintegritylevel
|
||||||
description: Object.seal - inherited data properties are ignored
|
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.
|
// 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
|
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.
|
// 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
|
description: Object.seal - non-enumerable own property of 'O' is sealed
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-1
|
esid: sec-setintegritylevel
|
||||||
description: Object.seal - 'P' is own data property
|
description: Object.seal - 'P' is own data property
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-10
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of a Boolean object that uses
|
Object.seal - 'P' is own property of a Boolean object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-11
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of a Number object that uses
|
Object.seal - 'P' is own property of a Number object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-12
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of a Date object that uses
|
Object.seal - 'P' is own property of a Date object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-13
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of a RegExp object that uses
|
Object.seal - 'P' is own property of a RegExp object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-14
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of an Error object that uses
|
Object.seal - 'P' is own property of an Error object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-15
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of an Arguments object which
|
Object.seal - 'P' is own property of an Arguments object which
|
||||||
implements its own [[GetOwnProperty]]
|
implements its own [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-2
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own data property that overrides an inherited
|
Object.seal - 'P' is own data property that overrides an inherited
|
||||||
data property
|
data property
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-3
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own data property that overrides an inherited
|
Object.seal - 'P' is own data property that overrides an inherited
|
||||||
accessor property
|
accessor property
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-4
|
esid: sec-setintegritylevel
|
||||||
description: Object.seal - 'P' is own accessor property
|
description: Object.seal - 'P' is own accessor property
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-5
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own accessor property that overrides an
|
Object.seal - 'P' is own accessor property that overrides an
|
||||||
inherited data property
|
inherited data property
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-6
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own accessor property that overrides an
|
Object.seal - 'P' is own accessor property that overrides an
|
||||||
inherited accessor property
|
inherited accessor property
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-7
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of a Function object that uses
|
Object.seal - 'P' is own property of a Function object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-8
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of an Array object that uses
|
Object.seal - 'P' is own property of an Array object that uses
|
||||||
Object's [[GetOwnProperty]]
|
Object's [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-a-9
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - 'P' is own property of a String object which
|
Object.seal - 'P' is own property of a String object which
|
||||||
implements its own [[GetOwnProperty]]
|
implements its own [[GetOwnProperty]]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-b-1
|
esid: sec-setintegritylevel
|
||||||
description: >
|
description: >
|
||||||
Object.seal - the [[Configurable]] attribute of own data property
|
Object.seal - the [[Configurable]] attribute of own data property
|
||||||
of 'O' is set from true to false and other attributes of the
|
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.
|
// 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: >
|
description: >
|
||||||
Object.seal - the [[Configurable]] attribute of own accessor
|
Object.seal - the [[Configurable]] attribute of own accessor
|
||||||
property of 'O' is set from true to false and other attributes of
|
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.
|
// 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: >
|
description: >
|
||||||
Object.seal - the [[Configurable]] attribute of all own properties
|
Object.seal - the [[Configurable]] attribute of all own properties
|
||||||
of 'O' are set from true to false and other attributes of the
|
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.
|
// 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: >
|
description: >
|
||||||
Object.seal - all own properties of 'O' are already
|
Object.seal - all own properties of 'O' are already
|
||||||
non-configurable
|
non-configurable
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-2-c-1
|
esid: sec-setintegritylevel
|
||||||
description: Object.seal - 'O' is a Function object
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
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.
|
// 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
|
description: Object.seal - 'O' is sealed already
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-4-2
|
esid: sec-setintegritylevel
|
||||||
description: Object.seal - 'O' is frozen already
|
description: Object.seal - 'O' is frozen already
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.2.3.8-4-3
|
esid: sec-setintegritylevel
|
||||||
description: Object.seal - the extension of 'O' is prevented already
|
description: Object.seal - the extension of 'O' is prevented already
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
21
test/built-ins/Object/seal/length.js
Normal file
21
test/built-ins/Object/seal/length.js
Normal file
@ -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.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 19.1.2.17
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal.name is "seal".
|
Object.seal.name is "seal".
|
||||||
info: |
|
info: |
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 19.4
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal(obj) where obj contains symbol properties.
|
Object.seal(obj) where obj contains symbol properties.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 19.4
|
esid: sec-object.seal
|
||||||
description: >
|
description: >
|
||||||
Object.seal(obj) where obj contains symbol properties.
|
Object.seal(obj) where obj contains symbol properties.
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user