From 80f162d174186d028152f83eb2c6951305726965 Mon Sep 17 00:00:00 2001 From: rwaldron Date: Fri, 16 Jul 2021 14:08:17 -0400 Subject: [PATCH] fix: empty the lint trap --- test/built-ins/Realm/constructor.js | 2 +- ...other-realm-is-wrapped-into-a-typeerror.js | 1 - .../prototype/evaluate/not-constructor.js | 4 +-- .../evaluate/returns-primitive-values.js | 3 +-- .../evaluate/returns-symbol-values.js | 1 - ...if-evaluation-resolves-to-non-primitive.js | 1 - .../throws-when-argument-is-not-a-string.js | 1 - .../evaluate/validates-realm-object.js | 1 - ...e-wrapped-into-the-inner-realm-extended.js | 1 - ...uments-are-wrapped-into-the-inner-realm.js | 1 - ...on-from-return-values-share-no-identity.js | 1 - ...wrapped-function-observing-their-scopes.js | 1 - ...pped-functions-accepts-callable-objects.js | 1 - ...-functions-can-resolve-callable-returns.js | 1 - ...nctions-new-wrapping-on-each-evaluation.js | 1 - ...-functions-share-no-properties-extended.js | 1 - .../wrapped-functions-share-no-properties.js | 1 - .../can-import-specified-bindings-by-name.js | 25 ------------------- .../importValue/exportName-tostring.js | 1 - .../prototype/importValue/import-value.js | 1 - .../prototype/importValue/not-constructor.js | 2 +- .../importValue/specifier-tostring.js | 1 - .../importValue/validates-realm-object.js | 1 - 23 files changed, 5 insertions(+), 49 deletions(-) delete mode 100644 test/built-ins/Realm/prototype/importValue/can-import-specified-bindings-by-name.js diff --git a/test/built-ins/Realm/constructor.js b/test/built-ins/Realm/constructor.js index 4a22fb4f43..55454a6e11 100644 --- a/test/built-ins/Realm/constructor.js +++ b/test/built-ins/Realm/constructor.js @@ -5,7 +5,7 @@ esid: sec-realm-constructor description: > Realm is a constructor and has [[Construct]] internal method. includes: [isConstructor.js] -features: [callable-boundary-realms] +features: [callable-boundary-realms, Reflect.construct] ---*/ assert.sameValue( typeof Realm, diff --git a/test/built-ins/Realm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js b/test/built-ins/Realm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js index 5337123989..2d6a321ddc 100644 --- a/test/built-ins/Realm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js +++ b/test/built-ins/Realm/prototype/evaluate/errors-from-the-other-realm-is-wrapped-into-a-typeerror.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wraps errors from other realm into TypeErrors -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/not-constructor.js b/test/built-ins/Realm/prototype/evaluate/not-constructor.js index e0f2fbc1f6..148e255979 100644 --- a/test/built-ins/Realm/prototype/evaluate/not-constructor.js +++ b/test/built-ins/Realm/prototype/evaluate/not-constructor.js @@ -5,7 +5,7 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate is not a constructor. includes: [isConstructor.js] -features: [callable-boundary-realms] +features: [callable-boundary-realms, Reflect.construct] ---*/ assert.sameValue( @@ -22,5 +22,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Realm.prototype.evaluate(""); -}, '`let value = new Realm.prototype.evaluate("")` throws TypeError'); +}, '`new Realm.prototype.evaluate("")` throws TypeError'); diff --git a/test/built-ins/Realm/prototype/evaluate/returns-primitive-values.js b/test/built-ins/Realm/prototype/evaluate/returns-primitive-values.js index 2e2b8fbba6..f4b5ceb3a8 100644 --- a/test/built-ins/Realm/prototype/evaluate/returns-primitive-values.js +++ b/test/built-ins/Realm/prototype/evaluate/returns-primitive-values.js @@ -4,8 +4,7 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate returns primitive values -includes: [isConstructor.js] -features: [callable-boundary-realms] +sfeatures: [callable-boundary-realms] ---*/ assert.sameValue( diff --git a/test/built-ins/Realm/prototype/evaluate/returns-symbol-values.js b/test/built-ins/Realm/prototype/evaluate/returns-symbol-values.js index 77480a9b0b..131024f6eb 100644 --- a/test/built-ins/Realm/prototype/evaluate/returns-symbol-values.js +++ b/test/built-ins/Realm/prototype/evaluate/returns-symbol-values.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate returns symbol values -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/throws-typeerror-if-evaluation-resolves-to-non-primitive.js b/test/built-ins/Realm/prototype/evaluate/throws-typeerror-if-evaluation-resolves-to-non-primitive.js index 2f1e8e9189..6db853abb8 100644 --- a/test/built-ins/Realm/prototype/evaluate/throws-typeerror-if-evaluation-resolves-to-non-primitive.js +++ b/test/built-ins/Realm/prototype/evaluate/throws-typeerror-if-evaluation-resolves-to-non-primitive.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate throws a TypeError if evaluate resolves to non-primitive values -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/throws-when-argument-is-not-a-string.js b/test/built-ins/Realm/prototype/evaluate/throws-when-argument-is-not-a-string.js index 5186f3f19c..c0b3f9983e 100644 --- a/test/built-ins/Realm/prototype/evaluate/throws-when-argument-is-not-a-string.js +++ b/test/built-ins/Realm/prototype/evaluate/throws-when-argument-is-not-a-string.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate throws when argument is not a string. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/validates-realm-object.js b/test/built-ins/Realm/prototype/evaluate/validates-realm-object.js index 1f024de931..d30e088950 100644 --- a/test/built-ins/Realm/prototype/evaluate/validates-realm-object.js +++ b/test/built-ins/Realm/prototype/evaluate/validates-realm-object.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate validates realm object. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm-extended.js b/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm-extended.js index 4477391c7a..a5c464110d 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm-extended.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm-extended.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped function arguments are wrapped into the inner realm, extended. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm.js b/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm.js index a9ac38679a..a79ac3101b 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-function-arguments-are-wrapped-into-the-inner-realm.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped function arguments are wrapped into the inner realm -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-function-from-return-values-share-no-identity.js b/test/built-ins/Realm/prototype/evaluate/wrapped-function-from-return-values-share-no-identity.js index 9bfe5442b3..ec8bc5d892 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-function-from-return-values-share-no-identity.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-function-from-return-values-share-no-identity.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped function from return values share no identity. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-function-observing-their-scopes.js b/test/built-ins/Realm/prototype/evaluate/wrapped-function-observing-their-scopes.js index a55e998deb..e5022088a3 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-function-observing-their-scopes.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-function-observing-their-scopes.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped function observing their scopes -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-accepts-callable-objects.js b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-accepts-callable-objects.js index c9f82c6310..85bb41ece7 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-accepts-callable-objects.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-accepts-callable-objects.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate accepts callable objects -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-can-resolve-callable-returns.js b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-can-resolve-callable-returns.js index 91ba49f8f0..7e2d6775c0 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-can-resolve-callable-returns.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-can-resolve-callable-returns.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped functions can resolve callable returns. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-new-wrapping-on-each-evaluation.js b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-new-wrapping-on-each-evaluation.js index 8563826b2e..c185504830 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-new-wrapping-on-each-evaluation.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-new-wrapping-on-each-evaluation.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped functions produce new wrapping on each evaluation. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties-extended.js b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties-extended.js index 9f1f2feb88..df0f7c1095 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties-extended.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties-extended.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped functions share no properties, extended -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties.js b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties.js index 44e8f5e2d2..21c8bdabb8 100644 --- a/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties.js +++ b/test/built-ins/Realm/prototype/evaluate/wrapped-functions-share-no-properties.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.evaluate description: > Realm.prototype.evaluate wrapped functions share no properties -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/importValue/can-import-specified-bindings-by-name.js b/test/built-ins/Realm/prototype/importValue/can-import-specified-bindings-by-name.js deleted file mode 100644 index b1dbdd1b11..0000000000 --- a/test/built-ins/Realm/prototype/importValue/can-import-specified-bindings-by-name.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2021 Rick Waldron. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-realm.prototype.importvalue -description: > - Realm.prototype.importValue is not a constructor. -includes: [isConstructor.js] -features: [callable-boundary-realms] ----*/ - -assert.sameValue( - typeof Realm.prototype.importValue, - 'function', - 'This test must fail if Realm.prototype.importValue is not a function' -); - -assert.sameValue( - isConstructor(Realm.prototype.importValue), - false, - 'isConstructor(Realm.prototype.importValue) must return false' -); - -assert.throws(TypeError, () => { - new Realm.prototype.importValue(""); -}, '`let value = new Realm.prototype.importValue("")` throws TypeError'); diff --git a/test/built-ins/Realm/prototype/importValue/exportName-tostring.js b/test/built-ins/Realm/prototype/importValue/exportName-tostring.js index 4e8e8b31e7..bc11edb5c0 100644 --- a/test/built-ins/Realm/prototype/importValue/exportName-tostring.js +++ b/test/built-ins/Realm/prototype/importValue/exportName-tostring.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.importvalue description: > Realm.prototype.importValue coerces exportName to string. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/importValue/import-value.js b/test/built-ins/Realm/prototype/importValue/import-value.js index 3965fd3ece..36032cf4ac 100644 --- a/test/built-ins/Realm/prototype/importValue/import-value.js +++ b/test/built-ins/Realm/prototype/importValue/import-value.js @@ -5,7 +5,6 @@ esid: sec-realm.prototype.importvalue description: > Realm.prototype.importValue can import a value. flags: [async, module] -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/importValue/not-constructor.js b/test/built-ins/Realm/prototype/importValue/not-constructor.js index b1dbdd1b11..8532bb964f 100644 --- a/test/built-ins/Realm/prototype/importValue/not-constructor.js +++ b/test/built-ins/Realm/prototype/importValue/not-constructor.js @@ -22,4 +22,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Realm.prototype.importValue(""); -}, '`let value = new Realm.prototype.importValue("")` throws TypeError'); +}, '`new Realm.prototype.importValue("")` throws TypeError'); diff --git a/test/built-ins/Realm/prototype/importValue/specifier-tostring.js b/test/built-ins/Realm/prototype/importValue/specifier-tostring.js index 3fe6252ff0..6a0b54c38f 100644 --- a/test/built-ins/Realm/prototype/importValue/specifier-tostring.js +++ b/test/built-ins/Realm/prototype/importValue/specifier-tostring.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.importvalue description: > Realm.prototype.importValue coerces specifier to string. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/ diff --git a/test/built-ins/Realm/prototype/importValue/validates-realm-object.js b/test/built-ins/Realm/prototype/importValue/validates-realm-object.js index ea9b91e75c..54ae70d3ad 100644 --- a/test/built-ins/Realm/prototype/importValue/validates-realm-object.js +++ b/test/built-ins/Realm/prototype/importValue/validates-realm-object.js @@ -4,7 +4,6 @@ esid: sec-realm.prototype.importvalue description: > Realm.prototype.importValue validates realm object. -includes: [isConstructor.js] features: [callable-boundary-realms] ---*/