google / google/closure-compiler

Conformance check fails to apply on destructuring assignment

Open
#3,500 5 comments 0 reactions 0 assignees View on GitHub
internal-issue-created triage-done
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

The 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;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.