Datatype TypeTag
Types inferred by the flow analysis, represented as type tags.
These type tags are similar to the type tags returned by typeof
,
except that
null
has type tagnull
, notobject
;- classes have type tag
class
, notfunction
; Date
objects have type tagdate
, notobject
.
We treat Date
objects separately since they have some semantic
peculiarities; in particular, their primitive coercion yields
a number (not a string, as for most other objects).
Import path
import semmle.javascript.dataflow.InferredTypes