Index: Source/bindings/templates/constants.cpp |
diff --git a/Source/bindings/templates/constants.cpp b/Source/bindings/templates/constants.cpp |
index 44fb1e730d61fc97126c2c0fd6d548c5a9ad5be6..aecc12c486747f5be492ba918890b8ee2d199bc6 100644 |
--- a/Source/bindings/templates/constants.cpp |
+++ b/Source/bindings/templates/constants.cpp |
@@ -50,7 +50,7 @@ V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemplate |
{% for constant in constants %} |
{% if constant.idl_type not in ('Double', 'Float', 'String') %} |
{% set constant_cpp_class = constant.cpp_class or cpp_class %} |
-COMPILE_ASSERT({{constant.value}} == {{constant_cpp_class}}::{{constant.reflected_name}}, TheValueOf{{cpp_class}}_{{constant.reflected_name}}DoesntMatchWithImplementation); |
+static_assert({{constant.value}} == {{constant_cpp_class}}::{{constant.reflected_name}}, "the value of {{cpp_class}}_{{constant.reflected_name}} does not match with implementation"); |
{% endif %} |
{% endfor %} |
{% endif %} |