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

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

Issue 332643003: Forbid creating new wrapper from SetWrapperReferenceTo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestInterface.cpp
diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp
index 6a089b901261abaa5bfc76b62f0f55ae53e059d2..af9e971360c1a8bd7122fcd78ada65951f72ca1c 100644
--- a/Source/bindings/tests/results/V8TestInterface.cpp
+++ b/Source/bindings/tests/results/V8TestInterface.cpp
@@ -1308,8 +1308,7 @@ void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj
V8WrapperInstantiationScope scope(creationContext, isolate);
TestInterfaceImplementation* referencedName = impl->referencedName();
if (referencedName) {
- if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isolate))
- wrap(referencedName, creationContext, isolate);
+ ASSERT(DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isolate));
DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedName, isolate);
}
setObjectGroup(object, wrapper, isolate);
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698