mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
fix: rename feature tag from "callable-boundary-realms" -> "ShadowRealm"; rename built-ins/Realm -> built-ins/ShadowRealm
This commit is contained in:
parent
47ab262658
commit
4a55a4f67a
@ -249,9 +249,9 @@ resizable-arraybuffer
|
||||
# https://github.com/tc39/proposal-temporal
|
||||
Temporal
|
||||
|
||||
# Callable Boundary Realms
|
||||
# ShadowRealm, née Callable Boundary Realms
|
||||
# https://github.com/tc39/proposal-realms
|
||||
callable-boundary-realms
|
||||
ShadowRealm
|
||||
|
||||
# Array.prototype.findLast & Array.prototype.findLastIndex
|
||||
# https://github.com/tc39/proposal-array-find-from-last
|
||||
|
@ -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, Reflect.construct]
|
||||
features: [ShadowRealm, Reflect.construct]
|
||||
---*/
|
||||
assert.sameValue(
|
||||
typeof Realm,
|
@ -5,7 +5,7 @@ esid: sec-realm-constructor
|
||||
description: >
|
||||
The Realm constructor is the initial value of the "Realm" property of the global object.
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(this, "Realm", {
|
@ -9,7 +9,7 @@ info: |
|
||||
|
||||
Unless specified otherwise, the [[Extensible]] internal slot of a built-in
|
||||
object initially has the value true.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.isExtensible(Realm), true);
|
@ -18,7 +18,7 @@ info: |
|
||||
internal slots [[Prototype]] and [[Extensible]]. The latter will have its
|
||||
value set to true.
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
const realm = new Realm();
|
@ -12,7 +12,7 @@ info: |
|
||||
« [[Realm]], [[ExecutionContext]] »).
|
||||
...
|
||||
13. Return O.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
assert.sameValue(
|
||||
typeof Realm,
|
@ -17,7 +17,7 @@ info: |
|
||||
the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm, "length", {
|
@ -5,16 +5,16 @@ esid: sec-ecmascript-standard-built-in-objects
|
||||
description: >
|
||||
The value of Realm.name is 'Realm'
|
||||
info: |
|
||||
Every built-in function object, including constructors, has a "name" property
|
||||
whose value is a String. Unless otherwise specified, this value is the name
|
||||
that is given to the function in this specification.
|
||||
Every built-in function object, including constructors, has a "name" property
|
||||
whose value is a String. Unless otherwise specified, this value is the name
|
||||
that is given to the function in this specification.
|
||||
|
||||
Unless otherwise specified, the "name" property of a built-in function
|
||||
object has the attributes
|
||||
Unless otherwise specified, the "name" property of a built-in function
|
||||
object has the attributes
|
||||
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm, "name", {
|
@ -9,7 +9,7 @@ info: |
|
||||
has the Function prototype object, which is the initial value of the expression
|
||||
Function.prototype, as the value of its [[Prototype]] internal slot.
|
||||
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(Realm), Function.prototype);
|
@ -11,7 +11,7 @@ info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms, Symbol.toStringTag]
|
||||
features: [ShadowRealm, Symbol.toStringTag]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype, Symbol.toStringTag, {
|
@ -5,7 +5,7 @@ esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate is an ECMAScript Standard built-in object function.
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype, "evaluate", {
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wraps errors from other realm into TypeErrors
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -17,7 +17,7 @@ info: |
|
||||
the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype.evaluate, "length", {
|
@ -5,16 +5,16 @@ esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
The value of Realm.prototype.evaluate.name is 'evaluate'
|
||||
info: |
|
||||
Every built-in function object, including constructors, has a "name" property
|
||||
whose value is a String. Unless otherwise specified, this value is the name
|
||||
that is given to the function in this specification.
|
||||
Every built-in function object, including constructors, has a "name" property
|
||||
whose value is a String. Unless otherwise specified, this value is the name
|
||||
that is given to the function in this specification.
|
||||
|
||||
Unless otherwise specified, the "name" property of a built-in function
|
||||
object has the attributes
|
||||
Unless otherwise specified, the "name" property of a built-in function
|
||||
object has the attributes
|
||||
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype.evaluate, "name", {
|
@ -5,7 +5,7 @@ esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate is not a constructor.
|
||||
includes: [isConstructor.js]
|
||||
features: [callable-boundary-realms, Reflect.construct]
|
||||
features: [ShadowRealm, Reflect.construct]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
@ -24,7 +24,7 @@ assert.throws(TypeError, () => {
|
||||
new Realm.prototype.evaluate("");
|
||||
}, '`new Realm.prototype.evaluate("")` throws TypeError');
|
||||
|
||||
const r = new Realm();
|
||||
const r = new Realm();
|
||||
r.evaluate('globalThis.x = 0');
|
||||
|
||||
assert.throws(TypeError, () => {
|
@ -9,7 +9,7 @@ description: >
|
||||
has the Function prototype object, which is the initial value of the expression
|
||||
Function.prototype, as the value of its [[Prototype]] internal slot.
|
||||
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(Realm.prototype.evaluate), Function.prototype);
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate returns primitive values
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate returns symbol values
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate throws a TypeError if evaluate resolves to non-primitive values
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate throws when argument is not a string.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate validates realm object.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped function arguments are wrapped into the inner realm, extended.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped function arguments are wrapped into the inner realm
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped function from return values share no identity.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped function observing their scopes
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate accepts callable objects
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped functions can resolve callable returns.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped functions produce new wrapping on each evaluation.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped functions share no properties, extended
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.evaluate
|
||||
description: >
|
||||
Realm.prototype.evaluate wrapped functions share no properties
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -5,7 +5,7 @@ esid: sec-realm.prototype.importvalue
|
||||
description: >
|
||||
Realm.prototype.importValue is an ECMAScript Standard built-in object function.
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype, "importValue", {
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.importvalue
|
||||
description: >
|
||||
Realm.prototype.importValue coerces exportName to string.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -5,7 +5,7 @@ esid: sec-realm.prototype.importvalue
|
||||
description: >
|
||||
Realm.prototype.importValue can import a value.
|
||||
flags: [async, module]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -15,7 +15,7 @@ info: |
|
||||
the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype.importValue, "length", {
|
@ -7,16 +7,16 @@ description: >
|
||||
info: |
|
||||
Realm.prototype.importValue
|
||||
|
||||
Every built-in function object, including constructors, has a "name" property
|
||||
whose value is a String. Unless otherwise specified, this value is the name
|
||||
that is given to the function in this specification.
|
||||
Every built-in function object, including constructors, has a "name" property
|
||||
whose value is a String. Unless otherwise specified, this value is the name
|
||||
that is given to the function in this specification.
|
||||
|
||||
Unless otherwise specified, the "name" property of a built-in function
|
||||
object has the attributes
|
||||
Unless otherwise specified, the "name" property of a built-in function
|
||||
object has the attributes
|
||||
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
verifyProperty(Realm.prototype.importValue, "name", {
|
@ -5,7 +5,7 @@ esid: sec-realm.prototype.importvalue
|
||||
description: >
|
||||
Realm.prototype.importValue is not a constructor.
|
||||
includes: [isConstructor.js]
|
||||
features: [callable-boundary-realms, Reflect.construct]
|
||||
features: [ShadowRealm, Reflect.construct]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
@ -24,7 +24,7 @@ assert.throws(TypeError, () => {
|
||||
new Realm.prototype.importValue("", "name");
|
||||
}, '`new Realm.prototype.importValue("")` throws TypeError');
|
||||
|
||||
const r = new Realm();
|
||||
const r = new Realm();
|
||||
|
||||
assert.throws(TypeError, () => {
|
||||
new r.imporValue("./import-value_FIXTURE.js", "x");
|
@ -9,7 +9,7 @@ info: |
|
||||
has the Function prototype object, which is the initial value of the expression
|
||||
Function.prototype, as the value of its [[Prototype]] internal slot.
|
||||
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(Realm.prototype.importValue), Function.prototype);
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.importvalue
|
||||
description: >
|
||||
Realm.prototype.importValue coerces specifier to string.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -35,7 +35,7 @@ info: |
|
||||
...
|
||||
|
||||
flags: [async, module]
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -4,7 +4,7 @@
|
||||
esid: sec-realm.prototype.importvalue
|
||||
description: >
|
||||
Realm.prototype.importValue validates realm object.
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
@ -9,7 +9,7 @@ info: |
|
||||
object, which is the initial value of the expression Object.prototype, as the value
|
||||
of its [[Prototype]] internal slot, except the Object prototype object itself.
|
||||
|
||||
features: [callable-boundary-realms]
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(Realm.prototype), Object.prototype);
|
Loading…
x
Reference in New Issue
Block a user