Skip to content

Handle NaN correctly in bindings - #1811

Merged
kevinpschaaf merged 1 commit into
masterfrom
handle-nan-in-bindings
Jun 11, 2015
Merged

kevinpschaaf merged 1 commit into
masterfrom
handle-nan-in-bindings

Conversation

@dfreedm

@dfreedm dfreedm commented Jun 9, 2015

Copy link
Copy Markdown
Member

Fixes #1799

@dfreedm
dfreedm force-pushed the handle-nan-in-bindings branch from c85a2df to 8a964ba Compare June 10, 2015 00:39
Comment thread src/lib/bind/accessors.html Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like (old !== value && (old==old || value==value)) is slightly more readable.

@dfreedm
dfreedm force-pushed the handle-nan-in-bindings branch from 8a964ba to dcb67ed Compare June 10, 2015 21:24
Make our own equality check for NaN that uses the identity-check failure

Fixes #1799
@dfreedm
dfreedm force-pushed the handle-nan-in-bindings branch from dcb67ed to 48edb32 Compare June 10, 2015 21:25
@dfreedm

dfreedm commented Jun 10, 2015

Copy link
Copy Markdown
Member Author

Tests are passing in VMs, not sure what is going on in Sauce.

@kevinpschaaf

Copy link
Copy Markdown
Member

LGTM, confirmed min perf impact

kevinpschaaf added a commit that referenced this pull request Jun 11, 2015
@kevinpschaaf
kevinpschaaf merged commit 1cad7b0 into master Jun 11, 2015
@kevinpschaaf
kevinpschaaf deleted the handle-nan-in-bindings branch June 11, 2015 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants