smokes: add JSON nested/invalid cases; force VM backend; temp nyash.toml with json_native package for resolution

This commit is contained in:
Selfhosting Dev
2025-09-26 00:38:14 +09:00
parent 6ce06501e1
commit b3a96faccb
30 changed files with 135 additions and 295 deletions

View File

@ -365,14 +365,8 @@ pub fn using_ast_enabled() -> bool {
_ => !using_is_prod(), // dev/ci → true, prod → false
}
}
pub fn resolve_fix_braces() -> bool {
// Safer default: OFF誤補正の副作用を避ける
// 明示ON: NYASH_RESOLVE_FIX_BRACES=1
matches!(
std::env::var("NYASH_RESOLVE_FIX_BRACES").ok().as_deref(),
Some("1") | Some("true") | Some("on")
)
}
// Legacy resolve_fix_braces() removed (Phase 15 cleanup)
// AST-based integration handles syntax properly without text-level brace fixing
pub fn vm_use_py() -> bool {
std::env::var("NYASH_VM_USE_PY").ok().as_deref() == Some("1")
}