Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index 702667cae645da1586002fcb1be3677505651e3b..cb44cdf9e70bdde0a97dec4c4ab0f90d2a534d6c 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -168,7 +168,7 @@ static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa |
v8::String::Utf8Value namedProperty(name); |
ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "{{interface_name}}", info.Holder(), info.GetIsolate()); |
{% endif %} |
- {% if getter.union_arguments %} |
+ {% if getter.union_result_members %} |
{{union_type_method_call_and_set_return_value(getter) | indent}} |
{% else %} |
{{getter.cpp_type}} result = {{getter.cpp_value}}; |