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
This commit is contained in:
Florian Müllner 2013-04-26 15:17:11 +02:00
parent 92e5d2b8f5
commit 39426f03e6

View File

@ -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;