mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
fix: 修复不符合 JS 语义约束的错误行为测试
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user