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

Unified Diff: mojo/public/tools/bindings/generators/mojom_js_generator.py

Issue 2595563004: Mojo JS bindings: fix enum array validation. (Closed)
Patch Set: . Created 4 years 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
Index: mojo/public/tools/bindings/generators/mojom_js_generator.py
diff --git a/mojo/public/tools/bindings/generators/mojom_js_generator.py b/mojo/public/tools/bindings/generators/mojom_js_generator.py
index 0d774a597f138c3ecb66771c08d8d70fedc69238..0eedb314453c1d9d86bc376855ce3fbe02a81e43 100644
--- a/mojo/public/tools/bindings/generators/mojom_js_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_js_generator.py
@@ -234,9 +234,7 @@ def JavaScriptValidateArrayParams(field):
def JavaScriptValidateEnumParams(field):
- nullable = JavaScriptNullableParam(field)
- enum_type = JavaScriptType(field.kind)
- return "%s, %s" % (enum_type, nullable)
+ return JavaScriptType(field.kind)
def JavaScriptValidateStructParams(field):
nullable = JavaScriptNullableParam(field)
« no previous file with comments | « mojo/public/js/validator.js ('k') | third_party/WebKit/LayoutTests/payments/resources/payment-request-mock.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698