Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: tools/dom/scripts/systemnative.py

Issue 952133004: Changes to support roll 39 IDLs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index 4f5a7ed9f66bdcbf0eced4f47fa8b0ad4f39bc78..dd2cdbdf59e448c82c0093ccc834f16d575705b7 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -1251,7 +1251,15 @@ class DartiumBackend(HtmlDartGenerator):
needs_custom_element_callbacks = False
# TODO(antonm): unify with ScriptState below.
- call_with = ext_attrs.get('CallWith', '') + ext_attrs.get('ConstructorCallWith', '')
+ call_with = ext_attrs.get('CallWith', [])
+ if not(isinstance(call_with, list)):
+ call_with = [call_with]
+ constructor_with = ext_attrs.get('ConstructorCallWith', [])
+ if not(isinstance(constructor_with, list)):
+ constructor_with = [constructor_with]
+ call_with = call_with + constructor_with
+
+
requires_stack_info = 'ScriptArguments' in call_with or 'ScriptState' in call_with
if requires_stack_info:
raises_exceptions = True
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698