Index: Source/core/inspector/CodeGeneratorInspector.py |
diff --git a/Source/core/inspector/CodeGeneratorInspector.py b/Source/core/inspector/CodeGeneratorInspector.py |
index 92360370f6b012b32846690b6327e4e17dc803a2..c5a334f462b6839d2ae37b089f78ef7fd27d2b91 100755 |
--- a/Source/core/inspector/CodeGeneratorInspector.py |
+++ b/Source/core/inspector/CodeGeneratorInspector.py |
@@ -1006,7 +1006,7 @@ class TypeBindings: |
pos += 1 |
writer.newline_multiline(CodeGeneratorInspectorStrings.class_binding_builder_part_3 |
- % (class_name, class_name, class_name, class_name, class_name)) |
+ % (class_name, class_name, class_name, class_name, class_name, class_name)) |
writer.newline(" /*\n") |
writer.newline(" * Synthetic constructor:\n") |
@@ -1055,7 +1055,7 @@ class TypeBindings: |
writer.append("#if %s\n" % VALIDATOR_IFDEF_NAME) |
writer.newline(" assertCorrectValue(object.get());\n") |
writer.append("#endif // %s\n" % VALIDATOR_IFDEF_NAME) |
- writer.newline(" COMPILE_ASSERT(sizeof(%s) == sizeof(JSONObjectBase), type_cast_problem);\n" % class_name) |
+ writer.newline(" static_assert(sizeof(%s) == sizeof(JSONObjectBase), \"%s should be the same size as JSONObjectBase\");\n" % (class_name, class_name)) |
writer.newline(" return static_cast<%s*>(static_cast<JSONObjectBase*>(object.get()));\n" % class_name) |
writer.newline(" }\n") |
writer.append("\n") |