Re:Facebook Launches Flow, Static Type Checker for JavaScript
by avik on Wednesday November 19, 2014 @06:24PM
(#8633376)
It does care about prototypes. So it checks for inconsistencies between methods added to a prototype and their uses. The tradeoff is that for dynamically added properties, it doesn't always remember where they are defined and where they remain undefined (it knows they are defined "somewhere").
Edit: I assume it just checks bool/number/string and doesn't care about prototypes?