bridge(v1): add minimal mir_call(Global) support for print-family (print|nyash.console.log|env.console.{log,warn,error}); stageb_print_vm now strict-PASS under v1 downconvert. tests: suppress noise via quiet env in stageb_print_vm.

This commit is contained in:
nyash-codex
2025-11-02 07:30:46 +09:00
parent 289dd0d5ab
commit 91f3d82deb
2 changed files with 66 additions and 5 deletions

View File

@ -27,15 +27,11 @@ if ! stageb_json_nonempty "$json"; then
exit 1
fi
set +e
output=$(NYASH_NYVM_V1_DOWNCONVERT=1 "$NYASH_BIN" --json-file "$json")
output=$(NYASH_NYVM_V1_DOWNCONVERT=1 NYASH_QUIET=1 HAKO_QUIET=1 NYASH_CLI_VERBOSE=0 NYASH_DISABLE_PLUGINS=1 "$NYASH_BIN" --json-file "$json")
rc=$?
set -e
rm -f "$json"
if [ $rc -ne 0 ]; then
echo "[SKIP] stageb_print_vm (v1 downconvert not yet supporting call/extern)" >&2
exit 0
fi
if [ "$output" = "3" ] && [ $rc -eq 0 ]; then
echo "[PASS] stageb_print_vm"
exit 0