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

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

Issue 2209203002: binding: Always throws an exception in the current realm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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/ScriptCustomElementDefinition.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp
index f315c193a922377b7cba22ec70e70635cdb831b5..6c7b1e3de4e39b0513efb14349dddf12a81ff0b4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp
@@ -242,8 +242,7 @@ bool ScriptCustomElementDefinition::runConstructor(Element* element)
v8::Local<v8::Value> exception = V8ThrowException::createDOMException(
m_scriptState->isolate(),
InvalidStateError,
- message,
- constructor());
+ message);
fireErrorEvent(m_scriptState.get(), message, exception, std::move(location));
return false;
}

Powered by Google App Engine
This is Rietveld 408576698