Open
Description
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
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
Is there a generic query that finds all undefined