Bug 178542 - Generated serializers do not properly handle optional interface attributes
Summary: Generated serializers do not properly handle optional interface attributes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andy Estes
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-19 14:01 PDT by Andy Estes
Modified: 2017-11-15 13:03 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.39 KB, patch)
2017-10-19 14:26 PDT, Andy Estes
no flags Details | Formatted Diff | Diff
Patch (10.35 KB, patch)
2017-10-20 10:05 PDT, Andy Estes
no flags Details | Formatted Diff | Diff
Patch (10.29 KB, patch)
2017-10-20 11:43 PDT, Andy Estes
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Estes 2017-10-19 14:01:33 PDT
Generated serializers do not properly handle optional interface attributes
Comment 1 Andy Estes 2017-10-19 14:26:25 PDT Comment hidden (obsolete)
Comment 2 Build Bot 2017-10-19 14:28:43 PDT Comment hidden (obsolete)
Comment 3 Build Bot 2017-10-19 14:31:13 PDT Comment hidden (obsolete)
Comment 4 Andy Estes 2017-10-20 10:05:26 PDT
Created attachment 324412 [details]
Patch
Comment 5 Sam Weinig 2017-10-20 10:22:16 PDT
Comment on attachment 324412 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=324412&action=review

> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:5260
> +                push(@implContent, "        ASSERT(!${name}Value.isUndefined());\n");

I don't think this is necessary.
Comment 6 Andy Estes 2017-10-20 11:43:37 PDT
Created attachment 324421 [details]
Patch
Comment 7 WebKit Commit Bot 2017-10-20 12:21:55 PDT
Comment on attachment 324421 [details]
Patch

Clearing flags on attachment: 324421

Committed r223780: <https://trac.webkit.org/changeset/223780>
Comment 8 WebKit Commit Bot 2017-10-20 12:21:57 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2017-11-15 13:03:38 PST
<rdar://problem/35568705>