Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp

Issue 1952893003: Implement custom element construction and some 'define' checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use DCHECK, revert RuntimeEnabledFeatures.in. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698