summaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index c5077977..5f91205d 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -1176,6 +1176,8 @@ class Translator {
const expression1 = v1.expression;
const expression2 = v2.expression;
+ if (typeof expression1 !== 'string' || typeof expression2 !== 'string') { return 0; } // Skip if either is not a string (array)
+
i = expression2.length - expression1.length;
if (i !== 0) { return i; }