Index: Source/bindings/templates/union.cpp |
diff --git a/Source/bindings/templates/union.cpp b/Source/bindings/templates/union.cpp |
index 7d9a501aa0a4bef1c0ef2e5a89dd99eca764f082..0972404fbb74f4e9b2391853f7de229e880847b9 100644 |
--- a/Source/bindings/templates/union.cpp |
+++ b/Source/bindings/templates/union.cpp |
@@ -34,6 +34,15 @@ void {{container.cpp_class}}::set{{member.type_name}}({{member.rvalue_cpp_type}} |
} |
{% endfor %} |
+{% if container.needs_trace %} |
+void {{container.cpp_class}}::trace(Visitor* visitor) |
+{ |
+ {% for member in container.members if member.is_traceable %} |
+ visitor->trace(m_{{member.cpp_name}}); |
+ {% endfor %} |
+} |
+ |
+{% endif %} |
void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState) |
{ |
{# FIXME: We don't follow the spec on handling null and undefined at this |