| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 69070ae2ad9e58abd60b386e03e160c563e2be2f..def2f99083fc59a5877144db64ea2e29c93dcbab 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -97,7 +97,7 @@ if (UNLIKELY(info.Length() <= {{argument.index}})) {
|
| {% if method.is_strict_type_checking and argument.is_wrapper_type %}
|
| {# Type checking for wrapper interface types (if interface not implemented,
|
| throw TypeError), per http://www.w3.org/TR/WebIDL/#es-interface #}
|
| -if (info.Length() > {{argument.index}} && !{% if argument.is_nullable %}isUndefinedOrNull(info[{{argument.index}}]){% else %}info[{{argument.index}}]->IsUndefined(){% endif %} && !V8{{argument.idl_type}}::hasInstance(info[{{argument.index}}], info.GetIsolate())) {
|
| +if (info.Length() > {{argument.index}} && {% if argument.is_nullable %}!isUndefinedOrNull(info[{{argument.index}}]) && {% endif %}!V8{{argument.idl_type}}::hasInstance(info[{{argument.index}}], info.GetIsolate())) {
|
| {{throw_type_error(method, '"parameter %s is not of type \'%s\'."' %
|
| (argument.index + 1, argument.idl_type)) | indent}}
|
| return;
|
|
|