Skip to content

Revert "fix #11670, support type guards in NumberConstructor (#11722)"#12317

Merged
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:fix12302
Nov 17, 2016
Merged

Revert "fix #11670, support type guards in NumberConstructor (#11722)"#12317
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:fix12302

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
Member

Fixes #12302

This reverts commit 4fbbbed.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 17, 2016

why the other 3? it is just isNaN that is wrong

@HerringtonDarkholme
Copy link
Copy Markdown
Contributor

@mhegazy if a number is not infinite, it still can be a number. The logic applies to other three. We just forget to check the falsy path when introducing the type guard .

@RyanCavanaugh RyanCavanaugh merged commit c90a40c into microsoft:master Nov 17, 2016
@RyanCavanaugh RyanCavanaugh deleted the fix12302 branch November 17, 2016 19:17
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants