Conformance check fails to apply on destructuring assignment
See original GitHub issueThe conformance config looks as following:
requirement: {
type: BANNED_PROPERTY
value: 'Document.prototype.head'
}
This check catches this code:
const head = document.head;
But fails to catch:
const {head} = document;
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
getting error when I use destructuring assignment to simplify ...
Possible solutions The solution being to add removePlayer in the destructured parameters.
Read more >Destructuring JavaScript Arrays Object(ively) - codeburst
This syntax makes it possible to break down complex JavaScript values like objects into simpler parts that can be assigned to local variables....
Read more >Destructuring assignment - JavaScript - MDN Web Docs
The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from ...
Read more >How to check if Node.js supports ES6 language feature
What about string templates or destructuring assignment? ... the ES conformance test tells us that much of #811 tests are skipped or failing....
Read more >spec Guide - Clojure
If you don't want to use the conformed value or check for ... :acct/email) ;; spec: :acct/person ;; Fails attribute conformance (s/explain :acct/person ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To mention, the same issue is destructuring in arguments. E.g. the compiler fails to catch the use of a banner property in this case:
I think this is fixed by https://github.com/google/closure-compiler/commit/5c90c9a4deacef45e471221601f20d2821e77a01