fix: 修复不符合 JS 语义约束的错误行为测试

This commit is contained in:
2026-08-05 15:44:22 +08:00
parent c250f5cb2b
commit 2f7fe3cedf
5 changed files with 38 additions and 7 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ fn regression_throw_statement_preserves_syntax_error_kind() {
fn regression_for_in_prototype_chain() {
assert_eq!(
eval("var c=0;for(var k in {a:1}){c=c+1;}c"),
"2",
"for-in should include inherited constructor from prototype"
"1",
"for-in must not include non-enumerable prototype properties like constructor"
);
}