mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Features: add full name for FinalizationRegistry.prototype.cleanupSome.
This commit is contained in:
parent
42bf3a9f7a
commit
ce8ec71c98
@ -135,6 +135,7 @@ FinalizationRegistry
|
|||||||
|
|
||||||
# FinalizationRegistry#cleanupSome
|
# FinalizationRegistry#cleanupSome
|
||||||
# link pending
|
# link pending
|
||||||
|
FinalizationRegistry.prototype.cleanupSome
|
||||||
cleanupSome
|
cleanupSome
|
||||||
|
|
||||||
# Optional Chaining
|
# Optional Chaining
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
2. For each FinalizationRegistry finalizationRegistry such that finalizationRegistry.[[Cells]] contains cell, such that cell.[[Target]] is obj,
|
2. For each FinalizationRegistry finalizationRegistry such that finalizationRegistry.[[Cells]] contains cell, such that cell.[[Target]] is obj,
|
||||||
a. Set cell.[[Target]] to empty.
|
a. Set cell.[[Target]] to empty.
|
||||||
b. Optionally, perform ! HostCleanupFinalizationRegistry(finalizationRegistry).
|
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]
|
flags: [async, non-deterministic]
|
||||||
includes: [async-gc.js, compareArray.js]
|
includes: [async-gc.js, compareArray.js]
|
||||||
---*/
|
---*/
|
||||||
|
@ -12,7 +12,7 @@ info: |
|
|||||||
3. If finalizationRegistry does not have a [[Cells]] internal slot, throw a TypeError exception.
|
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.
|
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');
|
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
||||||
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
|
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
|
||||||
6. Return undefined.
|
6. Return undefined.
|
||||||
features: [cleanupSome, FinalizationRegistry, host-gc-required]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
|
||||||
includes: [async-gc.js]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
i. Remove cell from finalizationRegistry.[[Cells]].
|
i. Remove cell from finalizationRegistry.[[Cells]].
|
||||||
ii. Set removed to true.
|
ii. Set removed to true.
|
||||||
3. Return removed.
|
3. Return removed.
|
||||||
features: [cleanupSome, FinalizationRegistry, host-gc-required]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
|
||||||
includes: [async-gc.js]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
@ -49,6 +49,6 @@ emptyCells().then(function() {
|
|||||||
finalizationRegistry.cleanupSome(function cb(holding) {
|
finalizationRegistry.cleanupSome(function cb(holding) {
|
||||||
called += 1;
|
called += 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.sameValue(called, 0, 'callback was not called');
|
assert.sameValue(called, 0, 'callback was not called');
|
||||||
}).then($DONE, resolveAsyncGC);
|
}).then($DONE, resolveAsyncGC);
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
||||||
5. Perform ! CleanupFinalizationRegistry(finalizationRegistry, callback).
|
5. Perform ! CleanupFinalizationRegistry(finalizationRegistry, callback).
|
||||||
6. Return undefined.
|
6. Return undefined.
|
||||||
features: [cleanupSome, FinalizationRegistry]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var fn = function() {};
|
var fn = function() {};
|
||||||
|
@ -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]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
function object has the attributes { [[Writable]]: false,
|
function object has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [cleanupSome, FinalizationRegistry]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(FinalizationRegistry.prototype.cleanupSome, 'length', {
|
verifyProperty(FinalizationRegistry.prototype.cleanupSome, 'length', {
|
||||||
|
@ -20,7 +20,7 @@ info: |
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [cleanupSome, FinalizationRegistry]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(FinalizationRegistry.prototype.cleanupSome, 'name', {
|
verifyProperty(FinalizationRegistry.prototype.cleanupSome, 'name', {
|
||||||
|
@ -12,7 +12,7 @@ info: |
|
|||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
[[Configurable]]: true } unless otherwise specified.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [cleanupSome, FinalizationRegistry]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');
|
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');
|
||||||
|
@ -8,7 +8,7 @@ description: >
|
|||||||
info: |
|
info: |
|
||||||
FinalizationRegistry.prototype.cleanupSome ( [ callback ] )
|
FinalizationRegistry.prototype.cleanupSome ( [ callback ] )
|
||||||
|
|
||||||
features: [cleanupSome, FinalizationRegistry, host-gc-required]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
|
||||||
includes: [async-gc.js]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
||||||
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
|
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
|
||||||
6. Return undefined.
|
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]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
4. If callback is not undefined and IsCallable(callback) is false, throw a TypeError exception.
|
||||||
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
|
5. Perform ? CleanupFinalizationRegistry(finalizationRegistry, callback).
|
||||||
6. Return undefined.
|
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() {};
|
var fn = function() {};
|
||||||
|
@ -12,7 +12,7 @@ info: |
|
|||||||
3. If finalizationRegistry does not have a [[Cells]] internal slot, throw a TypeError exception.
|
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.
|
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');
|
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');
|
||||||
|
@ -12,7 +12,7 @@ info: |
|
|||||||
3. If finalizationRegistry does not have a [[Cells]] internal slot, throw a TypeError exception.
|
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.
|
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');
|
assert.sameValue(typeof FinalizationRegistry.prototype.cleanupSome, 'function');
|
||||||
|
@ -29,7 +29,7 @@ info: |
|
|||||||
i. Remove cell from finalizationRegistry.[[Cells]].
|
i. Remove cell from finalizationRegistry.[[Cells]].
|
||||||
ii. Set removed to true.
|
ii. Set removed to true.
|
||||||
3. Return removed.
|
3. Return removed.
|
||||||
features: [cleanupSome, FinalizationRegistry, host-gc-required]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, FinalizationRegistry, host-gc-required]
|
||||||
includes: [async-gc.js]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
a. Perform ! KeepDuringJob(target).
|
a. Perform ! KeepDuringJob(target).
|
||||||
b. Return target.
|
b. Return target.
|
||||||
6. Return undefined.
|
6. Return undefined.
|
||||||
features: [cleanupSome, WeakRef, host-gc-required]
|
features: [FinalizationRegistry.prototype.cleanupSome, cleanupSome, WeakRef, host-gc-required]
|
||||||
includes: [async-gc.js]
|
includes: [async-gc.js]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
---*/
|
---*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user