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

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

Issue 15885002: Verify that correct number of arguments was passed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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') | no next file » | 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 fb659f4c81da3904358c664a27421ee0d5acf49c..534121f74378f9654eab22a40e07c5c03a8cf65a 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -557,9 +557,9 @@ class DartiumBackend(HtmlDartGenerator):
if not is_custom:
self._GenerateOperationNativeCallback(operation, operation.arguments, cpp_callback_name)
else:
- self._GenerateDispatcher(info.operations, dart_declaration, [info.name for info in info.param_infos])
+ self._GenerateDispatcher(info.operations, info.NumberOfRequiredInDart(), dart_declaration, [info.name for info in info.param_infos])
- def _GenerateDispatcher(self, operations, dart_declaration, parameter_names):
+ def _GenerateDispatcher(self, operations, number_of_required_in_dart, dart_declaration, parameter_names):
def GenerateCall(
stmts_emitter, call_emitter, version, operation, argument_count):
@@ -579,6 +579,7 @@ class DartiumBackend(HtmlDartGenerator):
self._GenerateDispatcherBody(
operations,
parameter_names,
+ number_of_required_in_dart,
dart_declaration,
GenerateCall,
self._IsArgumentOptionalInWebCore)
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698