Index: Source/bindings/scripts/v8_utilities.py |
diff --git a/Source/bindings/scripts/v8_utilities.py b/Source/bindings/scripts/v8_utilities.py |
index f401a0b8339f27da11a5cccb0e81a3d3e0675b45..f78251b033fc44e51e43d9041dfd71f004f892db 100644 |
--- a/Source/bindings/scripts/v8_utilities.py |
+++ b/Source/bindings/scripts/v8_utilities.py |
@@ -28,14 +28,14 @@ |
"""Functions shared by various parts of the code generator. |
-Extends IdlType and IdlUnion type with |enum_validation_expression| property. |
+Extends IdlTypeBase type with |enum_validation_expression| property. |
Design doc: http://www.chromium.org/developers/design-documents/idl-compiler |
""" |
import re |
-from idl_types import IdlType, IdlUnionType |
+from idl_types import IdlTypeBase |
import idl_types |
from v8_globals import includes |
import v8_types |
@@ -122,7 +122,7 @@ def enum_validation_expression(idl_type): |
return None |
return ' || '.join(['string == "%s"' % enum_value |
for enum_value in idl_type.enum_values]) |
-IdlType.enum_validation_expression = property(enum_validation_expression) |
+IdlTypeBase.enum_validation_expression = property(enum_validation_expression) |
def scoped_name(interface, definition, base_name): |