Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 94b70730869b707916dfc76315938738c13565d4..edb2bbd9abc0d1f7125a2711b9907194c81f98fd 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -109,7 +109,7 @@ if (UNLIKELY(info.Length() <= {{argument.index}})) { |
return; |
} |
{% endif %} |
-{% if argument.has_type_checking_interface and not argument.is_variadic_wrapper_type %} |
+{% if argument.has_type_checking_interface and not argument.is_variadic_wrapper_type and not argument.type_checked_already %} |
{# Type checking for wrapper interface types (if interface not implemented, |
throw a TypeError), per http://www.w3.org/TR/WebIDL/#es-interface |
Note: for variadic arguments, the type checking is done for each matched |