From cbfb7eb96a08eb6f12f1a5a7f166c418f3358686 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Tue, 15 Sep 2020 10:26:41 -0400 Subject: [PATCH] src/subclass-builtins/*.case: Add missing features --- features.txt | 3 +++ src/subclass-builtins/AggregateError.case | 1 + src/subclass-builtins/ArrayBuffer.case | 1 + src/subclass-builtins/BigInt64Array.case | 1 + src/subclass-builtins/BigUint64Array.case | 1 + src/subclass-builtins/DataView.case | 1 + src/subclass-builtins/Float32Array.case | 1 + src/subclass-builtins/Float64Array.case | 1 + src/subclass-builtins/Int16Array.case | 1 + src/subclass-builtins/Int32Array.case | 1 + src/subclass-builtins/Int8Array.case | 1 + src/subclass-builtins/Map.case | 1 + src/subclass-builtins/Promise.case | 1 + src/subclass-builtins/Set.case | 1 + src/subclass-builtins/SharedArrayBuffer.case | 1 + src/subclass-builtins/Uint16Array.case | 1 + src/subclass-builtins/Uint32Array.case | 1 + src/subclass-builtins/Uint8Array.case | 1 + src/subclass-builtins/Uint8ClampedArray.case | 1 + src/subclass-builtins/WeakMap.case | 1 + src/subclass-builtins/WeakRef.case | 13 +++++++++++++ src/subclass-builtins/WeakSet.case | 1 + 22 files changed, 36 insertions(+) create mode 100644 src/subclass-builtins/WeakRef.case diff --git a/features.txt b/features.txt index 06ddd2b9bd..3c260720d4 100644 --- a/features.txt +++ b/features.txt @@ -217,6 +217,7 @@ Float32Array Float64Array generators Int8Array +Int16Array Int32Array json-superset let @@ -226,6 +227,7 @@ object-rest object-spread Object.is optional-catch-binding +Promise Promise.prototype.finally Proxy Reflect @@ -262,6 +264,7 @@ TypedArray u180e Uint8Array Uint16Array +Uint32Array Uint8ClampedArray WeakMap WeakSet diff --git a/src/subclass-builtins/AggregateError.case b/src/subclass-builtins/AggregateError.case index d2928b934a..86fe853e98 100644 --- a/src/subclass-builtins/AggregateError.case +++ b/src/subclass-builtins/AggregateError.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubAggregateError() instanceof AggregateError +features: [AggregateError] template: default ---*/ diff --git a/src/subclass-builtins/ArrayBuffer.case b/src/subclass-builtins/ArrayBuffer.case index a2c5a57e2e..c2ec83399a 100644 --- a/src/subclass-builtins/ArrayBuffer.case +++ b/src/subclass-builtins/ArrayBuffer.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubArrayBuffer() instanceof ArrayBuffer +features: [TypedArray, ArrayBuffer] template: default ---*/ diff --git a/src/subclass-builtins/BigInt64Array.case b/src/subclass-builtins/BigInt64Array.case index ae27ef1788..4ca230d7ff 100644 --- a/src/subclass-builtins/BigInt64Array.case +++ b/src/subclass-builtins/BigInt64Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubBigInt64Array() instanceof BigInt64Array +features: [TypedArray, BigInt] template: default ---*/ diff --git a/src/subclass-builtins/BigUint64Array.case b/src/subclass-builtins/BigUint64Array.case index 1dc16534ca..02d60a3e4c 100644 --- a/src/subclass-builtins/BigUint64Array.case +++ b/src/subclass-builtins/BigUint64Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubBigUint64Array() instanceof BigUint64Array +features: [TypedArray, BigInt] template: default ---*/ diff --git a/src/subclass-builtins/DataView.case b/src/subclass-builtins/DataView.case index 4edba6ea3c..8b441b95e5 100644 --- a/src/subclass-builtins/DataView.case +++ b/src/subclass-builtins/DataView.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubDataView() instanceof DataView +features: [TypedArray, DataView] template: default ---*/ diff --git a/src/subclass-builtins/Float32Array.case b/src/subclass-builtins/Float32Array.case index abea5c4a4e..8490dd19d1 100644 --- a/src/subclass-builtins/Float32Array.case +++ b/src/subclass-builtins/Float32Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubFloat32Array() instanceof Float32Array +features: [TypedArray, Float32Array] template: default ---*/ diff --git a/src/subclass-builtins/Float64Array.case b/src/subclass-builtins/Float64Array.case index 17a71a3b48..18cce9b4e7 100644 --- a/src/subclass-builtins/Float64Array.case +++ b/src/subclass-builtins/Float64Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubFloat64Array() instanceof Float64Array +features: [TypedArray, Float64Array] template: default ---*/ diff --git a/src/subclass-builtins/Int16Array.case b/src/subclass-builtins/Int16Array.case index fcf03c47e3..eb4c58c30e 100644 --- a/src/subclass-builtins/Int16Array.case +++ b/src/subclass-builtins/Int16Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubInt16Array() instanceof Int16Array +features: [TypedArray, Int16Array] template: default ---*/ diff --git a/src/subclass-builtins/Int32Array.case b/src/subclass-builtins/Int32Array.case index 74e51b3ba9..afd88bf79d 100644 --- a/src/subclass-builtins/Int32Array.case +++ b/src/subclass-builtins/Int32Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubInt32Array() instanceof Int32Array +features: [TypedArray, Int32Array] template: default ---*/ diff --git a/src/subclass-builtins/Int8Array.case b/src/subclass-builtins/Int8Array.case index c75c7c0716..d348ccc792 100644 --- a/src/subclass-builtins/Int8Array.case +++ b/src/subclass-builtins/Int8Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubInt8Array() instanceof Int8Array +features: [TypedArray, Int8Array] template: default ---*/ diff --git a/src/subclass-builtins/Map.case b/src/subclass-builtins/Map.case index ddf0b600f0..891d59351d 100644 --- a/src/subclass-builtins/Map.case +++ b/src/subclass-builtins/Map.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubMap() instanceof Map +features: [Map] template: default ---*/ diff --git a/src/subclass-builtins/Promise.case b/src/subclass-builtins/Promise.case index 9641b9d1a9..8c3b7409f7 100644 --- a/src/subclass-builtins/Promise.case +++ b/src/subclass-builtins/Promise.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubPromise() instanceof Promise +features: [Promise] template: default ---*/ diff --git a/src/subclass-builtins/Set.case b/src/subclass-builtins/Set.case index a8964c53a7..24bb08b0a2 100644 --- a/src/subclass-builtins/Set.case +++ b/src/subclass-builtins/Set.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubSet() instanceof Set +features: [Set] template: default ---*/ diff --git a/src/subclass-builtins/SharedArrayBuffer.case b/src/subclass-builtins/SharedArrayBuffer.case index ed618ee162..216459cf9c 100644 --- a/src/subclass-builtins/SharedArrayBuffer.case +++ b/src/subclass-builtins/SharedArrayBuffer.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubSharedArrayBuffer() instanceof SharedArrayBuffer +features: [SharedArrayBuffer] template: default ---*/ diff --git a/src/subclass-builtins/Uint16Array.case b/src/subclass-builtins/Uint16Array.case index c6ce435635..77155ad4e8 100644 --- a/src/subclass-builtins/Uint16Array.case +++ b/src/subclass-builtins/Uint16Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubUint16Array() instanceof Uint16Array +features: [TypedArray, Uint16Array] template: default ---*/ diff --git a/src/subclass-builtins/Uint32Array.case b/src/subclass-builtins/Uint32Array.case index 93d74eb43d..9947ea6d32 100644 --- a/src/subclass-builtins/Uint32Array.case +++ b/src/subclass-builtins/Uint32Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubUint32Array() instanceof Uint32Array +features: [TypedArray, Uint32Array] template: default ---*/ diff --git a/src/subclass-builtins/Uint8Array.case b/src/subclass-builtins/Uint8Array.case index 73ae596018..eb80e477e2 100644 --- a/src/subclass-builtins/Uint8Array.case +++ b/src/subclass-builtins/Uint8Array.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubUint8Array() instanceof Uint8Array +features: [TypedArray, Uint8Array] template: default ---*/ diff --git a/src/subclass-builtins/Uint8ClampedArray.case b/src/subclass-builtins/Uint8ClampedArray.case index 8c740b09f5..0f6d6194c7 100644 --- a/src/subclass-builtins/Uint8ClampedArray.case +++ b/src/subclass-builtins/Uint8ClampedArray.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubUint8ClampedArray() instanceof Uint8ClampedArray +features: [TypedArray, Uint8ClampedArray] template: default ---*/ diff --git a/src/subclass-builtins/WeakMap.case b/src/subclass-builtins/WeakMap.case index 347b24e5f5..cdb5ef3a23 100644 --- a/src/subclass-builtins/WeakMap.case +++ b/src/subclass-builtins/WeakMap.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubWeakMap() instanceof WeakMap +features: [WeakMap] template: default ---*/ diff --git a/src/subclass-builtins/WeakRef.case b/src/subclass-builtins/WeakRef.case new file mode 100644 index 0000000000..cf5bf983ef --- /dev/null +++ b/src/subclass-builtins/WeakRef.case @@ -0,0 +1,13 @@ +// Copyright (C) 2020 Rick Waldron. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-ecmascript-standard-built-in-objects +desc: > + new SubWeakRef() instanceof WeakRef +features: [WeakRef] +template: default +---*/ + +//- builtin +WeakRef diff --git a/src/subclass-builtins/WeakSet.case b/src/subclass-builtins/WeakSet.case index c23e3ecd80..c398262015 100644 --- a/src/subclass-builtins/WeakSet.case +++ b/src/subclass-builtins/WeakSet.case @@ -5,6 +5,7 @@ esid: sec-ecmascript-standard-built-in-objects desc: > new SubWeakSet() instanceof WeakSet +features: [WeakSet] template: default ---*/