From 39426f03e62d859f511448785516516d0f3e50c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 26 Apr 2013 15:17:11 +0200 Subject: [PATCH] shellDBus: Fix Eval() return value when disabled Eval() is expected to return a boolean success value and a string result. However when the function is disabled (via the development-tools setting), we return null for the latter which is not a valid string value. Return an empty string instead. https://bugzilla.gnome.org/show_bug.cgi?id=698959 --- js/ui/shellDBus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 727792c13..12e4b844b 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -97,7 +97,7 @@ const GnomeShell = new Lang.Class({ */ Eval: function(code) { if (!global.settings.get_boolean('development-tools')) - return [false, null]; + return [false, '']; let returnValue; let success;