-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Make empty
assertion work with es6 collections
#814
Conversation
break; | ||
case 'weakmap': | ||
case 'weakset': | ||
throw new TypeError('.empty was called on a weak collection'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that to keep consistency with the TypeError messages added to #812, this should be something like this:
.empty was passed a weak collection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thanks, fixed that. Another error message was just 3 lines away, what's wrong with me...
Hello @shvaikalesh, I'm very happy to see you here again. This change seems very clean, awesome work here. EDIT: OMG YOU'RE SO FAST. Well, this LGTM now |
Should pass now. |
Well done, LGTM too! |
Sec let me check something |
@shvaikalesh Annoyingly, |
@meeber Nice catch, I kinda forgot about partial implementations. Too spoiled by shims 😄 |
LGTM! Thank you for your contributions! :D |
Squashed and merged! Thank you again @shvaikalesh |
Follow-up of #763 and #812.