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

Return new instance if new keyword is missing. #572

Merged
merged 2 commits into from Sep 9, 2015
Merged

Return new instance if new keyword is missing. #572

merged 2 commits into from Sep 9, 2015

Conversation

tabone
Copy link
Contributor

@tabone tabone commented Sep 2, 2015

When WebSocket and WebSocketServer are invoked as a function (i.e. without the new keyword), instead of throwing an error (change introduced in PR #468), it should create and return a new instance.

In addition to this I also removed the related test cases.

@3rd-Eden
Copy link
Member

3rd-Eden commented Sep 9, 2015

Thanks for your contribution 🏆

3rd-Eden added a commit that referenced this pull request Sep 9, 2015
Return new instance if new keyword is missing.
@3rd-Eden 3rd-Eden merged commit 7debd82 into websockets:master Sep 9, 2015
@tabone
Copy link
Contributor Author

tabone commented Sep 9, 2015

👍 my pleasure

@tabone tabone mentioned this pull request Sep 14, 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

2 participants