Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【96页】最底部示例代码 setter 缺少 receiver 入参 #15

Open
YisenFE opened this issue Feb 21, 2022 · 0 comments
Open

【96页】最底部示例代码 setter 缺少 receiver 入参 #15

YisenFE opened this issue Feb 21, 2022 · 0 comments

Comments

@YisenFE
Copy link

YisenFE commented Feb 21, 2022

line 03 缺少 receiver 入参

书中:

set(target, key, newVal) {
  // 设置属性值
  const res = Reflect.set(target, key, newVal, receiver)
  // ...
}

应修改为:

set(target, key, newVal, receiver) {
  // 设置属性值
  const res = Reflect.set(target, key, newVal, receiver)
  // ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants