fix: 修复 throw 未支持静默失败问题

This commit is contained in:
2026-06-07 19:35:12 +08:00
parent 92bf2e68fb
commit 3c641313cd
4 changed files with 15 additions and 0 deletions
@@ -56,3 +56,11 @@ fn regression_recursion_depth_limit() {
"vm error: RangeError: Maximum call stack size exceeded"
);
}
#[test]
fn regression_throw_statement_errors() {
assert_eq!(
eval("throw 'error'"),
"compile error: throw statement not supported"
);
}