| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 4a86f3a75fc1c70faf45f54652c5af08d20d79c7..c2381da54f8d37c4aeebbf800f8ce08a4e6f6db6 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -41,6 +41,12 @@ static void {{method.name}}Method(const v8::FunctionCallbackInfo<v8::Value>& arg
|
| return;
|
| }
|
| {% endif %}
|
| + {% if argument.idl_type == 'Dictionary' %}
|
| + if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
|
| + throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryArg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), args.GetIsolate());
|
| + return;
|
| + }
|
| + {% endif %}
|
| {% endfor %}
|
| {{method.cpp_method}};
|
| }
|
|
|