mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18: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. |
||
---|---|---|
.. | ||
GMLCompiler | ||
IPCCompiler | ||
JSSpecCompiler | ||
LibEDID | ||
LibGL | ||
LibLocale | ||
LibTimeZone | ||
LibUnicode | ||
LibWeb | ||
LibWebView | ||
StateMachineGenerator | ||
CMakeLists.txt |