We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reflect.get 第三个参数作用描述错误。
在 target 对象指定 getter 情况下,才会有效 (如果target对象中指定了getter,receiver则为getter调用时的this值。)
测试 code
const obj = { trueAge: 12, get age() { return this.trueAge; } } console.log(Reflect.get(obj, 'age', { trueAge: 22 } ));
The text was updated successfully, but these errors were encountered:
同样发现了 实际输出是 1 不是 2
Sorry, something went wrong.
No branches or pull requests
Reflect.get 第三个参数作用描述错误。
在 target 对象指定 getter 情况下,才会有效 (如果target对象中指定了getter,receiver则为getter调用时的this值。)
测试 code
The text was updated successfully, but these errors were encountered: