Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index 918d276560edf441c6cff2fc70e41295b210e1a0..aae63d9d5d96d4dee5b95e2530a8ecf65be6afbc 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -820,7 +820,7 @@ void {{v8_class}}::constructorCallback(const v8::FunctionCallbackInfo<v8::Value> |
UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{measure_as}}); |
{% endif %} |
if (!info.IsConstructCall()) { |
- throwTypeError(ExceptionMessages::failedToConstruct("{{interface_name}}", "Please use the 'new' operator, this DOM object constructor cannot be called as a function."), info.GetIsolate()); |
+ throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("{{interface_name}}"), info.GetIsolate()); |
return; |
} |