Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid reserved words 'long' and 'short'. #886

Closed
wants to merge 1 commit into from

Conversation

sterlinghirsh
Copy link

In javascript, 'long' and 'short' are reserved words.
They were used for formatting times in a couple places.
Some syntax checkers consider their use as errors, so it's easiest just to rename the functions.

Functionally, there should be no change.

Closes #807

In javascript, 'long' and 'short' are reserved words.
They don't get much use, but some syntax checkers consider
them errors, so it's easier just to rename the functions.

Addresses socketio#807
@sterlinghirsh
Copy link
Author

Test failures appear unrelated. I'm getting ENOSPC for a few tests, which says to me that the build machine's disk is nearly full. The other errors are like

<iphone 7.1 on Mac 10.10> connection :: reconnect delay should increase every time
Error: Error: expected false to be truthy (http://ngrok.com:49572/__zuul/test-bundle.js:5717)

, which I've seen on a few other open pulls here. I don't think this is related to my change.

@Nibbler999
Copy link

Doesn't make sense to submit a pull request here as that code is in a dependency not in socket.io itself.

This is actually a dupe of vercel/ms#53

@sterlinghirsh
Copy link
Author

@Nibbler999 Thanks!

@nkzawa nkzawa closed this Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants