Address review comments and fixes some more descriptions

- Fixes to two tests testing Map.prototype.size
- Description fixes
This commit is contained in:
Ioanna M. Dimitriou H 2024-07-29 23:38:33 +02:00 committed by Philip Chimento
parent cb8324fdba
commit 435a89b702
12 changed files with 21 additions and 17 deletions

View File

@ -5,7 +5,7 @@
esid: sec-asyncdisposablestack.prototype.defer esid: sec-asyncdisposablestack.prototype.defer
description: AsyncDisposableStack.prototype.defer.length property descriptor description: AsyncDisposableStack.prototype.defer.length property descriptor
info: | info: |
AsyncDisposableStack.prototype.defer ( ) AsyncDisposableStack.prototype.defer ( onDisposeAsync )
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects

View File

@ -3,19 +3,19 @@
/*--- /*---
esid: sec-get-asyncdisposablestack.prototype.disposed esid: sec-get-asyncdisposablestack.prototype.disposed
description: > description: >
Map.prototype.size.length value and descriptor. AsyncDisposableStack.prototype.disposed.length value and descriptor.
info: | info: |
get Map.prototype.size get AsyncDisposableStack.prototype.disposed
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size'); var descriptor = Object.getOwnPropertyDescriptor(AsyncDisposableStack.prototype, 'disposed');
assert.sameValue( assert.sameValue(
descriptor.get.length, 0, descriptor.get.length, 0,
'The value of `Map.prototype.size.length` is `0`' 'The value of `AsyncDisposableStack.prototype.disposed` is `0`'
); );
verifyNotEnumerable(descriptor.get, 'length'); verifyNotEnumerable(descriptor.get, 'length');

View File

@ -4,6 +4,8 @@
esid: sec-%asynciteratorprototype%-@@asyncDispose esid: sec-%asynciteratorprototype%-@@asyncDispose
description: Length of %AsyncIteratorPrototype%[ @@asyncDispose ] description: Length of %AsyncIteratorPrototype%[ @@asyncDispose ]
info: | info: |
%AsyncIteratorPrototype%[ @@asyncDispose ] ()
ES6 Section 17: ES6 Section 17:
Every built-in Function object, including constructors, has a length Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this value property whose value is an integer. Unless otherwise specified, this value

View File

@ -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.
/*--- /*---
esid: sec-%asynciteratorprototype%-@@asyncDispose esid: sec-%asynciteratorprototype%-@@asyncDispose
description: Descriptor for `name` property description: Descriptor for `name` property of %AsyncIteratorPrototype%[ @@asyncDispose ]
info: | info: |
The value of the name property of this function is "[Symbol.asyncDispose]". The value of the name property of this function is "[Symbol.asyncDispose]".

View File

@ -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.
/*--- /*---
esid: sec-%asynciteratorprototype%-@@asyncDispose esid: sec-%asynciteratorprototype%-@@asyncDispose
description: Property descriptor description: Property descriptor of %AsyncIteratorPrototype%[ @@asyncDispose ]
info: | info: |
ES6 Section 17 ES6 Section 17

View File

@ -3,9 +3,9 @@
/*--- /*---
esid: sec-disposablestack.prototype.adopt esid: sec-disposablestack.prototype.adopt
description: DisposableStack.prototype.adopt.length property descriptor description: DisposableStack.prototype.adopt.length value and property descriptor
info: | info: |
DisposableStack.prototype.adopt ( ) DisposableStack.prototype.adopt ( value, onDispose )
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects

View File

@ -5,7 +5,7 @@
esid: sec-disposablestack.prototype.defer esid: sec-disposablestack.prototype.defer
description: DisposableStack.prototype.defer.length property descriptor description: DisposableStack.prototype.defer.length property descriptor
info: | info: |
DisposableStack.prototype.defer ( ) DisposableStack.prototype.defer ( onDispose )
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects

View File

@ -3,19 +3,19 @@
/*--- /*---
esid: sec-get-disposablestack.prototype.disposed esid: sec-get-disposablestack.prototype.disposed
description: > description: >
Map.prototype.size.length value and descriptor. DisposableStack.prototype.disposed.length value and descriptor.
info: | info: |
get Map.prototype.size get DisposableStack.prototype.disposed
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size'); var descriptor = Object.getOwnPropertyDescriptor(DisposableStack.prototype, 'disposed');
assert.sameValue( assert.sameValue(
descriptor.get.length, 0, descriptor.get.length, 0,
'The value of `Map.prototype.size.length` is `0`' 'The value of `DisposableStack.prototype.disposed.length` is `0`'
); );
verifyNotEnumerable(descriptor.get, 'length'); verifyNotEnumerable(descriptor.get, 'length');

View File

@ -5,7 +5,7 @@ esid: sec-get-disposablestack.prototype.disposed
description: > description: >
DisposableStack.prototype.disposed.name value and descriptor. DisposableStack.prototype.disposed.name value and descriptor.
info: | info: |
get DisposableStack.prototype.size get DisposableStack.prototype.disposed
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects

View File

@ -4,6 +4,8 @@
esid: sec-%iteratorprototype%-@@dispose esid: sec-%iteratorprototype%-@@dispose
description: Length of %IteratorPrototype%[ @@dispose ] description: Length of %IteratorPrototype%[ @@dispose ]
info: | info: |
%IteratorPrototype% [ @@dispose ] ( )
ES6 Section 17: ES6 Section 17:
Every built-in Function object, including constructors, has a length Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this value property whose value is an integer. Unless otherwise specified, this value

View File

@ -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.
/*--- /*---
esid: sec-%iteratorprototype%-@@dispose esid: sec-%iteratorprototype%-@@dispose
description: Descriptor for `name` property description: Descriptor for `name` property of %IteratorPrototype%[ @@dispose ]
info: | info: |
The value of the name property of this function is "[Symbol.dispose]". The value of the name property of this function is "[Symbol.dispose]".

View File

@ -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.
/*--- /*---
esid: sec-%iteratorprototype%-@@dispose esid: sec-%iteratorprototype%-@@dispose
description: Property descriptor description: Property descriptor of %IteratorPrototype%[ @@dispose ]
info: | info: |
ES6 Section 17 ES6 Section 17