Index: Source/bindings/scripts/deprecated_code_generator_v8.pm |
diff --git a/Source/bindings/scripts/deprecated_code_generator_v8.pm b/Source/bindings/scripts/deprecated_code_generator_v8.pm |
index 3a52a66b45c51114562d8c356f5588cda3ffc699..2fafb0f8ca417528c20d663623230d155913e627 100644 |
--- a/Source/bindings/scripts/deprecated_code_generator_v8.pm |
+++ b/Source/bindings/scripts/deprecated_code_generator_v8.pm |
@@ -2551,7 +2551,7 @@ END |
} elsif ($interface->extendedAttributes->{"ConstructorCallWith"} eq "Document") { |
push(@beforeArgumentList, "document"); |
$code .= "\n"; |
- $code .= " Document* document = toDocument(getScriptExecutionContext());"; |
+ $code .= " Document& document = *toDocument(getScriptExecutionContext());"; |
} |
} |