Index: tools/dom/scripts/generator.py |
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py |
index d8ecaa20545d063e37155632a43215611af288bb..37117e76b61343afb63da5ff2aa1656c8a6ad0ce 100644 |
--- a/tools/dom/scripts/generator.py |
+++ b/tools/dom/scripts/generator.py |
@@ -1154,6 +1154,7 @@ _idl_type_registry = monitored.Dict('generator._idl_type_registry', { |
'ClientRect': TypeData(clazz='Interface', |
dart_type='Rectangle', suppress_interface=True), |
'Date': TypeData(clazz='Primitive', dart_type='DateTime', native_type='double'), |
+ 'Promise': TypeData(clazz='Primitive', dart_type='Future', native_type='ScriptPromise'), |
'DOMObject': TypeData(clazz='Primitive', dart_type='Object', native_type='ScriptValue'), |
'DOMString': TypeData(clazz='Primitive', dart_type='String', native_type='String'), |
# TODO(vsm): This won't actually work until we convert the Map to |