Skip to content

[API Question] Only x and y types getting switched after updating #29255

Closed
@AnyhowStep

Description

@AnyhowStep

Just a curious observation.

I was on TS 3.3.0-dev.20181129. Then, I discovered a bug and was about to file a report but realized it was fixed in 3.3.0-dev.20190103.

So, I updated. After updating, about half of my compile-time tests (190 files) started failing, because the compiled output is now different. No biggie. I expected this to happen. Probably characters getting shuffled around, since I do a character-by-character comparison.

I looked at the diffs and it looks like most, if not all, are some variant of the following,

image
image
image

It's just anywhere with x, and y gets switched. So far, it looks like all other fields/string literals do not get switched around.

I wouldn't be so confused if all fields were getting swapped around, somehow. Or if things were getting randomly shuffled. But it looks like it's only x and y.

I have some objects where the fields are a, b, c, etc. but only x and y seem to be flipped. (I'll stop repeating myself ad nauseam)


Does anyone have any insight as to why it's just those two characters and nothing else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIRelates to the public API for TypeScriptQuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions