Skip to main content

Module exec

Module exec 

Source

Functions§

annex_b_eval_func_names 🔒
body_has_use_strict 🔒
先頭の指令プロローグに "use strict" が含まれるか判定する。
can_declare_global_function 🔒
ECMA-262 §9.1.1.4.16 CanDeclareGlobalFunction 相当の判定。
can_declare_global_var 🔒
ECMA-262 §9.1.1.4.15 CanDeclareGlobalVar 相当の判定。
collect_annex_b_block 🔒
collect_annex_b_stmt 🔒
collect_pattern_names 🔒
collect_top_lexical_names 🔒
collect_var_names 🔒
collect_var_names_stmt 🔒
has_intervening_lex_binding 🔒
maybe_record_annex_b_skip 🔒
note_engine_error 🔒
【2026-11-03 診断】処理系が投げた例外を、文言ごとに初回だけ呼び出し元の関数名と記録する(最大 300 種類)。 BotGuard の VM は例外を内部で捕まえて黙って止まるので、Uncaught には出ない(TODO B0)。
stmt_has_nested_fn_decl 🔒
sync_annex_b_global_function 🔒
Annex B.3.3.3: ブロック・switch・try 内の関数宣言がグローバルへ巻き上がるときは CreateGlobalVarBinding 相当となり、既存プロパティがあれば属性(enumerable/configurable 等)を変更せず値のみ更新する。
sync_global_function_binding 🔒
ECMA-262 §9.1.1.4.18 CreateGlobalFunctionBinding 相当: globalThis に自前プロパティとして関数を登録する(基本は writable/enumerable: true, configurable: false)。
top_function_names 🔒
var_names_of 🔒
文の並びから var で宣言される名前を集める(巻き上げ用)。ブロック・制御構文・ try/switch/ラベルの中へは入り、入れ子の関数(宣言・式)の本体へは入らない。 本体の var の名前(重複なし、最初に現れた順)。