| Index: Source/bindings/scripts/code_generator_v8.pm
|
| diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
|
| index 43df75f485c36b565f37b8095369e8c1ed2d568c..5dac61dc9a8ccf19fcc5254d3ef0cbef814c778f 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.pm
|
| +++ b/Source/bindings/scripts/code_generator_v8.pm
|
| @@ -2208,6 +2208,17 @@ sub GenerateParametersCheckExpression
|
| } else {
|
| push(@andExpression, "V8${type}::hasInstance($value, info.GetIsolate(), worldType(info.GetIsolate()))");
|
| }
|
| + } elsif ($nonWrapperTypes{$type}) {
|
| + # Non-wrapper types are just objects: we don't distinguish type
|
| + # FIXME: If distinguishing non-wrapper type from primitive type,
|
| + # the non-wrapper type must appear *first* in the IDL file,
|
| + # since we're not adding a !IsObject check to primitive types.
|
| + # This can be avoided if compute overloads more sensibly.
|
| + if ($parameter->isNullable) {
|
| + push(@andExpression, "${value}->IsNull() || ${value}->IsObject()");
|
| + } else {
|
| + push(@andExpression, "${value}->IsObject()");
|
| + }
|
| }
|
|
|
| $parameterIndex++;
|
|
|