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

Unified Diff: Source/bindings/tests/results/modules/V8TestInterface5.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/tests/results/core/V8TestInterface.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/modules/V8TestInterface5.cpp
diff --git a/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/Source/bindings/tests/results/modules/V8TestInterface5.cpp
index 350867371a73986c0144bf440bdab6828ffe984a..6e7954d2b481b9a874af369373aa39379078c6f8 100644
--- a/Source/bindings/tests/results/modules/V8TestInterface5.cpp
+++ b/Source/bindings/tests/results/modules/V8TestInterface5.cpp
@@ -860,8 +860,7 @@ void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
V8WrapperInstantiationScope scope(creationContext, isolate);
TestInterface5Implementation* 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/tests/results/core/V8TestInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698