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 default processor signature #159

Merged
merged 2 commits into from
Jan 27, 2020

Conversation

pmdartus
Copy link
Member

Changes

This PR fixes a bug that sneaked in fda810e and that was uncaught by the test suite. If you run the current master version of wedidl2js on the master branch of jsdom it breaks all the tests because the default processor signature is invalid.

});

const idlFiles = fs.readdirSync(casesDir);
describe("with processors", () => {
Copy link
Member Author

@pmdartus pmdartus Jan 22, 2020

Choose a reason for hiding this comment

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

This change doubles the number of tests to validate the transform output with and without processors, which I am not a fan of. It would be preferable to only run the processor tests against the CEReaction.webidl and HTMLConstructor.webidl, but, it is currently impossible with the available webidl2js API.

I am open to any proposal to get around this issue.

Copy link
Member

Choose a reason for hiding this comment

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

I have always found the current API a bit strange. I think we should probably go this route for now and do a release, but point to #160 as a potential way of making it better.

I'll hold off on doing a release for now, in case you think we should tackle #160 first.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, let's move forward with custom elements first. We can always come back to #160 latter.

@pmdartus pmdartus merged commit 2aecfb6 into jsdom:master Jan 27, 2020
@pmdartus pmdartus deleted the pmdartus/fix-default-processor branch January 27, 2020 14:58
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