Index: Source/bindings/templates/interface.h |
diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h |
index e84950de83f4ba5fdc448c6d053a69bad9949cca..208a6a513ab64718e87ae065f8daaefec743d59d 100644 |
--- a/Source/bindings/templates/interface.h |
+++ b/Source/bindings/templates/interface.h |
@@ -220,7 +220,12 @@ inline v8::Handle<v8::Value> toV8({{cpp_class}}* impl, v8::Handle<v8::Object> cr |
v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<{{v8_class}}>(impl, isolate); |
if (!wrapper.IsEmpty()) |
return wrapper; |
+ |
+{% if is_script_wrappable %} |
+ return impl->wrap(creationContext, isolate); |
+{% else %} |
return wrap(impl, creationContext, isolate); |
+{% endif %} |
} |
template<typename CallbackInfo> |