mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Any optional or nullable attribute will end up in an `if/else` branch
when we collect the attribute values, and this is inherently
incompatibly with an `auto {attr}_wrapped = ...` expression. Define the
variable as an `JS::Value` before generating the wrap statement so we
can properly support `toJSON()` for an attribute like:
readonly attribute double? altitude;
|
||
|---|---|---|
| .. | ||
| BindingsGenerator | ||
| CMakeLists.txt | ||
| GenerateAriaRoles.cpp | ||
| GenerateCSSDescriptors.cpp | ||
| GenerateCSSEnums.cpp | ||
| GenerateCSSKeyword.cpp | ||
| GenerateCSSMathFunctions.cpp | ||
| GenerateCSSMediaFeatureID.cpp | ||
| GenerateCSSPropertyID.cpp | ||
| GenerateCSSPseudoClass.cpp | ||
| GenerateCSSPseudoElement.cpp | ||
| GenerateCSSStyleProperties.cpp | ||
| GenerateCSSTransformFunctions.cpp | ||
| GenerateNamedCharacterReferences.cpp | ||
| GenerateWebGLRenderingContext.cpp | ||
| GenerateWindowOrWorkerInterfaces.cpp | ||
| GeneratorUtil.h | ||