From d29fba05f94ed8e70e6ff93dd4309919f0706a56 Mon Sep 17 00:00:00 2001 From: rwaldron Date: Fri, 16 Jul 2021 14:40:17 -0400 Subject: [PATCH] fix: add missing newline at end of files, add missing frontmatter --- .../built-ins/Realm/prototype/evaluate/returns-symbol-values.js | 2 +- .../prototype/evaluate/throws-when-argument-is-not-a-string.js | 2 +- .../Realm/prototype/evaluate/validates-realm-object.js | 2 +- ...ction-arguments-are-wrapped-into-the-inner-realm-extended.js | 2 +- ...apped-function-arguments-are-wrapped-into-the-inner-realm.js | 2 +- .../wrapped-function-from-return-values-share-no-identity.js | 2 +- .../evaluate/wrapped-function-observing-their-scopes.js | 2 +- .../evaluate/wrapped-functions-can-resolve-callable-returns.js | 2 +- .../wrapped-functions-new-wrapping-on-each-evaluation.js | 2 +- .../evaluate/wrapped-functions-share-no-properties-extended.js | 2 +- test/built-ins/Realm/prototype/importValue/import-value.js | 2 +- test/built-ins/Realm/prototype/importValue/not-constructor.js | 2 +- .../built-ins/Realm/prototype/importValue/specifier-tostring.js | 2 +- .../importValue/throws-if-import-value-does-not-exist.js | 2 +- .../Realm/prototype/importValue/validates-realm-object.js | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) 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 131024f6eb..e41aa81381 100644 --- a/test/built-ins/Realm/prototype/evaluate/returns-symbol-values.js +++ b/test/built-ins/Realm/prototype/evaluate/returns-symbol-values.js @@ -20,4 +20,4 @@ assert.sameValue(typeof s, 'symbol'); assert.sameValue(s.constructor, Symbol, 'primitive does not expose other Realm constructor'); assert.sameValue(Object.getPrototypeOf(s), Symbol.prototype); assert.sameValue(r.evaluate('Symbol.for("x")'), Symbol.for('x')); -assert.sameValue(Symbol.prototype.toString.call(s), 'Symbol()'); \ No newline at end of file +assert.sameValue(Symbol.prototype.toString.call(s), 'Symbol()'); 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 c0b3f9983e..93715d3e01 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 @@ -21,4 +21,4 @@ assert.throws(TypeError, () => r.evaluate(1)); assert.throws(TypeError, () => r.evaluate(null)); assert.throws(TypeError, () => r.evaluate(undefined)); assert.throws(TypeError, () => r.evaluate(true)); -assert.throws(TypeError, () => r.evaluate(false)); \ No newline at end of file +assert.throws(TypeError, () => r.evaluate(false)); 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 d30e088950..76ce666e61 100644 --- a/test/built-ins/Realm/prototype/evaluate/validates-realm-object.js +++ b/test/built-ins/Realm/prototype/evaluate/validates-realm-object.js @@ -18,4 +18,4 @@ const bogus = {}; assert.throws(TypeError, function() { r.evaluate.call(bogus); -}, 'throws a TypeError if this is not a Realm object'); \ No newline at end of file +}, 'throws a TypeError if this is not a Realm object'); 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 a5c464110d..e59ad69368 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 @@ -43,4 +43,4 @@ const redWrappedFn = r.evaluate(` fn.x = 'secret'; fn; `); -assert.sameValue(redWrappedFn(blueFn, blueFn, redWrappedFn), true); \ No newline at end of file +assert.sameValue(redWrappedFn(blueFn, blueFn, redWrappedFn), true); 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 a79ac3101b..985a7403e5 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 @@ -21,4 +21,4 @@ const redWrappedFn = r.evaluate(` return blueWrappedFn(a, b) * c; } `); -assert.sameValue(redWrappedFn(blueFn, 2, 3, 4), 20); \ No newline at end of file +assert.sameValue(redWrappedFn(blueFn, 2, 3, 4), 20); 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 ec8bc5d892..9e999f7230 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 @@ -64,4 +64,4 @@ assert.sameValue(wrappedAsync.x, undefined, 'async fn, no property'); const wrappedGenerator = r.evaluate('() => genFn')(); assert.sameValue(typeof wrappedGenerator, 'function', 'gen function wrapped'); assert.throws(TypeError, () => wrappedGenerator(), 'wrapped function cannot return non callable object'); -assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property'); \ No newline at end of file +assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property'); 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 e5022088a3..35ec0450f9 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 @@ -31,4 +31,4 @@ const redFunction = r.evaluate(` `); assert.sameValue(redFunction(blueFn), 'red'); -assert.sameValue(myValue, 42); \ No newline at end of file +assert.sameValue(myValue, 42); 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 7e2d6775c0..3c740be62f 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 @@ -22,4 +22,4 @@ const otherNestedWrapped = wrapped(4); assert.sameValue(otherNestedWrapped(3), 12); assert.sameValue(nestedWrapped(3), 6); -assert.notSameValue(nestedWrapped, otherNestedWrapped, 'new wrapping for each return'); \ No newline at end of file +assert.notSameValue(nestedWrapped, otherNestedWrapped, 'new wrapping for each return'); 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 c185504830..e56f3e1fb8 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 @@ -26,4 +26,4 @@ const otherWrapped = r.evaluate('fn'); assert.notSameValue(wrapped, otherWrapped); assert.sameValue(typeof wrapped, 'function'); -assert.sameValue(typeof otherWrapped, 'function'); \ No newline at end of file +assert.sameValue(typeof otherWrapped, 'function'); 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 df0f7c1095..03bc124e72 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 @@ -64,4 +64,4 @@ assert.sameValue(wrappedAsync.x, undefined, 'async fn, no property'); const wrappedGenerator = r.evaluate('genFn'); assert.sameValue(typeof wrappedGenerator, 'function', 'gen function wrapped'); assert.throws(TypeError, () => wrappedGenerator(), 'wrapped function cannot return non callable object'); -assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property'); \ No newline at end of file +assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property'); diff --git a/test/built-ins/Realm/prototype/importValue/import-value.js b/test/built-ins/Realm/prototype/importValue/import-value.js index 36032cf4ac..3626a43e1d 100644 --- a/test/built-ins/Realm/prototype/importValue/import-value.js +++ b/test/built-ins/Realm/prototype/importValue/import-value.js @@ -20,4 +20,4 @@ r.importValue('./import-value_FIXTURE.js', 'x').then(x => { assert.sameValue(x, 1); -}).then($DONE, $DONE); \ No newline at end of file +}).then($DONE, $DONE); diff --git a/test/built-ins/Realm/prototype/importValue/not-constructor.js b/test/built-ins/Realm/prototype/importValue/not-constructor.js index 8532bb964f..488b2a0082 100644 --- a/test/built-ins/Realm/prototype/importValue/not-constructor.js +++ b/test/built-ins/Realm/prototype/importValue/not-constructor.js @@ -5,7 +5,7 @@ esid: sec-realm.prototype.importvalue description: > Realm.prototype.importValue is not a constructor. includes: [isConstructor.js] -features: [callable-boundary-realms] +features: [callable-boundary-realms, Reflect.construct] ---*/ assert.sameValue( diff --git a/test/built-ins/Realm/prototype/importValue/specifier-tostring.js b/test/built-ins/Realm/prototype/importValue/specifier-tostring.js index 6a0b54c38f..beba944b33 100644 --- a/test/built-ins/Realm/prototype/importValue/specifier-tostring.js +++ b/test/built-ins/Realm/prototype/importValue/specifier-tostring.js @@ -27,4 +27,4 @@ assert.throws(Test262Error, () => { r.importValue(specifier); }); -assert.sameValue(count, 1); \ No newline at end of file +assert.sameValue(count, 1); diff --git a/test/built-ins/Realm/prototype/importValue/throws-if-import-value-does-not-exist.js b/test/built-ins/Realm/prototype/importValue/throws-if-import-value-does-not-exist.js index 981222dee4..aa961d9237 100644 --- a/test/built-ins/Realm/prototype/importValue/throws-if-import-value-does-not-exist.js +++ b/test/built-ins/Realm/prototype/importValue/throws-if-import-value-does-not-exist.js @@ -50,4 +50,4 @@ r.importValue('./import-value_FIXTURE.js', 'y') .then( () => $DONE('Expected rejection'), () => $DONE() - ); \ No newline at end of file + ); 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 54ae70d3ad..1a4f8057f1 100644 --- a/test/built-ins/Realm/prototype/importValue/validates-realm-object.js +++ b/test/built-ins/Realm/prototype/importValue/validates-realm-object.js @@ -18,4 +18,4 @@ const bogus = {}; assert.throws(TypeError, function() { r.importValue.call(bogus); -}, 'throws a TypeError if this is not a Realm object'); \ No newline at end of file +}, 'throws a TypeError if this is not a Realm object');