mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 06:25:30 +02:00
Add feature tag for cleanupSome
The WeakRefs proposal advanced to Stage 4 but cleanupSome moved back to a Stage 2 status. The tests should remain in Test262 for now but this feature flag should help users to filter tests out.
This commit is contained in:
parent
538fcd88d8
commit
5a01caed71
@ -133,6 +133,10 @@ import.meta
|
|||||||
WeakRef
|
WeakRef
|
||||||
FinalizationRegistry
|
FinalizationRegistry
|
||||||
|
|
||||||
|
# FinalizationRegistry#cleanupSome
|
||||||
|
# link pending
|
||||||
|
cleanupSome
|
||||||
|
|
||||||
# Optional Chaining
|
# Optional Chaining
|
||||||
# https://github.com/tc39/proposal-optional-chaining
|
# https://github.com/tc39/proposal-optional-chaining
|
||||||
optional-chaining
|
optional-chaining
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
Collection of functions used to capture references cleanup from garbage collectors
|
Collection of functions used to capture references cleanup from garbage collectors
|
||||||
features: [Symbol, async-functions]
|
features: [cleanupSome, FinalizationRegistry, Symbol, async-functions]
|
||||||
flags: [non-deterministic]
|
flags: [non-deterministic]
|
||||||
features: [FinalizationRegistry]
|
|
||||||
defines: [asyncGC, asyncGCDeref, resolveAsyncGC]
|
defines: [asyncGC, asyncGCDeref, resolveAsyncGC]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -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: [FinalizationRegistry, async-functions, host-gc-required]
|
features: [cleanupSome, FinalizationRegistry, async-functions, host-gc-required]
|
||||||
flags: [async, non-deterministic]
|
flags: [async, non-deterministic]
|
||||||
includes: [async-gc.js]
|
includes: [async-gc.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: [FinalizationRegistry]
|
features: [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: [FinalizationRegistry, host-gc-required]
|
features: [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: [FinalizationRegistry, host-gc-required]
|
features: [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: [FinalizationRegistry]
|
features: [cleanupSome, FinalizationRegistry]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var fn = function() {};
|
var fn = function() {};
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
features: [FinalizationRegistry, Symbol, host-gc-required]
|
features: [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: [FinalizationRegistry]
|
features: [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: [FinalizationRegistry]
|
features: [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: [FinalizationRegistry]
|
features: [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: [FinalizationRegistry, host-gc-required]
|
features: [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: [FinalizationRegistry, arrow-function, async-functions, async-iteration, class, host-gc-required]
|
features: [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: [FinalizationRegistry, arrow-function, async-functions, async-iteration, class]
|
features: [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: [WeakSet, WeakMap, FinalizationRegistry, WeakRef]
|
features: [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: [FinalizationRegistry]
|
features: [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: [FinalizationRegistry, host-gc-required]
|
features: [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: [WeakRef, host-gc-required]
|
features: [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