| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 7ea9ce8092fa7242a1229419e3ec68cc4b320d80..1d8c574e54d87521d9a33654211b51238645b271 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -10,7 +10,7 @@ static void {{method.name}}Method(const v8::FunctionCallbackInfo<v8::Value>& arg
|
| {% endif %}
|
| {{cpp_class_name}}* imp = {{v8_class_name}}::toNative(args.Holder());
|
| {% for argument in method.arguments %}
|
| - {% if argument.is_optional %}
|
| + {% if argument.is_optional and not argument.has_default %}
|
| if (UNLIKELY(args.Length() <= {{argument.index}})) {
|
| {{argument.cpp_method}};
|
| return;
|
|
|