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

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: Added missing types, renamed test functions and struct types 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
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..c9109fbbec3694462a22ed78f8efccdcd2b08c11 100644
--- a/mojo/public/tools/bindings/generators/mojom_js_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_js_generator.py
@@ -31,8 +31,8 @@ _kind_to_javascript_default_value = {
mojom.INT64: "0",
mojom.UINT64: "0",
mojom.DOUBLE: "0",
- mojom.STRING: '""',
- mojom.NULLABLE_STRING: '""'
+ mojom.STRING: "null",
+ mojom.NULLABLE_STRING: "null"
}

Powered by Google App Engine
This is Rietveld 408576698