diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-04 15:23:27 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-04 15:23:27 +0100 |
commit | 3ef4f63ec257cf90ad4bf8695a1e4e291f811af2 (patch) | |
tree | a250561efd62b85afa60738eec1cf3184d9ea499 /devtools | |
parent | feeb4327304db5af1c4aa7f77c082bb6527eef5b (diff) | |
parent | a47a037ec9052bf1707be10ba5140226f939eb60 (diff) | |
download | UXP-3ef4f63ec257cf90ad4bf8695a1e4e291f811af2.tar UXP-3ef4f63ec257cf90ad4bf8695a1e4e291f811af2.tar.gz UXP-3ef4f63ec257cf90ad4bf8695a1e4e291f811af2.tar.lz UXP-3ef4f63ec257cf90ad4bf8695a1e4e291f811af2.tar.xz UXP-3ef4f63ec257cf90ad4bf8695a1e4e291f811af2.zip |
Merge branch 'ported-moebius'
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/shared/gcli/source/lib/gcli/commands/commands.js | 6 | ||||
-rw-r--r-- | devtools/shared/gcli/source/lib/gcli/commands/help.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/devtools/shared/gcli/source/lib/gcli/commands/commands.js b/devtools/shared/gcli/source/lib/gcli/commands/commands.js index 67793b2dc..0af4be620 100644 --- a/devtools/shared/gcli/source/lib/gcli/commands/commands.js +++ b/devtools/shared/gcli/source/lib/gcli/commands/commands.js @@ -335,10 +335,10 @@ Parameter.prototype.toJson = function() { }; // Values do not need to be serializable, so we don't try. For the client - // side (which doesn't do any executing) we don't actually care what the - // default value is, just that it exists + // side (which doesn't do any executing) we only care whether default value is + // undefined, null, or something else. if (this.paramSpec.defaultValue !== undefined) { - json.defaultValue = {}; + json.defaultValue = (this.paramSpec.defaultValue === null) ? null : {}; } if (this.paramSpec.description != null) { json.description = this.paramSpec.description; diff --git a/devtools/shared/gcli/source/lib/gcli/commands/help.js b/devtools/shared/gcli/source/lib/gcli/commands/help.js index 317f80240..7d1cc9087 100644 --- a/devtools/shared/gcli/source/lib/gcli/commands/help.js +++ b/devtools/shared/gcli/source/lib/gcli/commands/help.js @@ -69,7 +69,7 @@ function getHelpManData(commandData, context) { } else { // We need defaultText to work the text version of defaultValue - input = l10n.lookupFormat('helpManOptional'); + input = l10n.lookup('helpManOptional'); /* var val = param.type.stringify(param.defaultValue); input = Promise.resolve(val).then(function(defaultValue) { |