-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
10$: Warn on let ({x} = y); #1203
Comments
@strager Shouldn't this be considered an error? Code like this crashes in Node.js on line 5:
|
@msharipov This doesn't crash: const y = {x: 45, z: "helloworld"};
let z;
({z} = y);
console.log(z);
function let(arg) {
console.log("let", arg);
}
let x;
let ({x} = y);
console.log(x); |
@strager Ah, I see. Could you please assign this to me? |
I claim this for-hire task. I expect payment after I complete this task. I will email the quick-lint-js team if I am assigned this task. |
@Nyx1on Someone else already claimed this task. If @msharipov is unresponsive, I'll give the task you @Nyx1on. |
I'm still working on this, it's just taking a while. |
Added a new diagnostic E0719 that closes quick-lint#1203. Issues a warning when a function let() is called on an object assignment expression. quick-lint#1203
Added a new diagnostic E0719 that closes quick-lint#1203. Issues a warning when a function let() is called on an object assignment expression. quick-lint#1203
Added a new diagnostic E0720 that closes quick-lint#1203. Issues a warning when a function let() is called on an object assignment expression. quick-lint#1203
Before refactor:
After refactor:
Conditions for this diagnostic:
let
as the callee.=
.The text was updated successfully, but these errors were encountered: