Index: tools/dom/scripts/systemnative.py |
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py |
index 4bc95a5d6ef945c004304cbe42184d4a094da5d6..59ac5720b62f4cd7d735dff5c22333ff05f79b78 100644 |
--- a/tools/dom/scripts/systemnative.py |
+++ b/tools/dom/scripts/systemnative.py |
@@ -152,6 +152,9 @@ class DartiumBackend(HtmlDartGenerator): |
# Emit internal constructor which is necessary for Dartium bindings |
# to construct wrappers from C++. Eventually it should go away |
# once it is possible to construct such an instance directly. |
+ if not self._members_emitter: |
+ return |
+ |
super_constructor = '' |
if base_class and base_class != 'NativeFieldWrapperClass1': |
super_constructor = ' : super.internal()' |