function inferTypeByTarget just accesses a variable in order to infer a type. This is not compatible with getters, because it is invoking them just by accesing it.
Also when getters are invoked at runtime they are invoked on the prototype rather than from source. This causes problems when getters try to access some instance field. Fix incoming.
function
inferTypeByTarget
just accesses a variable in order to infer a type. This is not compatible with getters, because it is invoking them just by accesing it.Also when getters are invoked at runtime they are invoked on the prototype rather than from
source
. This causes problems when getters try to access some instance field. Fix incoming.