summaryrefslogtreecommitdiffstats
path: root/kjs
diff options
context:
space:
mode:
Diffstat (limited to 'kjs')
-rw-r--r--kjs/string_object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kjs/string_object.cpp b/kjs/string_object.cpp
index fadb641a0..b9321e70f 100644
--- a/kjs/string_object.cpp
+++ b/kjs/string_object.cpp
@@ -570,7 +570,9 @@ Value StringProtoFuncImp::call(ExecState *exec, Object &thisObj, const List &arg
result = String(s);
break;
case LocaleCompare:
+ {
return Number(localeCompare(s, a0.toString(exec)));
+ }
#ifndef KJS_PURE_ECMA
case Big:
result = String("<big>" + s + "</big>");