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
Support partial dictionaries #10159
Support partial dictionaries #10159
Conversation
Build PASSEDStarted: 2018-03-28 20:48:23 View more information about this build on: |
idlArray.test(); | ||
} catch (e) { | ||
return; | ||
} |
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.
try/catch code-smell covered by #10162
7b89105
to
a33361b
Compare
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.
Thanks! Added test coverage is great :)
resources/idlharness.js
Outdated
@@ -257,7 +257,8 @@ IdlArray.prototype.internal_add_idls = function(parsed_idls, options) | |||
|
|||
parsed_idls.forEach(function(parsed_idl) | |||
{ | |||
if (parsed_idl.type == "interface" && parsed_idl.partial) | |||
if (parsed_idl.partial | |||
&& ["interface", "dictionary"].find(t => parsed_idl.type == t)) |
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.
Optional simplification: ["interface", "dictionary"].includes(parsed_idl.type)
would do the trick here too.
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.
lol. tried 'contains' and fell back to something I knew. Changed.
Fixes #5714
This change is