Index: third_party/WebKit/Source/build/scripts/json5_generator.py |
diff --git a/third_party/WebKit/Source/build/scripts/json5_generator.py b/third_party/WebKit/Source/build/scripts/json5_generator.py |
index 4c7a63d7f2fd7d677095f69ab9a0e5fa36f33897..5b7184b3264ab86bfaa9e87747c753c573526882 100644 |
--- a/third_party/WebKit/Source/build/scripts/json5_generator.py |
+++ b/third_party/WebKit/Source/build/scripts/json5_generator.py |
@@ -152,7 +152,11 @@ class Json5File(object): |
return entry |
if "name" not in item: |
raise Exception("Missing name in item: %s" % item) |
+ if not self.parameters: |
+ entry.update(item) |
+ return entry |
entry["name"] = item.pop("name") |
+ # Validate parameters if it's specified. |
for key, value in item.items(): |
if key not in self.parameters: |
raise Exception( |