mirror of https://github.com/tc39/test262.git
Address review comments and fixes some more descriptions
- Fixes to two tests testing Map.prototype.size - Description fixes
This commit is contained in:
parent
cb8324fdba
commit
435a89b702
|
@ -5,7 +5,7 @@
|
|||
esid: sec-asyncdisposablestack.prototype.defer
|
||||
description: AsyncDisposableStack.prototype.defer.length property descriptor
|
||||
info: |
|
||||
AsyncDisposableStack.prototype.defer ( )
|
||||
AsyncDisposableStack.prototype.defer ( onDisposeAsync )
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
/*---
|
||||
esid: sec-get-asyncdisposablestack.prototype.disposed
|
||||
description: >
|
||||
Map.prototype.size.length value and descriptor.
|
||||
AsyncDisposableStack.prototype.disposed.length value and descriptor.
|
||||
info: |
|
||||
get Map.prototype.size
|
||||
get AsyncDisposableStack.prototype.disposed
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size');
|
||||
var descriptor = Object.getOwnPropertyDescriptor(AsyncDisposableStack.prototype, 'disposed');
|
||||
|
||||
assert.sameValue(
|
||||
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');
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
esid: sec-%asynciteratorprototype%-@@asyncDispose
|
||||
description: Length of %AsyncIteratorPrototype%[ @@asyncDispose ]
|
||||
info: |
|
||||
%AsyncIteratorPrototype%[ @@asyncDispose ] ()
|
||||
|
||||
ES6 Section 17:
|
||||
Every built-in Function object, including constructors, has a length
|
||||
property whose value is an integer. Unless otherwise specified, this value
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-%asynciteratorprototype%-@@asyncDispose
|
||||
description: Descriptor for `name` property
|
||||
description: Descriptor for `name` property of %AsyncIteratorPrototype%[ @@asyncDispose ]
|
||||
info: |
|
||||
The value of the name property of this function is "[Symbol.asyncDispose]".
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-%asynciteratorprototype%-@@asyncDispose
|
||||
description: Property descriptor
|
||||
description: Property descriptor of %AsyncIteratorPrototype%[ @@asyncDispose ]
|
||||
info: |
|
||||
ES6 Section 17
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
/*---
|
||||
esid: sec-disposablestack.prototype.adopt
|
||||
description: DisposableStack.prototype.adopt.length property descriptor
|
||||
description: DisposableStack.prototype.adopt.length value and property descriptor
|
||||
info: |
|
||||
DisposableStack.prototype.adopt ( )
|
||||
DisposableStack.prototype.adopt ( value, onDispose )
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
esid: sec-disposablestack.prototype.defer
|
||||
description: DisposableStack.prototype.defer.length property descriptor
|
||||
info: |
|
||||
DisposableStack.prototype.defer ( )
|
||||
DisposableStack.prototype.defer ( onDispose )
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
/*---
|
||||
esid: sec-get-disposablestack.prototype.disposed
|
||||
description: >
|
||||
Map.prototype.size.length value and descriptor.
|
||||
DisposableStack.prototype.disposed.length value and descriptor.
|
||||
info: |
|
||||
get Map.prototype.size
|
||||
get DisposableStack.prototype.disposed
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size');
|
||||
var descriptor = Object.getOwnPropertyDescriptor(DisposableStack.prototype, 'disposed');
|
||||
|
||||
assert.sameValue(
|
||||
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');
|
||||
|
|
|
@ -5,7 +5,7 @@ esid: sec-get-disposablestack.prototype.disposed
|
|||
description: >
|
||||
DisposableStack.prototype.disposed.name value and descriptor.
|
||||
info: |
|
||||
get DisposableStack.prototype.size
|
||||
get DisposableStack.prototype.disposed
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
esid: sec-%iteratorprototype%-@@dispose
|
||||
description: Length of %IteratorPrototype%[ @@dispose ]
|
||||
info: |
|
||||
%IteratorPrototype% [ @@dispose ] ( )
|
||||
|
||||
ES6 Section 17:
|
||||
Every built-in Function object, including constructors, has a length
|
||||
property whose value is an integer. Unless otherwise specified, this value
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-%iteratorprototype%-@@dispose
|
||||
description: Descriptor for `name` property
|
||||
description: Descriptor for `name` property of %IteratorPrototype%[ @@dispose ]
|
||||
info: |
|
||||
The value of the name property of this function is "[Symbol.dispose]".
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-%iteratorprototype%-@@dispose
|
||||
description: Property descriptor
|
||||
description: Property descriptor of %IteratorPrototype%[ @@dispose ]
|
||||
info: |
|
||||
ES6 Section 17
|
||||
|
||||
|
|
Loading…
Reference in New Issue