Index: Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp |
index 87c317fc2debb3e817938f989ccbd59d783eeb6d..bd2a8458eec6f3f648103fd876119b3144ae121c 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp |
@@ -117,7 +117,7 @@ void V8TestInterfaceWillBeGarbageCollected::constructorCallback(const v8::Functi |
{ |
TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
if (!info.IsConstructCall()) { |
- throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceWillBeGarbageCollected", "Please use the 'new' operator, this DOM object constructor cannot be called as a function."), info.GetIsolate()); |
+ throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("TestInterfaceWillBeGarbageCollected"), info.GetIsolate()); |
return; |
} |