mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
fix: 修复 throw 未支持静默失败问题
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user