summaryrefslogtreecommitdiff
path: root/platform/darwin/scripts/generate-style-code.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/scripts/generate-style-code.js')
-rw-r--r--platform/darwin/scripts/generate-style-code.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js
index 4bcfe54d32..62ab3b6b98 100644
--- a/platform/darwin/scripts/generate-style-code.js
+++ b/platform/darwin/scripts/generate-style-code.js
@@ -152,6 +152,9 @@ global.describeValue = function (value, property, layerType) {
case 'number':
return 'an `NSNumber` object containing the float `' + value + '`';
case 'string':
+ if (value === '') {
+ return 'the empty string';
+ }
return 'the string `' + value + '`';
case 'enum':
let displayValue;