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

Implement 'Eq' and 'PartialEq' traits for local handles (#301) #301

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

piscisaureus
Copy link
Member

No description provided.

@piscisaureus piscisaureus requested a review from ry March 6, 2020 03:40
assert!(value == v8::undefined(scope));
assert!(value != v8::null(scope));
assert!(value != v8::Boolean::new(scope, false));
assert!(value != v8::Integer::new(scope, 0));
Copy link
Member

Choose a reason for hiding this comment

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

Does this pass clippy? Should these be assert_eq!?

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - except maybe use assert_eq

@piscisaureus
Copy link
Member Author

LGTM - except maybe use assert_eq

I would have, but it requires Local<T> to also implement Debug and I'm not sure how to do that meaningfully.

@piscisaureus piscisaureus merged commit e1b59ec into master Mar 6, 2020
@piscisaureus piscisaureus deleted the eq branch March 6, 2020 04:23
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.

2 participants