Index: tools/dom/scripts/generator.py |
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py |
index 2cdc750cb08df551f60a4c1c003a785f62db9a7d..0f8867d0d14589c5e1a9dfe9e3e33c3f3f15a52f 100644 |
--- a/tools/dom/scripts/generator.py |
+++ b/tools/dom/scripts/generator.py |
@@ -732,6 +732,12 @@ dart2js_conversions = monitored.Dict('generator.dart2js_conversions', { |
Conversion('convertNativeToDart_SerializedScriptValue', |
'dynamic', 'dynamic'), |
+ # TODO(alanknight): This generates two variations for dart2js, because of |
+ # the optional argument, but not in Dartium. Should do the same for both. |
+ 'any set History.pushState': _serialize_SSV, |
+ |
+ 'any set History.replaceState': _serialize_SSV, |
+ |
'* get History.state': |
Conversion('convertNativeToDart_SerializedScriptValue', |
'dynamic', 'dynamic'), |
@@ -1443,6 +1449,7 @@ def wrap_unwrap_type_blink(return_type, type_registry): |
return_type = return_type.replace('Html', 'HTML', 1) |
return (type_registry.HasInterface(return_type) or not(return_type) or |
return_type == 'Object' or |
+ return_type == 'dynamic' or |
return_type == 'Future' or |
return_type == 'SqlDatabase' or # renamed to Database |
return_type == 'HTMLElement' or |