fix: add missing newline at end of files, add missing frontmatter

This commit is contained in:
rwaldron 2021-07-16 14:40:17 -04:00 committed by Rick Waldron
parent c94b4ee7e1
commit d29fba05f9
15 changed files with 15 additions and 15 deletions

View File

@ -20,4 +20,4 @@ assert.sameValue(typeof s, 'symbol');
assert.sameValue(s.constructor, Symbol, 'primitive does not expose other Realm constructor'); assert.sameValue(s.constructor, Symbol, 'primitive does not expose other Realm constructor');
assert.sameValue(Object.getPrototypeOf(s), Symbol.prototype); assert.sameValue(Object.getPrototypeOf(s), Symbol.prototype);
assert.sameValue(r.evaluate('Symbol.for("x")'), Symbol.for('x')); assert.sameValue(r.evaluate('Symbol.for("x")'), Symbol.for('x'));
assert.sameValue(Symbol.prototype.toString.call(s), 'Symbol()'); assert.sameValue(Symbol.prototype.toString.call(s), 'Symbol()');

View File

@ -21,4 +21,4 @@ assert.throws(TypeError, () => r.evaluate(1));
assert.throws(TypeError, () => r.evaluate(null)); assert.throws(TypeError, () => r.evaluate(null));
assert.throws(TypeError, () => r.evaluate(undefined)); assert.throws(TypeError, () => r.evaluate(undefined));
assert.throws(TypeError, () => r.evaluate(true)); assert.throws(TypeError, () => r.evaluate(true));
assert.throws(TypeError, () => r.evaluate(false)); assert.throws(TypeError, () => r.evaluate(false));

View File

@ -18,4 +18,4 @@ const bogus = {};
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
r.evaluate.call(bogus); r.evaluate.call(bogus);
}, 'throws a TypeError if this is not a Realm object'); }, 'throws a TypeError if this is not a Realm object');

View File

@ -43,4 +43,4 @@ const redWrappedFn = r.evaluate(`
fn.x = 'secret'; fn.x = 'secret';
fn; fn;
`); `);
assert.sameValue(redWrappedFn(blueFn, blueFn, redWrappedFn), true); assert.sameValue(redWrappedFn(blueFn, blueFn, redWrappedFn), true);

View File

@ -21,4 +21,4 @@ const redWrappedFn = r.evaluate(`
return blueWrappedFn(a, b) * c; return blueWrappedFn(a, b) * c;
} }
`); `);
assert.sameValue(redWrappedFn(blueFn, 2, 3, 4), 20); assert.sameValue(redWrappedFn(blueFn, 2, 3, 4), 20);

View File

@ -64,4 +64,4 @@ assert.sameValue(wrappedAsync.x, undefined, 'async fn, no property');
const wrappedGenerator = r.evaluate('() => genFn')(); const wrappedGenerator = r.evaluate('() => genFn')();
assert.sameValue(typeof wrappedGenerator, 'function', 'gen function wrapped'); assert.sameValue(typeof wrappedGenerator, 'function', 'gen function wrapped');
assert.throws(TypeError, () => wrappedGenerator(), 'wrapped function cannot return non callable object'); assert.throws(TypeError, () => wrappedGenerator(), 'wrapped function cannot return non callable object');
assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property'); assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property');

View File

@ -31,4 +31,4 @@ const redFunction = r.evaluate(`
`); `);
assert.sameValue(redFunction(blueFn), 'red'); assert.sameValue(redFunction(blueFn), 'red');
assert.sameValue(myValue, 42); assert.sameValue(myValue, 42);

View File

@ -22,4 +22,4 @@ const otherNestedWrapped = wrapped(4);
assert.sameValue(otherNestedWrapped(3), 12); assert.sameValue(otherNestedWrapped(3), 12);
assert.sameValue(nestedWrapped(3), 6); assert.sameValue(nestedWrapped(3), 6);
assert.notSameValue(nestedWrapped, otherNestedWrapped, 'new wrapping for each return'); assert.notSameValue(nestedWrapped, otherNestedWrapped, 'new wrapping for each return');

View File

@ -26,4 +26,4 @@ const otherWrapped = r.evaluate('fn');
assert.notSameValue(wrapped, otherWrapped); assert.notSameValue(wrapped, otherWrapped);
assert.sameValue(typeof wrapped, 'function'); assert.sameValue(typeof wrapped, 'function');
assert.sameValue(typeof otherWrapped, 'function'); assert.sameValue(typeof otherWrapped, 'function');

View File

@ -64,4 +64,4 @@ assert.sameValue(wrappedAsync.x, undefined, 'async fn, no property');
const wrappedGenerator = r.evaluate('genFn'); const wrappedGenerator = r.evaluate('genFn');
assert.sameValue(typeof wrappedGenerator, 'function', 'gen function wrapped'); assert.sameValue(typeof wrappedGenerator, 'function', 'gen function wrapped');
assert.throws(TypeError, () => wrappedGenerator(), 'wrapped function cannot return non callable object'); assert.throws(TypeError, () => wrappedGenerator(), 'wrapped function cannot return non callable object');
assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property'); assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property');

View File

@ -20,4 +20,4 @@ r.importValue('./import-value_FIXTURE.js', 'x').then(x => {
assert.sameValue(x, 1); assert.sameValue(x, 1);
}).then($DONE, $DONE); }).then($DONE, $DONE);

View File

@ -5,7 +5,7 @@ esid: sec-realm.prototype.importvalue
description: > description: >
Realm.prototype.importValue is not a constructor. Realm.prototype.importValue is not a constructor.
includes: [isConstructor.js] includes: [isConstructor.js]
features: [callable-boundary-realms] features: [callable-boundary-realms, Reflect.construct]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -27,4 +27,4 @@ assert.throws(Test262Error, () => {
r.importValue(specifier); r.importValue(specifier);
}); });
assert.sameValue(count, 1); assert.sameValue(count, 1);

View File

@ -50,4 +50,4 @@ r.importValue('./import-value_FIXTURE.js', 'y')
.then( .then(
() => $DONE('Expected rejection'), () => $DONE('Expected rejection'),
() => $DONE() () => $DONE()
); );

View File

@ -18,4 +18,4 @@ const bogus = {};
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
r.importValue.call(bogus); r.importValue.call(bogus);
}, 'throws a TypeError if this is not a Realm object'); }, 'throws a TypeError if this is not a Realm object');