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

Unified Diff: Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 931543002: Disallow wrapper creation from visitDOMWrapper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add comment Created 5 years, 10 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
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/core/V8TestInterface.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterface.cpp b/Source/bindings/tests/results/core/V8TestInterface.cpp
index 1d4079b64827cb7e55e2db7aa3c87fa6e4e2a7eb..40a8e47e5f2f950b35dd9621219cdd5dd366e300 100644
--- a/Source/bindings/tests/results/core/V8TestInterface.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterface.cpp
@@ -1968,8 +1968,7 @@ void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
V8WrapperInstantiationScope scope(creationContext, isolate);
TestInterfaceImplementation* referencedName = impl->referencedName();
if (referencedName) {
- if (!DOMDataStore::containsWrapper(referencedName, isolate))
- referencedName->wrap(creationContext, isolate);
+ RELEASE_ASSERT(DOMDataStore::containsWrapper(referencedName, isolate));
DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
}
setObjectGroup(isolate, scriptWrappable, wrapper);
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698