Skip to content

Commit 1ed3725

Browse files
committed
docs(stdlib): fix attributes/hasOwnproperty
1 parent 2279c24 commit 1ed3725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/stdlib/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ extend({}, { get a(){ return 1 } })
550550
// { get a(){ return 1 } })
551551
```
552552

553-
上面代码中,`hasOwnProperty`那一行用来过滤掉继承的属性,否则会报错,因为`Object.getOwnPropertyDescriptor`读不到继承属性的属性描述对象。
553+
上面代码中,`hasOwnProperty`那一行用来过滤掉继承的属性,否则可能会报错,因为`Object.getOwnPropertyDescriptor`读不到继承属性的属性描述对象。
554554

555555
## 控制对象状态
556556

0 commit comments

Comments
 (0)