diff --git a/spec.html b/spec.html index ffab58e..594804e 100644 --- a/spec.html +++ b/spec.html @@ -501,6 +501,9 @@

ShadowRealm ( )

1. Return _O_. + +

The realm created in this algorithm is referred to as a shadow realm.

+
@@ -633,5 +636,36 @@

Requirements on host-defined global objects

+ + +

Amendments to the ECMAScript® 2025 Language Specification

+ + +

+ This section lists amendments which must be made to ECMA-262, the ECMAScript® 2025 Language Specification. + Text to be added is marked like this, and text to be deleted is marked like this. +

+
+ + +

GetActiveScriptOrModule ( ): a Script Record, a Module Record, or *null*

+
+
description
+
It is used to determine the running script or module, based on the running execution context.
+
+ + + 1. If the execution context stack is empty, return *null*. + 1. Let _ec_ be the topmost execution context on the execution context stack whose ScriptOrModule component is not *null* or whose Realm is a shadow realm. + 1. If no such execution context exists, return *null*. Otherwise, return _ec_'s ScriptOrModule. + + + +

+ This adjustment will be obsoleted by ECMA-262 PR 3374. +

+
+
+