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