| Index: third_party/WebKit/Source/bindings/scripts/idl_definitions.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/idl_definitions.py b/third_party/WebKit/Source/bindings/scripts/idl_definitions.py
|
| index 8dc6a3376fad1a94e639dd9bb8558091b161d928..678a149d81c548bad1f6b5b08b50de9e2af91774 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/idl_definitions.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/idl_definitions.py
|
| @@ -355,6 +355,10 @@ class IdlInterface(object):
|
|
|
| if has_integer_typed_length and has_indexed_property_getter:
|
| self.has_indexed_elements = True
|
| + else:
|
| + if self.iterable is not None and self.iterable.key_type is None:
|
| + raise ValueError('Value iterators (iterable<V>) must be accompanied by an indexed '
|
| + 'property getter and an integer-typed length attribute.')
|
|
|
| def accept(self, visitor):
|
| visitor.visit_interface(self)
|
|
|