mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
IDLGenerators: Add FIXME attribute support for non-readonly properties
This commit is contained in:
parent
d79347dd4a
commit
4d02bfc722
Notes:
sideshowbarker
2024-07-17 06:20:50 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/4d02bfc722 Pull-request: https://github.com/SerenityOS/serenity/pull/24381
@ -3262,6 +3262,17 @@ JS_DEFINE_NATIVE_FUNCTION(@class_name@::@attribute.getter_callback@)
|
||||
return JS::js_undefined();
|
||||
}
|
||||
)~~~");
|
||||
if (!attribute.readonly || attribute.extended_attributes.contains("PutForwards"sv)) {
|
||||
attribute_generator.append(R"~~~(
|
||||
JS_DEFINE_NATIVE_FUNCTION(@class_name@::@attribute.setter_callback@)
|
||||
{
|
||||
WebIDL::log_trace(vm, "@class_name@::@attribute.setter_callback@");
|
||||
dbgln("FIXME: Unimplemented IDL interface '@namespaced_name@.@attribute.name@'");
|
||||
return JS::js_undefined();
|
||||
}
|
||||
)~~~");
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user