Skip to content

Commit

Permalink
Merge pull request #2366 from bocoup/unnecessary-includes
Browse files Browse the repository at this point in the history
Remove unnecessary "includes" directives
  • Loading branch information
leobalter authored Sep 27, 2019
2 parents 87e875f + 1e4e524 commit e2903e2
Show file tree
Hide file tree
Showing 84 changed files with 24 additions and 88 deletions.
2 changes: 0 additions & 2 deletions src/async-generators/yield-spread-obj.case
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ info: |
(...)
...AssignmentExpression[In, ?Yield]
features: [object-spread]
includes:
- compareArray.js
flags: [async]
---*/

Expand Down
1 change: 0 additions & 1 deletion src/dynamic-import/ns-extensible.case
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/*---
desc: Module namespace objects are not extensible.
template: namespace
includes: [propertyHelper.js]
---*/

//- import
Expand Down
2 changes: 0 additions & 2 deletions src/generators/yield-spread-obj.case
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ info: |
(...)
...AssignmentExpression[In, ?Yield]
features: [object-spread]
includes:
- compareArray.js
---*/

//- body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ info: |
7. Repeat, while k < len
a. Let elementK be the result of ? Get(O, ! ToString(k)).
...
includes: [compareArray.js]
---*/

function getCleanObj() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ testWithTypedArrayConstructors(TA => {
var i = 0;
assert.throws(TypeError, () => {
for (let key of typedArray.keys()) {
$262.detachArrayBuffer(typedArray.buffer);
$DETACHBUFFER(typedArray.buffer);
i++;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ info: |
...
9. Return promiseCapability.[[Promise]].
includes: [propertyHelper.js]
features: [async-iteration]
---*/

Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Atomics/notify/count-from-nans.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ info: |
2. If number is NaN, return +0.
...
includes: [nans.js, atomicsHelper.js]
includes: [nans.js]
features: [Atomics, SharedArrayBuffer, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
esid: sec-atomics.notify
description: >
Test Atomics.notify on non-shared integer TypedArrays
includes: [testTypedArray.js]
features: [ArrayBuffer, Atomics, TypedArray]
---*/

Expand Down
1 change: 0 additions & 1 deletion test/built-ins/Atomics/notify/non-shared-int-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
esid: sec-atomics.notify
description: >
Test Atomics.notify on non-shared integer TypedArrays
includes: [testTypedArray.js]
features: [Atomics, SharedArrayBuffer, TypedArray]
---*/

Expand Down
1 change: 0 additions & 1 deletion test/built-ins/Atomics/wait/negative-index-throws.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ info: |
...
2.b If integerIndex < 0, throw a RangeError exception
includes: [atomicsHelper.js]
features: [Atomics, SharedArrayBuffer, TypedArray]
---*/

Expand Down
1 change: 0 additions & 1 deletion test/built-ins/Atomics/wait/object-for-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ info: |
Let primValue be ? ToPrimitive(argument, hint Number).
Return ? ToNumber(primValue).
includes: [atomicsHelper.js]
features: [Atomics, SharedArrayBuffer, Symbol, Symbol.toPrimitive, TypedArray]
flags: [CanBlockIsTrue]
---*/
Expand Down
1 change: 0 additions & 1 deletion test/built-ins/Date/parse/time-value-maximum-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ info: |
smaller: exactly -100,000,000 days to 100,000,000 days measured relative to
midnight at the beginning of 01 January, 1970 UTC. This gives a range of
8,640,000,000,000,000 milliseconds to either side of 01 January, 1970 UTC.
includes: [propertyHelper.js]
---*/

const minDateStr = "-271821-04-20T00:00:00.000Z";
Expand Down
1 change: 0 additions & 1 deletion test/built-ins/Date/parse/zero.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ info: |
Date.parse(x.toString())
Date.parse(x.toUTCString())
Date.parse(x.toISOString())
includes: [propertyHelper.js]
---*/

const zero = new Date(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ info: |
c. Return CreateIterResultObject(cell.[[Holdings]], false).
9. Otherwise, return CreateIterResultObject(undefined, true).
features: [FinalizationGroup, Symbol, host-gc-required]
includes: [compareArray.js, async-gc.js]
includes: [async-gc.js]
flags: [async, non-deterministic]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ info: |
NativeFunction:
function IdentifierName_opt ( FormalParameters ) { [ native code ] }
includes: [fnGlobalObject.js, nativeFunctionMatcher.js, wellKnownIntrinsicObjects.js]
includes: [nativeFunctionMatcher.js, wellKnownIntrinsicObjects.js]
features: [arrow-function]
---*/

Expand Down
4 changes: 1 addition & 3 deletions test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ Object.defineProperties(obj, {
}
});

if (isWritable(obj, "prop")) {
$ERROR('Expected obj["prop"] not to be writable.');
}
verifyNotWritable(obj, "prop");

if (!obj.hasOwnProperty("prop")) {
$ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop"));
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Promise/allSettled/resolve-non-thenable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ info: |
a. Let valuesArray be ! CreateArrayFromList(values).
b. Return ? Call(promiseCapability.[[Resolve]], undefined, « valuesArray »).
flags: [async]
includes: [compareArray.js, promiseHelper.js]
includes: [promiseHelper.js]
features: [Promise.allSettled]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

/*---
description: A matching element of indices is an Array with exactly two number properties.
includes: [compareArray.js]
esid: sec-getmatchindicesarray
features: [regexp-match-indices]
info: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ info: |
4. Let rx be ? RegExpCreate(R, "g").
5. Return ? Invoke(rx, @@matchAll, « S »).
features: [String.prototype.matchAll]
includes: [compareArray.js, compareIterator.js, regExpUtils.js]
---*/

var callCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ info: |
5. Return ? Invoke(rx, @@matchAll, « S »).
features: [Symbol.matchAll, String.prototype.matchAll]
includes: [compareArray.js, compareIterator.js, regExpUtils.js]
---*/

assert.sameValue(typeof String.prototype.matchAll, "function");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ info: |
Assert: Type(desc) is String.
Return the string-concatenation of "Symbol(", desc, and ")".
includes: [propertyHelper.js]
features: [Symbol.prototype.description]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info: |
b. Let kValue be ? Get(O, Pk).
c. Let mappedValue be ? Call(callbackfn, T, « kValue, k, O »).
...
includes: [testBigIntTypedArray.js, compareArray.js]
includes: [testBigIntTypedArray.js]
features: [BigInt, Symbol, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info: |
b. Let kValue be ? Get(O, Pk).
c. Let mappedValue be ? Call(callbackfn, T, « kValue, k, O »).
...
includes: [testTypedArray.js, compareArray.js]
includes: [testTypedArray.js]
features: [Symbol, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ info: |
2. Let int64bit be n modulo 2^64.
3. If int64bit ≥ 2^63, return int64bit - 2^64; otherwise return int64bit.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ info: |
2. Let int64bit be n modulo 2^64.
3. Return int64bit.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*---
esid: sec-%typedarray%.prototype.slice
description: slice may return a new empty instance
includes: [testBigIntTypedArray.js, compareArray.js]
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*---
esid: sec-%typedarray%.prototype.slice
description: slice may return a new instance with the same length
includes: [testBigIntTypedArray.js, compareArray.js]
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*---
esid: sec-%typedarray%.prototype.slice
description: slice may return a new empty instance
includes: [testTypedArray.js, compareArray.js]
includes: [testTypedArray.js]
features: [TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*---
esid: sec-%typedarray%.prototype.slice
description: slice may return a new instance with the same length
includes: [testTypedArray.js, compareArray.js]
includes: [testTypedArray.js]
features: [TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ info: |
NOTE: Because NaN always compares greater than any other value, NaN property
values always sort to the end of the result when comparefn is not provided.
includes: [testTypedArray.js, compareArray.js]
includes: [testTypedArray.js]
features: [TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info: |
...
17. Return ? TypedArraySpeciesCreate(O, argumentsList).
includes: [testBigIntTypedArray.js, compareArray.js]
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info: |
...
17. Return ? TypedArraySpeciesCreate(O, argumentsList).
includes: [testBigIntTypedArray.js, compareArray.js]
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info: |
...
17. Return ? TypedArraySpeciesCreate(O, argumentsList).
includes: [testTypedArray.js, compareArray.js]
includes: [testTypedArray.js]
features: [TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info: |
...
17. Return ? TypedArraySpeciesCreate(O, argumentsList).
includes: [testTypedArray.js, compareArray.js]
includes: [testTypedArray.js]
features: [TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ info: |
2. Let int64bit be n modulo 2^64.
3. If int64bit ≥ 2^63, return int64bit - 2^64; otherwise return int64bit.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ info: |
2. Let int64bit be n modulo 2^64.
3. Return int64bit.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
{
value: {
valueOf: function() {
$262.detachArrayBuffer(ta.buffer);
$DETACHBUFFER(ta.buffer);
return 42n;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ testWithTypedArrayConstructors(function(TA) {
{
value: {
valueOf: function() {
$262.detachArrayBuffer(ta.buffer);
$DETACHBUFFER(ta.buffer);
return 42;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
5. If parent is not null, then
a. Return ? parent.[[HasProperty]](P).
6. Return false.
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
includes: [testBigIntTypedArray.js]
features: [BigInt, Reflect, Proxy, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
5. If parent is not null, then
a. Return ? parent.[[HasProperty]](P).
6. Return false.
includes: [testTypedArray.js, detachArrayBuffer.js]
includes: [testTypedArray.js]
features: [Reflect, Proxy, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ info: |
2. Let int64bit be n modulo 2^64.
3. If int64bit ≥ 2^63, return int64bit - 2^64; otherwise return int64bit.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ info: |
2. Let int64bit be n modulo 2^64.
3. Return int64bit.
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
Reflect.set(ta, 0, {
valueOf: function() {
$262.detachArrayBuffer(ta.buffer);
$DETACHBUFFER(ta.buffer);
return 42n;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ testWithTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
Reflect.set(ta, 0, {
valueOf: function() {
$262.detachArrayBuffer(ta.buffer);
$DETACHBUFFER(ta.buffer);
return 42;
}
});
Expand Down
1 change: 0 additions & 1 deletion test/built-ins/WeakMap/iterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ info: |
9. Repeat
k. Let status be Call(adder, map, «k.[[value]], v.[[value]]»).
l. If status is an abrupt completion, return IteratorClose(iter, status).
includes: [compareArray.js]
---*/

var first = {};
Expand Down
1 change: 0 additions & 1 deletion test/built-ins/WeakSet/iterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ info: |
9. Repeat
f. Let status be Call(adder, set, «nextValue»).
g. If status is an abrupt completion, return IteratorClose(iter, status).
includes: [compareArray.js]
---*/

var first = {};
Expand Down
Loading

0 comments on commit e2903e2

Please sign in to comment.