Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index f90e254bdc07551b936117e7185cf3ba2a24937e..e6d05f144dca20c81157a87a30a9981778304dbd 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -1271,6 +1271,14 @@ v8::Handle<v8::Object> wrap({{cpp_class}}* impl, v8::Handle<v8::Object> creation |
return wrapper; |
} |
+{% elif not has_custom_to_v8 and not has_custom_wrap %} |
+v8::Handle<v8::Object> wrap({{cpp_class}}* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+{ |
+ ASSERT(impl); |
+ ASSERT(!DOMDataStore::containsWrapper<{{v8_class}}>(impl, isolate)); |
+ return {{v8_class}}::createWrapper(impl, creationContext, isolate); |
+} |
+ |
{% endif %} |
{% endblock %} |