Index: tools/dom/scripts/systemhtml.py |
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py |
index cba6c08e661e13ad2d176a65db07c7472ee26675..341400c618525fe96a7083628a9f088bafdd75d8 100644 |
--- a/tools/dom/scripts/systemhtml.py |
+++ b/tools/dom/scripts/systemhtml.py |
@@ -671,7 +671,9 @@ class HtmlDartInterfaceGenerator(object): |
isElement = True |
# Write out the JsInterop code. |
- if implementation_members_emitter and self._options.templates._conditions['DARTIUM']: |
+ if (implementation_members_emitter and |
+ self._options.templates._conditions['DARTIUM'] and |
+ self._options.dart_js_interop): |
implementation_members_emitter.Emit(js_interop_wrapper) |
if isElement and self._interface.id != 'Element': |