mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
cbfb7eb96a
commit
a92de6fa2d
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage)
|
||||
features: [AggregateError]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage)
|
||||
features: [TypedArray, ArrayBuffer]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubBigInt64Array() instanceof BigInt64Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, BigInt]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, BigInt]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubDataView() instanceof DataView (Subclass instanceof Heritage)
|
||||
features: [TypedArray, DataView]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Float32Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Float64Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubInt16Array() instanceof Int16Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Int16Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubInt32Array() instanceof Int32Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Int32Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Int8Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubMap() instanceof Map (Subclass instanceof Heritage)
|
||||
features: [Map]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubPromise() instanceof Promise (Subclass instanceof Heritage)
|
||||
features: [Promise]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubSet() instanceof Set (Subclass instanceof Heritage)
|
||||
features: [Set]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubSharedArrayBuffer() instanceof SharedArrayBuffer (Subclass instanceof Heritage)
|
||||
features: [SharedArrayBuffer]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint16Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint32Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubUint8Array() instanceof Uint8Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint8Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint8ClampedArray]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage)
|
||||
features: [WeakMap]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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);
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/expression.template
|
||||
/*---
|
||||
description: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage)
|
||||
features: [WeakSet]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage)
|
||||
features: [AggregateError]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage)
|
||||
features: [TypedArray, ArrayBuffer]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubBigInt64Array() instanceof BigInt64Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, BigInt]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, BigInt]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubDataView() instanceof DataView (Subclass instanceof Heritage)
|
||||
features: [TypedArray, DataView]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Float32Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Float64Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubInt16Array() instanceof Int16Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Int16Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubInt32Array() instanceof Int32Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Int32Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Int8Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubMap() instanceof Map (Subclass instanceof Heritage)
|
||||
features: [Map]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubPromise() instanceof Promise (Subclass instanceof Heritage)
|
||||
features: [Promise]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubSet() instanceof Set (Subclass instanceof Heritage)
|
||||
features: [Set]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubSharedArrayBuffer() instanceof SharedArrayBuffer (Subclass instanceof Heritage)
|
||||
features: [SharedArrayBuffer]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint16Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint32Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubUint8Array() instanceof Uint8Array (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint8Array]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage)
|
||||
features: [TypedArray, Uint8ClampedArray]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage)
|
||||
features: [WeakMap]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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);
|
|
@ -3,6 +3,7 @@
|
|||
// - src/subclass-builtins/default/statement.template
|
||||
/*---
|
||||
description: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage)
|
||||
features: [WeakSet]
|
||||
flags: [generated]
|
||||
---*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue