mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 14:35:30 +02:00
fix: add missing newline at end of files, add missing frontmatter
This commit is contained in:
parent
c94b4ee7e1
commit
d29fba05f9
@ -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()');
|
||||
assert.sameValue(Symbol.prototype.toString.call(s), 'Symbol()');
|
||||
|
@ -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));
|
||||
assert.throws(TypeError, () => r.evaluate(false));
|
||||
|
@ -18,4 +18,4 @@ const bogus = {};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
r.evaluate.call(bogus);
|
||||
}, 'throws a TypeError if this is not a Realm object');
|
||||
}, 'throws a TypeError if this is not a Realm object');
|
||||
|
@ -43,4 +43,4 @@ const redWrappedFn = r.evaluate(`
|
||||
fn.x = 'secret';
|
||||
fn;
|
||||
`);
|
||||
assert.sameValue(redWrappedFn(blueFn, blueFn, redWrappedFn), true);
|
||||
assert.sameValue(redWrappedFn(blueFn, blueFn, redWrappedFn), true);
|
||||
|
@ -21,4 +21,4 @@ const redWrappedFn = r.evaluate(`
|
||||
return blueWrappedFn(a, b) * c;
|
||||
}
|
||||
`);
|
||||
assert.sameValue(redWrappedFn(blueFn, 2, 3, 4), 20);
|
||||
assert.sameValue(redWrappedFn(blueFn, 2, 3, 4), 20);
|
||||
|
@ -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');
|
||||
assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property');
|
||||
|
@ -31,4 +31,4 @@ const redFunction = r.evaluate(`
|
||||
`);
|
||||
|
||||
assert.sameValue(redFunction(blueFn), 'red');
|
||||
assert.sameValue(myValue, 42);
|
||||
assert.sameValue(myValue, 42);
|
||||
|
@ -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');
|
||||
assert.notSameValue(nestedWrapped, otherNestedWrapped, 'new wrapping for each return');
|
||||
|
@ -26,4 +26,4 @@ const otherWrapped = r.evaluate('fn');
|
||||
|
||||
assert.notSameValue(wrapped, otherWrapped);
|
||||
assert.sameValue(typeof wrapped, 'function');
|
||||
assert.sameValue(typeof otherWrapped, 'function');
|
||||
assert.sameValue(typeof otherWrapped, 'function');
|
||||
|
@ -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');
|
||||
assert.sameValue(wrappedGenerator.x, undefined, 'generator, no property');
|
||||
|
@ -20,4 +20,4 @@ r.importValue('./import-value_FIXTURE.js', 'x').then(x => {
|
||||
|
||||
assert.sameValue(x, 1);
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}).then($DONE, $DONE);
|
||||
|
@ -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(
|
||||
|
@ -27,4 +27,4 @@ assert.throws(Test262Error, () => {
|
||||
r.importValue(specifier);
|
||||
});
|
||||
|
||||
assert.sameValue(count, 1);
|
||||
assert.sameValue(count, 1);
|
||||
|
@ -50,4 +50,4 @@ r.importValue('./import-value_FIXTURE.js', 'y')
|
||||
.then(
|
||||
() => $DONE('Expected rejection'),
|
||||
() => $DONE()
|
||||
);
|
||||
);
|
||||
|
@ -18,4 +18,4 @@ const bogus = {};
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
r.importValue.call(bogus);
|
||||
}, 'throws a TypeError if this is not a Realm object');
|
||||
}, 'throws a TypeError if this is not a Realm object');
|
||||
|
Loading…
x
Reference in New Issue
Block a user