Skip to content

Commit be28183

Browse files
committed
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
2 parents 581e760 + b862a5a commit be28183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ const handler = {
386386
};
387387
const proxy = new Proxy({}, handler);
388388
proxy.foo = 'bar';
389-
proxy.foo = proxy // true
389+
proxy.foo === proxy // true
390390
```
391391

392392
上面代码中,`set`方法的第四个参数`receiver`,总是返回`this`关键字所指向的那个对象,即`proxy`实例本身。

0 commit comments

Comments
 (0)