javascript: Property access on null or undefined
- Lenguaje dominante
- CodeQL
- Estrellas
- 10.1k
- Forks
- 2.1k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 141
Descripción
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`
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.