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

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

Issue 605443002: The default value for NullableString should be null (was "") (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « mojo/public/js/bindings/struct_unittests.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18209977d1438b5e6a05460993f453e6291a385e..4e77714f11d825e4fdfdc8677766c01603d99177 100644
--- a/mojo/public/tools/bindings/generators/mojom_js_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_js_generator.py
@@ -32,7 +32,7 @@ _kind_to_javascript_default_value = {
mojom.UINT64: "0",
mojom.DOUBLE: "0",
mojom.STRING: '""',
yzshen1 2014/09/24 19:41:56 I think if a default value is unspecified, this sh
hansmuller 2014/09/24 22:12:07 OK, I agree with this. Both kinds of String fields
- mojom.NULLABLE_STRING: '""'
+ mojom.NULLABLE_STRING: "null"
}
« no previous file with comments | « mojo/public/js/bindings/struct_unittests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698