?
u
/
p
1-9
Intrinsic Name | Global Name | ECMAScript Language Association |
---|---|---|
ShadowRealm |
The ShadowRealm |
A
An object is a wrapped function exotic object if its [[Call]] internal method uses the following implementation, and its other essential internal methods use the definitions found in
Wrapped function
Internal Slot | Type | Description |
---|---|---|
[[WrappedTargetFunction]] | Callable Object | Stores the callable object. |
[[Call]] | The [[Call]] internal method | Executes code associated with this object's [[WrappedTargetFunction]]. |
[[Realm]] |
|
The |
The [[Call]] internal method of a
If an execution in a ShadowRealm R1 oblivious of
The abstract operation CreateTypeErrorCopy takes arguments realmRecord (a
The abstract operation OrdinaryWrappedFunctionCall takes arguments F (a
The abstract operation PrepareForWrappedFunctionCall takes argument F (a
The abstract operation WrappedFunctionCreate takes arguments callerRealm (a
The abstract operation CopyNameAndLength takes arguments F (a
This method performs the following steps when called:
The abstract operation PerformShadowRealmEval takes arguments sourceText (a String), callerRealm (a
eval
and Function
and should result into a shared abstraction when merged to ECMA-262.
The abstract operation ShadowRealmImportValue takes arguments specifierString (a String), exportNameString (a String), callerRealm (a
An ExportGetter function is an anonymous built-in function that has an [[ExportNameString]] internal slot.
When an ExportGetter function is called with argument exports, it performs the following steps:
An ImportValueError function is an anonymous built-in function.
When an ImportValueError function is called with argument error, it performs the following steps:
The abstract operation GetWrappedValue takes arguments callerRealm (a
The abstract operation ValidateShadowRealmObject takes argument O (an ECMAScript value) and returns either a
The abstract operation GetShadowRealmContext takes arguments shadowRealmRecord (a
The ShadowRealm
extends
clause of a class definition. Subclass super
call to the ShadowRealm ShadowRealm.prototype
built-in methods.This function performs the following steps when called:
The ShadowRealm
The initial value of
This property has the attributes { [[Writable]]:
The ShadowRealm prototype object:
Synchronously execute a top-level script. The sourceText is interpreted as a Script and evaluated with this bound to the ShadowRealm's
The following steps are performed:
The initial value of the @@toStringTag property is the String value
This property has the attributes { [[Writable]]:
ShadowRealm instances are
Internal Slot | Type | Description |
---|---|---|
[[ShadowRealm]] | The |
The
This specification does not recommend any specific addition.
In the Web embedding, HTML and WebIDL will specify which
interfaces are included. The Web Platform and Web-like
environments may decide to include EventTarget
,
atob
, TextEncoder
, URL
, etc. while at the same time not
including HTMLElement
, localStorage
, fetch
, etc.
If a