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 5ab2224c012ed97f12a06a6106bd36cc9bd9696f..61b92003d0a457ada5e8093293c6537144c47e71 100644 |
--- a/Source/bindings/scripts/deprecated_code_generator_v8.pm |
+++ b/Source/bindings/scripts/deprecated_code_generator_v8.pm |
@@ -2191,13 +2191,8 @@ sub GenerateFunction |
if (listener) { |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, stringResource, args[0]); |
impl->${implName}(stringResource, listener${passRefPtrHandling}, args[2]->BooleanValue()); |
-END |
- if (!InheritsInterface($interface, "Node")) { |
- $code .= <<END; |
- ${hiddenDependencyAction}HiddenDependency(args.Holder(), args[1], ${v8ClassName}::eventListenerCacheIndex, args.GetIsolate()); |
-END |
- } |
- $code .= <<END; |
+ if (!impl->toNode()) |
+ ${hiddenDependencyAction}HiddenDependency(args.Holder(), args[1], ${v8ClassName}::eventListenerCacheIndex, args.GetIsolate()); |
} |
} |