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
@@ -166,7 +166,8 @@ fn object_proto_has_own_property_call_works() {
#[test]
fn object_proto_property_is_enumerable_call_works() {
let (_vm, result) = eval("Object.prototype.propertyIsEnumerable.call(Object, 'assign')").unwrap();
assert_eq!(result, JsValue::bool(true));
// Built-in methods are non-enumerable per the ES spec.
assert_eq!(result, JsValue::bool(false));
}
#[test]