diff --git a/test/language/expressions/class/subclass-builtins/subclass-AggregateError.js b/test/language/expressions/class/subclass-builtins/subclass-AggregateError.js index 993506c7b2..25017adeec 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-AggregateError.js +++ b/test/language/expressions/class/subclass-builtins/subclass-AggregateError.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage) +features: [AggregateError] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-ArrayBuffer.js b/test/language/expressions/class/subclass-builtins/subclass-ArrayBuffer.js index 6dc4e13815..ecd765689b 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-ArrayBuffer.js +++ b/test/language/expressions/class/subclass-builtins/subclass-ArrayBuffer.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage) +features: [TypedArray, ArrayBuffer] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-BigInt64Array.js b/test/language/expressions/class/subclass-builtins/subclass-BigInt64Array.js index 1b12076496..af2594aa88 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-BigInt64Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-BigInt64Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubBigInt64Array() instanceof BigInt64Array (Subclass instanceof Heritage) +features: [TypedArray, BigInt] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-BigUint64Array.js b/test/language/expressions/class/subclass-builtins/subclass-BigUint64Array.js index fc3827c941..69d60a120d 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-BigUint64Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-BigUint64Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage) +features: [TypedArray, BigInt] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-DataView.js b/test/language/expressions/class/subclass-builtins/subclass-DataView.js index f725761d8b..44ae378eec 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-DataView.js +++ b/test/language/expressions/class/subclass-builtins/subclass-DataView.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubDataView() instanceof DataView (Subclass instanceof Heritage) +features: [TypedArray, DataView] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Float32Array.js b/test/language/expressions/class/subclass-builtins/subclass-Float32Array.js index e927002213..4d9425b966 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Float32Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Float32Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage) +features: [TypedArray, Float32Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Float64Array.js b/test/language/expressions/class/subclass-builtins/subclass-Float64Array.js index d17c7d7eff..5bf436b936 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Float64Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Float64Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage) +features: [TypedArray, Float64Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Int16Array.js b/test/language/expressions/class/subclass-builtins/subclass-Int16Array.js index 36df087376..440db2e9b1 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Int16Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Int16Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubInt16Array() instanceof Int16Array (Subclass instanceof Heritage) +features: [TypedArray, Int16Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Int32Array.js b/test/language/expressions/class/subclass-builtins/subclass-Int32Array.js index d243ba179a..236d3a9507 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Int32Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Int32Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubInt32Array() instanceof Int32Array (Subclass instanceof Heritage) +features: [TypedArray, Int32Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Int8Array.js b/test/language/expressions/class/subclass-builtins/subclass-Int8Array.js index 7e0fc94301..4dd7da5509 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Int8Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Int8Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage) +features: [TypedArray, Int8Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Map.js b/test/language/expressions/class/subclass-builtins/subclass-Map.js index 2c64935768..4f03e6844f 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Map.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Map.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubMap() instanceof Map (Subclass instanceof Heritage) +features: [Map] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Promise.js b/test/language/expressions/class/subclass-builtins/subclass-Promise.js index dba7f88736..be4441b7ea 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Promise.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Promise.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubPromise() instanceof Promise (Subclass instanceof Heritage) +features: [Promise] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Set.js b/test/language/expressions/class/subclass-builtins/subclass-Set.js index 26374bba57..638d7d4e8d 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Set.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Set.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubSet() instanceof Set (Subclass instanceof Heritage) +features: [Set] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-SharedArrayBuffer.js b/test/language/expressions/class/subclass-builtins/subclass-SharedArrayBuffer.js index 3b5f6a972f..ddac1f035e 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-SharedArrayBuffer.js +++ b/test/language/expressions/class/subclass-builtins/subclass-SharedArrayBuffer.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubSharedArrayBuffer() instanceof SharedArrayBuffer (Subclass instanceof Heritage) +features: [SharedArrayBuffer] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Uint16Array.js b/test/language/expressions/class/subclass-builtins/subclass-Uint16Array.js index 7ac6384ded..4880572afe 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Uint16Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Uint16Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage) +features: [TypedArray, Uint16Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Uint32Array.js b/test/language/expressions/class/subclass-builtins/subclass-Uint32Array.js index 77f775f1c9..65345c26a3 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Uint32Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Uint32Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage) +features: [TypedArray, Uint32Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Uint8Array.js b/test/language/expressions/class/subclass-builtins/subclass-Uint8Array.js index 6fee9e0f13..bf7c2d197d 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Uint8Array.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Uint8Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubUint8Array() instanceof Uint8Array (Subclass instanceof Heritage) +features: [TypedArray, Uint8Array] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-Uint8ClampedArray.js b/test/language/expressions/class/subclass-builtins/subclass-Uint8ClampedArray.js index f7c834bf24..2c28237901 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-Uint8ClampedArray.js +++ b/test/language/expressions/class/subclass-builtins/subclass-Uint8ClampedArray.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage) +features: [TypedArray, Uint8ClampedArray] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-WeakMap.js b/test/language/expressions/class/subclass-builtins/subclass-WeakMap.js index e490ac22c0..71953ea8f9 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-WeakMap.js +++ b/test/language/expressions/class/subclass-builtins/subclass-WeakMap.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage) +features: [WeakMap] flags: [generated] ---*/ diff --git a/test/language/expressions/class/subclass-builtins/subclass-WeakRef.js b/test/language/expressions/class/subclass-builtins/subclass-WeakRef.js new file mode 100644 index 0000000000..7d841a4b86 --- /dev/null +++ b/test/language/expressions/class/subclass-builtins/subclass-WeakRef.js @@ -0,0 +1,15 @@ +// This file was procedurally generated from the following sources: +// - src/subclass-builtins/WeakRef.case +// - src/subclass-builtins/default/expression.template +/*--- +description: new SubWeakRef() instanceof WeakRef (Subclass instanceof Heritage) +features: [WeakRef] +flags: [generated] +---*/ + + +const Subclass = class extends WeakRef {} + +const sub = new Subclass(); +assert(sub instanceof Subclass); +assert(sub instanceof WeakRef); diff --git a/test/language/expressions/class/subclass-builtins/subclass-WeakSet.js b/test/language/expressions/class/subclass-builtins/subclass-WeakSet.js index 1ceef3d2c8..ff00b60f10 100644 --- a/test/language/expressions/class/subclass-builtins/subclass-WeakSet.js +++ b/test/language/expressions/class/subclass-builtins/subclass-WeakSet.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/expression.template /*--- description: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage) +features: [WeakSet] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-AggregateError.js b/test/language/statements/class/subclass-builtins/subclass-AggregateError.js index 2d3b0a020a..04f49766cb 100644 --- a/test/language/statements/class/subclass-builtins/subclass-AggregateError.js +++ b/test/language/statements/class/subclass-builtins/subclass-AggregateError.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage) +features: [AggregateError] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-ArrayBuffer.js b/test/language/statements/class/subclass-builtins/subclass-ArrayBuffer.js index 3d7136cd50..178905b12a 100644 --- a/test/language/statements/class/subclass-builtins/subclass-ArrayBuffer.js +++ b/test/language/statements/class/subclass-builtins/subclass-ArrayBuffer.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage) +features: [TypedArray, ArrayBuffer] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-BigInt64Array.js b/test/language/statements/class/subclass-builtins/subclass-BigInt64Array.js index 0e00f61b0d..d9e9bfd3f8 100644 --- a/test/language/statements/class/subclass-builtins/subclass-BigInt64Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-BigInt64Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubBigInt64Array() instanceof BigInt64Array (Subclass instanceof Heritage) +features: [TypedArray, BigInt] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-BigUint64Array.js b/test/language/statements/class/subclass-builtins/subclass-BigUint64Array.js index 74ed4b27d5..9afc89352b 100644 --- a/test/language/statements/class/subclass-builtins/subclass-BigUint64Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-BigUint64Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage) +features: [TypedArray, BigInt] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-DataView.js b/test/language/statements/class/subclass-builtins/subclass-DataView.js index ba79f83165..eca5d125f5 100644 --- a/test/language/statements/class/subclass-builtins/subclass-DataView.js +++ b/test/language/statements/class/subclass-builtins/subclass-DataView.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubDataView() instanceof DataView (Subclass instanceof Heritage) +features: [TypedArray, DataView] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Float32Array.js b/test/language/statements/class/subclass-builtins/subclass-Float32Array.js index bb074cb78e..07edce6b86 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Float32Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Float32Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage) +features: [TypedArray, Float32Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Float64Array.js b/test/language/statements/class/subclass-builtins/subclass-Float64Array.js index 6bb4abe0ed..581dbd79d2 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Float64Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Float64Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage) +features: [TypedArray, Float64Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Int16Array.js b/test/language/statements/class/subclass-builtins/subclass-Int16Array.js index 67780e1bf3..92b1de81ae 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Int16Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Int16Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubInt16Array() instanceof Int16Array (Subclass instanceof Heritage) +features: [TypedArray, Int16Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Int32Array.js b/test/language/statements/class/subclass-builtins/subclass-Int32Array.js index dbc48be70d..e87645e8be 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Int32Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Int32Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubInt32Array() instanceof Int32Array (Subclass instanceof Heritage) +features: [TypedArray, Int32Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Int8Array.js b/test/language/statements/class/subclass-builtins/subclass-Int8Array.js index 5391bcba63..d7d1d0b485 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Int8Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Int8Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage) +features: [TypedArray, Int8Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Map.js b/test/language/statements/class/subclass-builtins/subclass-Map.js index d578c037a7..9ba5e4e164 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Map.js +++ b/test/language/statements/class/subclass-builtins/subclass-Map.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubMap() instanceof Map (Subclass instanceof Heritage) +features: [Map] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Promise.js b/test/language/statements/class/subclass-builtins/subclass-Promise.js index 580078f3e6..2cd8270de5 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Promise.js +++ b/test/language/statements/class/subclass-builtins/subclass-Promise.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubPromise() instanceof Promise (Subclass instanceof Heritage) +features: [Promise] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Set.js b/test/language/statements/class/subclass-builtins/subclass-Set.js index 9d66326bad..c4801cc9c1 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Set.js +++ b/test/language/statements/class/subclass-builtins/subclass-Set.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubSet() instanceof Set (Subclass instanceof Heritage) +features: [Set] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-SharedArrayBuffer.js b/test/language/statements/class/subclass-builtins/subclass-SharedArrayBuffer.js index fd8c1b2274..e116e1cdbb 100644 --- a/test/language/statements/class/subclass-builtins/subclass-SharedArrayBuffer.js +++ b/test/language/statements/class/subclass-builtins/subclass-SharedArrayBuffer.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubSharedArrayBuffer() instanceof SharedArrayBuffer (Subclass instanceof Heritage) +features: [SharedArrayBuffer] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Uint16Array.js b/test/language/statements/class/subclass-builtins/subclass-Uint16Array.js index 0a9054728a..9e9fe5ce39 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Uint16Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Uint16Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage) +features: [TypedArray, Uint16Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Uint32Array.js b/test/language/statements/class/subclass-builtins/subclass-Uint32Array.js index b6c5a64ce5..72cdfd6aa6 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Uint32Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Uint32Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage) +features: [TypedArray, Uint32Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Uint8Array.js b/test/language/statements/class/subclass-builtins/subclass-Uint8Array.js index 51c6e4ae3a..2df0004f67 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Uint8Array.js +++ b/test/language/statements/class/subclass-builtins/subclass-Uint8Array.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubUint8Array() instanceof Uint8Array (Subclass instanceof Heritage) +features: [TypedArray, Uint8Array] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-Uint8ClampedArray.js b/test/language/statements/class/subclass-builtins/subclass-Uint8ClampedArray.js index 97ed6c3f93..b00ab80907 100644 --- a/test/language/statements/class/subclass-builtins/subclass-Uint8ClampedArray.js +++ b/test/language/statements/class/subclass-builtins/subclass-Uint8ClampedArray.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage) +features: [TypedArray, Uint8ClampedArray] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-WeakMap.js b/test/language/statements/class/subclass-builtins/subclass-WeakMap.js index e0e33d6b9f..0a861b7a1a 100644 --- a/test/language/statements/class/subclass-builtins/subclass-WeakMap.js +++ b/test/language/statements/class/subclass-builtins/subclass-WeakMap.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage) +features: [WeakMap] flags: [generated] ---*/ diff --git a/test/language/statements/class/subclass-builtins/subclass-WeakRef.js b/test/language/statements/class/subclass-builtins/subclass-WeakRef.js new file mode 100644 index 0000000000..8f949f1a96 --- /dev/null +++ b/test/language/statements/class/subclass-builtins/subclass-WeakRef.js @@ -0,0 +1,15 @@ +// This file was procedurally generated from the following sources: +// - src/subclass-builtins/WeakRef.case +// - src/subclass-builtins/default/statement.template +/*--- +description: new SubWeakRef() instanceof WeakRef (Subclass instanceof Heritage) +features: [WeakRef] +flags: [generated] +---*/ + + +class Subclass extends WeakRef {} + +const sub = new Subclass(); +assert(sub instanceof Subclass); +assert(sub instanceof WeakRef); diff --git a/test/language/statements/class/subclass-builtins/subclass-WeakSet.js b/test/language/statements/class/subclass-builtins/subclass-WeakSet.js index bb10b1b543..5008810e86 100644 --- a/test/language/statements/class/subclass-builtins/subclass-WeakSet.js +++ b/test/language/statements/class/subclass-builtins/subclass-WeakSet.js @@ -3,6 +3,7 @@ // - src/subclass-builtins/default/statement.template /*--- description: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage) +features: [WeakSet] flags: [generated] ---*/