Skip to content

Support partial dictionaries - #10159

Merged
lukebjerring merged 3 commits into
web-platform-tests:masterfrom
lukebjerring:idlharness-partial-dictionary
Mar 28, 2018
Merged

lukebjerring merged 3 commits into
web-platform-tests:masterfrom
lukebjerring:idlharness-partial-dictionary

Conversation

@lukebjerring

@lukebjerring lukebjerring commented Mar 23, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #5714


This change is Reviewable

@ghost

ghost commented Mar 23, 2018 •

Copy link
Copy Markdown

Build PASSED

Started: 2018-03-28 20:48:23
Finished: 2018-03-28 21:00:54

View more information about this build on:

idlArray.test();
} catch (e) {
return;
}

Copy link
Copy Markdown
Contributor Author

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

@lukebjerring
lukebjerring force-pushed the idlharness-partial-dictionary branch from 7b89105 to a33361b Compare March 28, 2018 20:13

@foolip foolip left a comment

Copy link
Copy Markdown
Member

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 :)

Comment thread resources/idlharness.js Outdated
{
if (parsed_idl.type == "interface" && parsed_idl.partial)
if (parsed_idl.partial
&& ["interface", "dictionary"].find(t => parsed_idl.type == t))

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Contributor Author

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.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants