| Index: third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp
|
| index 27dd511c9674261e29fe950bb769a4ed36fa4615..e975f9f6bb19dcd56d698ee72658d6ee1b635a86 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp
|
| @@ -55,7 +55,7 @@ v8::MaybeLocal<v8::Object> V8ObjectConstructor::newInstanceInDocument(v8::Isolat
|
| void V8ObjectConstructor::isValidConstructorMode(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::CreateNewObject) {
|
| - V8ThrowException::throwTypeError(info.GetIsolate(), "Illegal constructor");
|
| + V8ThrowException::throwIllegalConstructorTypeError(info.GetIsolate());
|
| return;
|
| }
|
| v8SetReturnValue(info, info.This());
|
|
|