Index: third_party/WebKit/Source/bindings/scripts/v8_dictionary.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py b/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py |
index e2ff61bccbfaabdd148855e804d071fc6dd3a75b..4bdb8fd2a51f1bf1f0c95617fa749c0b59bcb804 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py |
@@ -54,6 +54,10 @@ def dictionary_context(dictionary, interfaces_info): |
includes.clear() |
includes.update(DICTIONARY_CPP_INCLUDES) |
+ if 'RuntimeEnabled' in dictionary.extended_attributes: |
+ raise Exception( |
+ 'Dictionary cannot be RuntimeEnabled: %s' % dictionary.name) |
+ |
members = [member_context(dictionary, member) |
for member in sorted(dictionary.members, |
key=operator.attrgetter('name'))] |