mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
JS: Update API usage in MissingAwait
This commit is contained in:
@@ -132,6 +132,11 @@ class TypeNameBindingNode extends NameResolution::Node {
|
||||
* and enums and enum members have this property.
|
||||
*/
|
||||
predicate isSanitizingPrimitiveType() { TypeResolution::isSanitizingPrimitiveType(this) }
|
||||
|
||||
/**
|
||||
* Holds if the given type is a Promise object. Does not hold for unions unless all parts of the union are promises.
|
||||
*/
|
||||
predicate isPromiseType() { TypeResolution::isPromiseType(this) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user