running JavaScript execution context

実行文脈 (JavaScript)

目次

  1. 仕様書
  2. 状態
  3. realm 実行文脈 (環境設定群オブジェクト)
  4. 走っている JavaScript 実行文脈
  5. 歴史

仕様書#

状態#

[5] 実行文脈は次の状態を持ちます。

Realm
ScriptOrModule
入口計数器
現職決定時に飛ばす計数器

realm 実行文脈 (環境設定群オブジェクト)#

[2] 環境設定群オブジェクトrealm実行文脈 (realm execution context) は、 当該環境設定群オブジェクトを使うすべてのスクリプト (= ある realm 中のすべてのスクリプト) で共有するJavaScript実行文脈です。 >>1

[3] 古典スクリプトの実行モジュールスクリプトの実行の時に、 本実行文脈JavaScript実行文脈スタックの上に積まれます。 スクリプトごとの特有の実行文脈は更にその上に積まれます。 (なので ParseScriptModuleEvaluation がどの Realm を使うべきか決められます。) >>1

走っている JavaScript 実行文脈#

[10] JavaScriptエンジン走っている実行文脈 (running execution context)

[6] 走っている実行文脈に対応するスクリプト

[12] 新しいJavaScript realm実行文脈の作成

歴史#

[4] Rewrite script execution on top of ES · whatwg/html@4891d18 ( 版) <https://github.com/whatwg/html/commit/4891d18aaf2df1d40aa61f467a5a10cfc19dd85d>

[7] Add <script type="module"> and module resolution/fetching/evaluation · whatwg/html@cd1a9fb ( 版) <https://github.com/whatwg/html/commit/cd1a9fb1e83f7d0bc30be8b34ecdaf444a0b19a4>

[8] Clarify settings object, realm, and global relationships · whatwg/html@0866f1b ( 版) <https://github.com/whatwg/html/commit/0866f1b3f4b4ea5a99a30909e9bbe557dea0b460>

[11] Fix navigation to create a new realm and environment settings object · whatwg/html@862afa4 ( 版) <https://github.com/whatwg/html/commit/862afa4d768cb01e9a020e0562bc465e7f8bacfe>