mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
JS: relax instantiation requirement for .prototype field
This commit is contained in:
@@ -49,7 +49,6 @@ AbstractValue getAnInitialPropertyValue(DefiniteAbstractValue baseVal, string pr
|
||||
or
|
||||
// `f.prototype` for functions `f` that are instantiated
|
||||
propertyName = "prototype" and
|
||||
baseVal = any(NewExpr ne).getCallee().analyze().getALocalValue() and
|
||||
result = TAbstractInstance(baseVal)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user