[webkit-changes] [WebKit/WebKit] daa46e: Type info for members with Nullable attribute shou...

Alex Christensen noreply at github.com
Tue Feb 21 12:19:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: daa46e4da058728633f7580887914ce24bbcf56c
      https://github.com/WebKit/WebKit/commit/daa46e4da058728633f7580887914ce24bbcf56c
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp

  Log Message:
  -----------
  Type info for members with Nullable attribute should pretend it's std::optional
https://bugs.webkit.org/show_bug.cgi?id=252645

Reviewed by Wenson Hsieh.

The generated serialization treats these members the same as std::optional,
so exposing the type info as std::optional makes the scripts that read it more correct.

* Source/WebKit/Scripts/generate-serializers.py:
(generate_serialized_type_info):
* Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp:
(WebKit::allSerializedTypes):

Canonical link: https://commits.webkit.org/260624@main




More information about the webkit-changes mailing list