Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 94b70730869b707916dfc76315938738c13565d4..c9622c0cdd785aef73778c8973ebbb3b7cfe2cb5 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -109,7 +109,8 @@ 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 |