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

Fix JSVal::is_boolean #113

Merged
merged 1 commit into from Oct 17, 2014
Merged

Fix JSVal::is_boolean #113

merged 1 commit into from Oct 17, 2014

Conversation

@mukilan
Copy link
Contributor

mukilan commented Oct 17, 2014

No description provided.

@jdm

This comment has been minimized.

Copy link

jdm commented on 5f37be6 Oct 17, 2014

Can you explain why this change is necessary?

This comment has been minimized.

Copy link

jdm replied Oct 17, 2014

Hmm, it does match JSVAL_IS_BOOLEAN_IMPL in Value.h.

This comment has been minimized.

Copy link
Owner Author

mukilan replied Oct 17, 2014

If JSVal is true then self.v will be (shifted_tag | 1). Hence comparison will fail.

This comment has been minimized.

Copy link

jdm replied Oct 17, 2014

Ooh, that's no good.

jdm added a commit that referenced this pull request Oct 17, 2014
@jdm jdm merged commit 036d099 into servo:master Oct 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.