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