| Index: Source/bindings/templates/interface.cpp
|
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
|
| index 9d3067bbb6e557573c8f5f6d2ebd38025df61faa..aabd1ed00a4c24d04ed455a3ad58807233b3ff62 100644
|
| --- a/Source/bindings/templates/interface.cpp
|
| +++ b/Source/bindings/templates/interface.cpp
|
| @@ -296,14 +296,14 @@ bool initialize{{cpp_class}}({{cpp_class}}Init& eventInit, const Dictionary& opt
|
| {# FIXME: special-case any #}
|
| {# FIXME: implement withPropertyAttributes #}
|
| {% if attribute.deprecate_as %}
|
| - if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.name}})) {
|
| + if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.cpp_name}})) {
|
| if (options.hasProperty("{{attribute.name}}"))
|
| UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{{attribute.deprecate_as}});
|
| } else {
|
| return false;
|
| }
|
| {% else %}
|
| - if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.name}}))
|
| + if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.cpp_name}}))
|
| return false;
|
| {% endif %}
|
| {% endfor %}
|
|
|