Open goodmind opened 5 years ago
Color is off in errors too But error message itself is fine
Cannot assign object literal to d because property фу-бар is missing in object literal [1] but exists in object
type [2].
I was looking into a related issue recently. this is because Flow reports locations in UTF8 but JS counts in Unicode code units. I started adding an encoding
flag, so that you can choose; the CLI would default to UTF8, and flow_parser.js and flow.js would default to UCS2/UTF16.
actually this could be a separate place that uses the wrong encoding, but I think the fixes will be similar.
Flow version: 0.105.0
Expected behavior
Actual behavior