Skip to content

Commit

Permalink
docs(proxy): fixed #1167 Proxy get()
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Aug 24, 2023
1 parent a8a1f1d commit 8818bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ const proxy = new Proxy({}, {
proxy.getReceiver === proxy // true
```

上面代码中,`proxy`对象的`getReceiver`属性是由`proxy`对象提供的,所以`receiver`指向`proxy`对象。
上面代码中,`proxy`对象的`getReceiver`属性会被`get()`拦截,得到的返回值就是`proxy`对象。

```javascript
const proxy = new Proxy({}, {
Expand Down

0 comments on commit 8818bb2

Please sign in to comment.