mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
![]() When wrapping dictionary members, generate_wrap_statement was called with the pattern "auto {} = ...", where "..." was determined based on the variable's type. However, in generate_wrap_statement, if a type is nullable it generates an if statement, so this would end up generating something along the lines of if (!retval.member.has_value()) { auto wrapped_member0_value = JS::js_null(); } else { auto wrapped_member0_value = JS::Value(...); } ...which makes the declaration inaccessible. It now generates the same code, but the "auto" declaration (now an explicit JS::Value declaration) is outside of the if-statement. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
IDLGenerators.cpp | ||
main.cpp | ||
Namespaces.h |