Skip to main content

Module selftest

Module selftest 

Source
Expand description

JS エンジン自己テスト(mod.rs から分割。2026-07-16 リファクタ フェーズ4)。 ロジック不変。super::* で mod.rs の JsRuntime/eval/Value 等を取り込む。

Functions§

selftest
JS エンジンの自己テスト。各ケースを評価し、最後の式の文字列化が期待値と一致するか確認。 起動時に呼ばれ JS_SELFTEST: PASS n/n をシリアルへ出す(CI スモークの判定マーカー)。