Skip to content

Commit 7ee8769

Browse files
author
郭佳兵
committed
fix(index.md) 修正proxy一个笔误
1 parent 3898b7a commit 7ee8769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/es6/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const proxy = new Proxy(target, {
221221
if(propkey[0] === '_'){
222222
throw Error(`${propkey} is restricted`)
223223
}
224-
return Reflect.get(target, propkey, value, proxy)
224+
return Reflect.set(target, propkey, value, proxy)
225225
}
226226
})
227227

0 commit comments

Comments
 (0)