Index: Source/bindings/templates/constants.cpp |
diff --git a/Source/bindings/templates/constants.cpp b/Source/bindings/templates/constants.cpp |
index aecc12c486747f5be492ba918890b8ee2d199bc6..cd7e5a822c7338c807110415deed8aaf16aec3f5 100644 |
--- a/Source/bindings/templates/constants.cpp |
+++ b/Source/bindings/templates/constants.cpp |
@@ -38,12 +38,12 @@ V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTemplat |
{% for constant in runtime_enabled_constants %} |
{% filter runtime_enabled(constant.runtime_enabled_function) %} |
static const V8DOMConfiguration::ConstantConfiguration constantConfiguration = {{constant_configuration(constant)}}; |
-V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTemplate, &constantConfiguration, 1); |
+V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemplate, constantConfiguration); |
{% endfilter %} |
{% endfor %} |
{# Constants with [DeprecateAs] or [MeasureAs] #} |
{% for constant in special_getter_constants %} |
-V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemplate, "{{constant.name}}", {{cpp_class}}V8Internal::{{constant.name}}ConstantGetterCallback); |
+V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, prototypeTemplate, "{{constant.name}}", {{cpp_class}}V8Internal::{{constant.name}}ConstantGetterCallback); |
{% endfor %} |
{# Check constants #} |
{% if not do_not_check_constants %} |