Index: Source/bindings/scripts/CodeGeneratorV8.pm |
diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm |
index 30fd8ac3e57ebdb1c8c19dcacd21b40ae9f352e6..72298f1268e08778d59c6040bdc4003a72092a2a 100644 |
--- a/Source/bindings/scripts/CodeGeneratorV8.pm |
+++ b/Source/bindings/scripts/CodeGeneratorV8.pm |
@@ -4730,10 +4730,8 @@ sub NativeToJSValue |
my $unionMemberNativeValue = $unionMemberVariable; |
$unionMemberNativeValue .= ".release()" if (IsRefPtrType($unionMemberType)); |
my $returnJSValueCode = NativeToJSValue($unionMemberType, $extendedAttributes, $unionMemberNativeValue, $indent . " ", $receiver, $getCreationContext, $getIsolate, $getHolderContainer, $getScriptWrappable, $returnHandleType, $forMainWorldSuffix); |
- my $isNotNull = GenerateIsNullExpression($unionMemberType, $unionMemberVariable); |
- $isNotNull = " && !" . $isNotNull if $isNotNull; |
my $code = ""; |
kojih
2013/05/24 05:41:54
isNotNull check must not exist, because there is a
haraken
2013/05/24 06:03:05
Makes sense.
|
- $code .= "${indent}if (${unionMemberEnabledVariable}${isNotNull})\n"; |
+ $code .= "${indent}if (${unionMemberEnabledVariable})\n"; |
$code .= "${returnJSValueCode}"; |
push @codes, $code; |
} |