mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 05:42:20 +00:00
docs(proxy): fix typo
This commit is contained in:
parent
bbc173988b
commit
530982b3ae
@ -872,7 +872,7 @@ Object.getOwnPropertyNames(p)
|
|||||||
// Uncaught TypeError: 'ownKeys' on proxy: trap returned extra keys but proxy target is non-extensible
|
// Uncaught TypeError: 'ownKeys' on proxy: trap returned extra keys but proxy target is non-extensible
|
||||||
```
|
```
|
||||||
|
|
||||||
上面代码中,`Obj`对象是不可扩展的,这时`ownKeys`方法返回的数组之中,包含了`obj`对象的多余属性`b`,所以导致了报错。
|
上面代码中,`obj`对象是不可扩展的,这时`ownKeys`方法返回的数组之中,包含了`obj`对象的多余属性`b`,所以导致了报错。
|
||||||
|
|
||||||
### preventExtensions()
|
### preventExtensions()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user