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 d2d481b7ef8de9fed26fc84447f6f9a9378d78c0..3a52a66b45c51114562d8c356f5588cda3ffc699 100644 |
--- a/Source/bindings/scripts/deprecated_code_generator_v8.pm |
+++ b/Source/bindings/scripts/deprecated_code_generator_v8.pm |
@@ -2814,6 +2814,7 @@ END |
AddToImplIncludes("V8Document.h"); |
$code .= <<END; |
Document* document = currentDocument(); |
+ ASSERT(document); |
// Make sure the document is added to the DOM Node map. Otherwise, the ${implClassName} instance |
// may end up being the only node in the map and get garbage-collected prematurely. |
@@ -2831,7 +2832,7 @@ END |
my ($parameterCheckString, $paramIndex, %replacements) = GenerateParametersCheck($function, $interface); |
$code .= $parameterCheckString; |
- push(@beforeArgumentList, "document"); |
+ push(@beforeArgumentList, "*document"); |
if ($interface->extendedAttributes->{"ConstructorRaisesException"}) { |
push(@afterArgumentList, "es"); |