mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 19:51:11 +08:00
docs: 补充注释与格式化
This commit is contained in:
@@ -69,7 +69,7 @@ fn test_throw_err_type_error_catchable() {
|
||||
|
||||
#[test]
|
||||
fn test_throw_err_type_error_is_object() {
|
||||
// IC_GET_PROP on null throws TypeError which is catchable; catch body runs
|
||||
// 对 null 的 IC_GET_PROP 抛可捕获的 TypeError;catch 体执行。
|
||||
let result = eval("try { null.prop; } catch(e) { 99; }");
|
||||
assert_eq!(result, "99");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user