javascript: Property access on null or undefined
未关闭
JS
question
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 141
描述
I refer to this document
https://codeql.github.com/codeql-query-help/javascript/js-property-access-on-non-object/
I hope to find these `undefined`
```js
window.name // ok
window.abc // undefined
some // undefined
window.a=1
window.a // ok
let obj = {
k1: 1,
}
obj.k1 // ok
obj.k2 // undefined
obj.toString // ok
obj.length // undefined
let arr = []
arr.toString // ok
arr.length // ok
arr.hello // undefined
document.body // ok
document.asd // undefined
location.pathname // ok
location.path // undefined
```
But I didn't find anything

Is there a generic query that finds all `undefined`
贡献指南
评估
这个 Issue 还没有评估数据。