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

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

Issue 332183008: Revert of 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 af9e971360c1a8bd7122fcd78ada65951f72ca1c..6a089b901261abaa5bfc76b62f0f55ae53e059d2 100644
--- a/Source/bindings/tests/results/V8TestInterface.cpp
+++ b/Source/bindings/tests/results/V8TestInterface.cpp
@@ -1308,7 +1308,8 @@
V8WrapperInstantiationScope scope(creationContext, isolate);
TestInterfaceImplementation* referencedName = impl->referencedName();
if (referencedName) {
- ASSERT(DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isolate));
+ if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isolate))
+ wrap(referencedName, creationContext, 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