1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Linus Groh 7afd215e95 LibWeb: Initialize IDL any values without default value to undefined
Previously this would generate the following code:

    JS::Value foo_value;
    if (!foo.is_undefined())
        foo_value = foo;

Which is dangerous as we're passing an empty value around, which could
be exposed to user code again. This is fine with "= null", for which it
also generates:

    else
        foo_value = JS::js_null();

So, in summary: a value of type `any`, not `required`, with no default
value and no initializer from user code will now default to undefined
instead of an empty value.
2021-10-11 13:30:17 +01:00
..
CMakeLists.txt Meta: Define and use lagom_tool() CMake helper function for all Tools 2021-09-15 19:04:52 +04:30
Generate_CSS_PropertyID_cpp.cpp LibWeb: Generate CSS::property_id_from_camel_case_string() 2021-09-29 21:21:57 +02:00
Generate_CSS_PropertyID_h.cpp LibWeb: Generate CSS::property_id_from_camel_case_string() 2021-09-29 21:21:57 +02:00
Generate_CSS_ValueID_cpp.cpp Everywhere: Move all host tools into the Lagom/Tools subdirectory 2021-08-28 08:44:17 +01:00
Generate_CSS_ValueID_h.cpp Everywhere: Move all host tools into the Lagom/Tools subdirectory 2021-08-28 08:44:17 +01:00
WrapperGenerator.cpp LibWeb: Initialize IDL any values without default value to undefined 2021-10-11 13:30:17 +01:00