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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp

Issue 2250063002: binding: Adds a check that ActiveScriptWrappable specifies [ActiveScriptWrappable]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/tests/results/core/V8DataView.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
index 3d93ffeeca8d97ff62a4e1e26b5c1a6e2049af97..98a330e969a8094f816205713ac90f60dd5f320c 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8DataView.cpp
@@ -33,6 +33,12 @@ const WrapperTypeInfo V8DataView::wrapperTypeInfo = { gin::kEmbedderBlink, 0, V8
// bindings/core/v8/ScriptWrappable.h.
const WrapperTypeInfo& TestDataView::s_wrapperTypeInfo = V8DataView::wrapperTypeInfo;
+static_assert(
+ !std::is_base_of<ActiveScriptWrappable, TestDataView>::value,
+ "TestDataView inherits from ActiveScriptWrappable, but does not specify "
+ "[ActiveScriptWrappable] extended attribute in the IDL file. "
+ "Be consistent.");
+
TestDataView* V8DataView::toImpl(v8::Local<v8::Object> object)
{
ASSERT(object->IsDataView());

Powered by Google App Engine
This is Rietveld 408576698