Features: add full name for FinalizationRegistry.prototype.cleanupSome.

This commit is contained in:
Rick Waldron 2020-10-06 11:46:04 -04:00
parent 42bf3a9f7a
commit ce8ec71c98
17 changed files with 18 additions and 17 deletions

View File

@ -135,6 +135,7 @@ FinalizationRegistry
# FinalizationRegistry#cleanupSome
# link pending
FinalizationRegistry.prototype.cleanupSome
cleanupSome
# Optional Chaining

View File

@ -25,7 +25,7 @@ info: |
2. For each FinalizationRegistry finalizationRegistry such that finalizationRegistry.[[Cells]] contains cell, such that cell.[[Target]] is obj,
a. Set cell.[[Target]] to empty.
b. Optionally, perform ! HostCleanupFinalizationRegistry(finalizationRegistry).
features: [cleanupSome, FinalizationRegistry, async-functions, host-gc-required]
features: [cleanupSome, FinalizationRegistry.prototype.cleanupSome, FinalizationRegistry, async-functions, host-gc-required]
flags: [async, non-deterministic]
includes: [async-gc.js, compareArray.js]
---*/

View File

@ -12,7 +12,7 @@ info: |
3. If finalizationRegistry does not have a [[Cells]] internal slot, throw a TypeError exception.
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
...
features: [cleanupSome, FinalizationRegistry]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
---*/
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');

View File

@ -13,7 +13,7 @@ info: |
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
6. Return undefined.
features: [cleanupSome, FinalizationRegistry, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/

View File

@ -22,7 +22,7 @@ info: |
i. Remove cell from finalizationRegistry.[[Cells]].
ii. Set removed to true.
3. Return removed.
features: [cleanupSome, FinalizationRegistry, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/
@ -49,6 +49,6 @@ emptyCells().then(function() {
finalizationRegistry.cleanupSome(function cb(holding) {
called += 1;
});
assert.sameValue(called, 0, 'callback was not called');
}).then($DONE, resolveAsyncGC);

View File

@ -13,7 +13,7 @@ info: |
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
5. Perform ! CleanupFinalizationRegistry(finalizationRegistry, callback).
6. Return undefined.
features: [cleanupSome, FinalizationRegistry]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
---*/
var fn = function() {};

View File

@ -23,7 +23,7 @@ info: |
...
features: [cleanupSome, FinalizationRegistry, Symbol, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, Symbol, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/

View File

@ -21,7 +21,7 @@ info: |
function object has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [cleanupSome, FinalizationRegistry]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
---*/
verifyProperty(FinalizationRegistry.prototype.cleanupSome, 'length', {

View File

@ -20,7 +20,7 @@ info: |
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [cleanupSome, FinalizationRegistry]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
---*/
verifyProperty(FinalizationRegistry.prototype.cleanupSome, 'name', {

View File

@ -12,7 +12,7 @@ info: |
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
features: [cleanupSome, FinalizationRegistry]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
---*/
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');

View File

@ -8,7 +8,7 @@ description: >
info: |
FinalizationRegistry.prototype.cleanupSome ( [ callback ] )
features: [cleanupSome, FinalizationRegistry, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/

View File

@ -13,7 +13,7 @@ info: |
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
6. Return undefined.
features: [cleanupSome, FinalizationRegistry, arrow-function, async-functions, async-iteration, class, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, arrow-function, async-functions, async-iteration, class, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/

View File

@ -13,7 +13,7 @@ info: |
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
6. Return undefined.
features: [cleanupSome, FinalizationRegistry, arrow-function, async-functions, async-iteration, class]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, arrow-function, async-functions, async-iteration, class]
---*/
var fn = function() {};

View File

@ -12,7 +12,7 @@ info: |
3. If finalizationRegistry does not have a [[Cells]] internal slot, throw a TypeError exception.
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
...
features: [cleanupSome, WeakSet, WeakMap, FinalizationRegistry, WeakRef]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, WeakSet, WeakMap, FinalizationRegistry, WeakRef]
---*/
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');

View File

@ -12,7 +12,7 @@ info: |
3. If finalizationRegistry does not have a [[Cells]] internal slot, throw a TypeError exception.
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
...
features: [cleanupSome, FinalizationRegistry]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
---*/
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');

View File

@ -29,7 +29,7 @@ info: |
i. Remove cell from finalizationRegistry.[[Cells]].
ii. Set removed to true.
3. Return removed.
features: [cleanupSome, FinalizationRegistry, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/

View File

@ -13,7 +13,7 @@ info: |
a. Perform ! KeepDuringJob(target).
b. Return target.
6. Return undefined.
features: [cleanupSome, WeakRef, host-gc-required]
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, WeakRef, host-gc-required]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/