Index: Source/bindings/templates/union.cpp |
diff --git a/Source/bindings/templates/union.cpp b/Source/bindings/templates/union.cpp |
index 5ef84e1a767a246b5df7143c2df9c9fecf2c5e03..9262943d5f18f56e40a48da0df6bb388c4313112 100644 |
--- a/Source/bindings/templates/union.cpp |
+++ b/Source/bindings/templates/union.cpp |
@@ -129,9 +129,10 @@ void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Handle<v8::Valu |
return; |
} |
- {% endif %} |
+ {% else %} |
{# 19. TypeError #} |
exceptionState.throwTypeError("Not a valid union member."); |
+ {% endif %} |
} |
v8::Handle<v8::Value> toV8({{container.cpp_class}}& impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |