Fix printing of Flow type number literals (#1128) #1132

Merged
merged 1 commit into from Apr 5, 2017

Conversation

Projects
None yet
2 participants
@josephsavona
Contributor

josephsavona commented Apr 5, 2017

Fixes #1128.

+ return printNumber(n.extra.raw);
+ } else {
+ return printNumber(n.raw);
+ }

This comment has been minimized.

@josephsavona

josephsavona Apr 5, 2017

Contributor

Running the existing tests shows that sometimes n.extra is undefined, sometimes not, hence the two cases here.

@josephsavona

josephsavona Apr 5, 2017

Contributor

Running the existing tests shows that sometimes n.extra is undefined, sometimes not, hence the two cases here.

This comment has been minimized.

@vjeux

vjeux Apr 5, 2017

Collaborator

Yeah, that's a difference between babylon and flow parsers.

@vjeux

vjeux Apr 5, 2017

Collaborator

Yeah, that's a difference between babylon and flow parsers.

@vjeux vjeux merged commit fe5de43 into prettier:master Apr 5, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vjeux

This comment has been minimized.

Show comment
Hide comment
@vjeux

vjeux Apr 5, 2017

Collaborator

Thanks!

Collaborator

vjeux commented Apr 5, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment