Skip to content

Commit b2c2f8f

Browse files
author
Dandan Jiang
authored
语法错误
1 parent 4b17bc8 commit b2c2f8f

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
@@ -935,7 +935,7 @@ var handler = {
935935
var proto = {};
936936
var target = function () {};
937937
var proxy = new Proxy(target, handler);
938-
proxy.setPrototypeOf(proxy, proto);
938+
Object.setPrototypeOf(proxy, proto);
939939
// Error: Changing the prototype is forbidden
940940
```
941941

0 commit comments

Comments
 (0)