Index: third_party/WebKit/Source/bindings/scripts/v8_interface.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py |
index be83d4786e55c3d8d073c54bf60da562e6ddcdf2..eb9a20ef4d88e65e9e6e6737bc644586f45ceef8 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py |
@@ -216,6 +216,11 @@ def interface_context(interface): |
wrapper_class_id = ('NodeClassId' if inherits_interface(interface.name, 'Node') else 'ObjectClassId') |
+ # [ActiveScriptWrappable] must be accompanied with [DependentLifetime]. |
+ if active_scriptwrappable and not is_dependent_lifetime: |
+ raise Exception('[ActiveScriptWrappable] interface must also specify ' |
+ '[DependentLifetime]: %s' % interface.name) |
+ |
v8_class_name = v8_utilities.v8_class_name(interface) |
cpp_class_name = cpp_name(interface) |
cpp_class_name_or_partial = cpp_name_or_partial(interface) |